Converted all static strings to translation keys. (#2284)

This commit is contained in:
gir489
2023-10-20 12:24:44 -04:00
committed by GitHub
parent cc911253d0
commit 79df8bc021
133 changed files with 1027 additions and 1021 deletions

View File

@ -18,28 +18,28 @@ namespace big
{
if (ImGui::BeginTabItem("DEBUG_TAB_MISC"_T.data()))
{
components::command_checkbox<"windowhook">("Disable GTA Window Hook");
components::command_checkbox<"windowhook">("VIEW_DEBUG_MISC_DISABLE_GTA_WINDOW_HOOK"_T);
ImGui::Text("Fiber Pool Usage %d/%d", g_fiber_pool->get_used_fibers(), g_fiber_pool->get_total_fibers());
ImGui::Text(std::format("{}: {}/{}", "VIEW_DEBUG_MISC_FIBER_POOL_USAGE"_T, g_fiber_pool->get_used_fibers(), g_fiber_pool->get_total_fibers()).c_str());
ImGui::SameLine();
if (components::button("RESET"_T.data()))
if (components::button("RESET"_T))
{
g_fiber_pool->reset();
}
if (components::button("Trigger GTA Error Message Box"))
if (components::button("VIEW_DEBUG_MISC_TRIGGER_GTA_ERROR_BOX"_T))
{
hooks::log_error_message_box(0xBAFD530B, 1);
}
if (components::button("DUMP_ENTRYPOINTS"_T.data()))
if (components::button("DUMP_ENTRYPOINTS"_T))
{
system::dump_entry_points();
}
components::button("NETWORK_BAIL"_T.data(), [] {
components::button("NETWORK_BAIL"_T, [] {
NETWORK::NETWORK_BAIL(16, 0, 0);
});
@ -50,53 +50,53 @@ namespace big
STATS::STAT_SET_BOOL(RAGE_JOAAT("MPPLY_CHAR_IS_BADSPORT"), false, true);
});
components::button("LOAD_MP_MAP"_T.data(), [] {
components::button("LOAD_MP_MAP"_T, [] {
DLC::ON_ENTER_MP();
});
ImGui::SameLine();
components::button("LOAD_SP_MAP"_T.data(), [] {
components::button("LOAD_SP_MAP"_T, [] {
DLC::ON_ENTER_SP();
});
components::button("SKIP_CUTSCENE"_T.data(), [] {
components::button("SKIP_CUTSCENE"_T, [] {
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
});
components::button("REFRESH_INTERIOR"_T.data(), [] {
components::button("REFRESH_INTERIOR"_T, [] {
Interior interior = INTERIOR::GET_INTERIOR_AT_COORDS(self::pos.x, self::pos.y, self::pos.z);
INTERIOR::REFRESH_INTERIOR(interior);
});
components::button("NET_SHUTDOWN_AND_LOAD_SP"_T.data(), [] {
components::button("NET_SHUTDOWN_AND_LOAD_SP"_T, [] {
NETWORK::SHUTDOWN_AND_LAUNCH_SINGLE_PLAYER_GAME();
});
components::button("NET_SHUTDOWN_AND_LOAD_SAVE"_T.data(), [] {
components::button("NET_SHUTDOWN_AND_LOAD_SAVE"_T, [] {
NETWORK::SHUTDOWN_AND_LOAD_MOST_RECENT_SAVE();
});
components::button("REMOVE_BLACKSCREEN"_T.data(), [] {
components::button("REMOVE_BLACKSCREEN"_T, [] {
CAM::DO_SCREEN_FADE_IN(0);
});
components::button("TP_TO_SAFE_POS"_T.data(), [] {
components::button("TP_TO_SAFE_POS"_T, [] {
Vector3 safepos{};
float heading;
if (pathfind::find_closest_vehicle_node(self::pos, safepos, heading, 0))
ENTITY::SET_ENTITY_COORDS(self::ped, safepos.x, safepos.y, safepos.z, 0, 0, 0, false);
else
g_notification_service->push_error("Find safe pos", "Failed to find a safe position");
g_notification_service->push_error("DEBUG_TAB_MISC"_T.data(), "VIEW_DEBUG_MISC_TP_TO_SAFE_POS_FAILED"_T.data());
});
ImGui::Checkbox("ImGui Demo", &g.window.demo);
ImGui::Checkbox("VIEW_DEBUG_MISC_IMGUI_DEMO"_T.data(), &g.window.demo);
components::command_button<"fastquit">();
if (ImGui::TreeNode("Fuzzer"))
if (ImGui::TreeNode("VIEW_DEBUG_MISC_FUZZER"_T.data()))
{
ImGui::Checkbox("Enabled", &g.debug.fuzzer.enabled);
ImGui::Checkbox("ENABLED"_T.data(), &g.debug.fuzzer.enabled);
for (int i = 0; i < net_object_type_strs.size(); i++)
{
@ -152,8 +152,8 @@ namespace big
static char dict[100], anim[100];
ImGui::PushItemWidth(200);
components::input_text_with_hint("##dictionary", "DICT"_T.data(), dict, IM_ARRAYSIZE(dict));
components::input_text_with_hint("##animation", "ANIMATION"_T.data(), anim, IM_ARRAYSIZE(anim));
components::input_text_with_hint("##dictionary", "DICT"_T, dict, IM_ARRAYSIZE(dict));
components::input_text_with_hint("##animation", "ANIMATION"_T, anim, IM_ARRAYSIZE(anim));
if (ImGui::Button("PLAY_ANIMATION"_T.data()))
g_fiber_pool->queue_job([=] {
ped::ped_play_animation(self::ped, dict, anim);