Converted all static strings to translation keys. (#2284)
This commit is contained in:
@ -64,7 +64,7 @@ namespace big
|
||||
|
||||
if (idx >= 0)
|
||||
{
|
||||
name = "FUN_VEHICLE_SEAT"_T.data() + std::to_string(idx + 1);
|
||||
name = std::format("{} {}", "FUN_VEHICLE_SEAT"_T, (idx + 1)).c_str();
|
||||
}
|
||||
|
||||
if ((idx + 1) % 4 != 0)
|
||||
@ -257,7 +257,7 @@ namespace big
|
||||
eExplosionTag selected_rocket_explosion = g.vehicle.vehicle_ammo_special.rocket_explosion_tag;
|
||||
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("CUSTOM_VEH_WEAPONS_MG"_T.data());
|
||||
components::sub_title("CUSTOM_VEH_WEAPONS_MG"_T);
|
||||
if (ImGui::BeginCombo("SPECIAL_AMMO"_T.data(), SPECIAL_AMMOS[(int)selected_ammo].name))
|
||||
{
|
||||
for (const auto& special_ammo : SPECIAL_AMMOS)
|
||||
@ -304,7 +304,7 @@ namespace big
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("CUSTOM_VEH_WEAPONS_MISSILE"_T.data());
|
||||
components::sub_title("CUSTOM_VEH_WEAPONS_MISSILE"_T);
|
||||
if (ImGui::BeginCombo(std::format("{}##customvehweaps", "EXPLOSION"_T).data(), BULLET_IMPACTS[selected_rocket_explosion]))
|
||||
{
|
||||
for (const auto& [type, name] : BULLET_IMPACTS)
|
||||
|
@ -207,7 +207,7 @@ namespace big
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
if (components::button("Max Performance"))
|
||||
if (components::button("MAX_VEHICLE"_T))
|
||||
{
|
||||
g_fiber_pool->queue_job([] {
|
||||
vehicle::max_vehicle_performance(self::veh);
|
||||
@ -287,7 +287,7 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("Mod Slots");
|
||||
ImGui::SeparatorText("VIEW_LSC_MOD_SLOTS"_T.data());
|
||||
|
||||
ImGui::BeginGroup();
|
||||
|
||||
@ -364,7 +364,7 @@ namespace big
|
||||
}
|
||||
else
|
||||
{
|
||||
g_notification_service->push_error("LSC", "Selected mod is invalid");
|
||||
g_notification_service->push_error("GUI_TAB_LSC"_T.data(), "VIEW_LSC_SELECTED_MOD_IS_INVALID"_T.data());
|
||||
}
|
||||
}
|
||||
else if (selected_slot == MOD_WINDOW_TINT)
|
||||
@ -456,13 +456,13 @@ namespace big
|
||||
{
|
||||
if (item_counter == 0)
|
||||
{
|
||||
ImGui::SeparatorText("Vehicle Extras");
|
||||
ImGui::SeparatorText("VIEW_LSC_VEHICLE_EXTRAS"_T.data());
|
||||
ImGui::BeginGroup();
|
||||
}
|
||||
if ((item_counter % 5) != 0)
|
||||
ImGui::SameLine();
|
||||
int gta_extra_id = (extra - MOD_EXTRA_0) * -1;
|
||||
auto name = std::format("Extra #{}", gta_extra_id);
|
||||
auto name = std::format("{}: #{}", "VIEW_LSC_EXTRAS"_T, gta_extra_id);
|
||||
bool is_extra_enabled = owned_mods[extra] == 1;
|
||||
if (ImGui::Checkbox(name.c_str(), &is_extra_enabled))
|
||||
{
|
||||
|
@ -218,13 +218,13 @@ namespace big
|
||||
|
||||
void view::spawn_vehicle()
|
||||
{
|
||||
ImGui::RadioButton("New", &g.spawn_vehicle.spawn_type, 0);
|
||||
ImGui::RadioButton("VIEW_DEBUG_THREADS_NEW"_T.data(), &g.spawn_vehicle.spawn_type, 0);
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton("Personal", &g.spawn_vehicle.spawn_type, 1);
|
||||
ImGui::RadioButton("VIEW_SPAWN_VEHICLE_PERSONAL"_T.data(), &g.spawn_vehicle.spawn_type, 1);
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton("Persistent", &g.spawn_vehicle.spawn_type, 2);
|
||||
ImGui::RadioButton("VIEW_SPAWN_VEHICLE_PERSISTENT"_T.data(), &g.spawn_vehicle.spawn_type, 2);
|
||||
ImGui::SameLine();
|
||||
ImGui::RadioButton("Xml", &g.spawn_vehicle.spawn_type, 3);
|
||||
ImGui::RadioButton("VIEW_SPAWN_VEHICLE_XML"_T.data(), &g.spawn_vehicle.spawn_type, 3);
|
||||
|
||||
switch (g.spawn_vehicle.spawn_type)
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ namespace big
|
||||
});
|
||||
|
||||
ImGui::SameLine();
|
||||
components::button("Delete Current", [] {
|
||||
components::button("DELETE"_T, [] {
|
||||
auto handle = self::veh;
|
||||
if (ENTITY::DOES_ENTITY_EXIST(handle))
|
||||
TASK::CLEAR_PED_TASKS_IMMEDIATELY(self::ped), entity::delete_entity(handle);
|
||||
|
Reference in New Issue
Block a user