feat(Spam): update spam list (#938)

* Added translation for force wanted level
This commit is contained in:
pzy2000 2023-02-07 07:41:40 +08:00 committed by GitHub
parent 12fceace86
commit f12cc48796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 5 deletions

View File

@ -23,6 +23,5 @@ namespace big
((rage::phBoundComposite*)g_local_player->m_navigation->m_damp->m_bound)->m_bounds[0]->m_bounding_box_max_xyz_margin_w.w = 0.25;
}
};
no_collision g_no_collision("nocollision", "No Collision", "Allows you to walk through vehicles and most obstacles", g.self.no_collision);
}

View File

@ -119,7 +119,7 @@ namespace big
auto file = m_translation_directory->get_file(std::format("./{}.json", pack_id));
if (!file.exists())
{
LOG(INFO) << "Translations for '" << pack_id << "' does not exist, downloading...";
LOG(INFO) << "Translations for '" << pack_id << "' does not exist, downloading...from"<<m_url;
if (!download_language_pack(pack_id))
{
LOG(WARNING) << "Failed to download language pack, can't recover...";

View File

@ -6,6 +6,7 @@ namespace
{
static const char* spam_texts[] =
{
"qq", //a chinese chat app
"QQ",
"WWW.",
"www.",
@ -14,7 +15,7 @@ namespace
".TOP",
".COM",
".top",
"\xE3\x80\x90",
"\xE3\x80\x90", //left bracket in Chinese input method
"/Menu",
"Money/",
"Money\\\\",
@ -38,7 +39,18 @@ namespace
"PLANO INICIAL", // "initial plan"
"REP +",
"20R$", // Brazil currency?
"l55.me"
"l55.me",
"\xE5\xBA\x97", //"shop" in Chinese
"\xE9\x92\xB1", //"money" in Chinese
"\xE5\x88\xB7", //"make(money)" in Chinese
"av", //uknowwhat video
"\xE8\x90\x9D\xE8\x8E\x89", //"cute girl" in Chinese
"\xE5\xA6\x88", //"mother" in Chinese
"\xE7\xBE\x8E\xE5\xA5\xB3", //"sexy girl" in Chinese
"\xE5\xBC\xBA\xE5\xA5\xB8", //"rape" in Chinese
"\xE8\x90\x9D", //"loli" in Chinese
"\xE6\x8C\x82", //"hack" in Chinese
"\xE5\x85\x83" //chinese dollar
};
}

View File

@ -51,4 +51,4 @@ namespace big
}
ImGui::End();
}
}
}

View File

@ -170,6 +170,8 @@ namespace big
if (!g.self.never_wanted)
{
ImGui::Checkbox("FORCE_WANTED_LVL"_T.data(), &g.self.force_wanted_level);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("FORCE_WANTED_LVL_INFO"_T.data());
ImGui::Text("WANTED_LVL"_T.data());
if (
ImGui::SliderInt("###wanted_level", &g.self.wanted_level, 0, 5) &&