1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 23:27:57 -05:00

Convert strings to localizedstrings

This commit is contained in:
Jbleezy
2023-12-25 03:31:27 -08:00
parent aba3b7874b
commit 98255696a3
15 changed files with 228 additions and 107 deletions

View File

@ -195,7 +195,7 @@ trigger_withdraw_update_prompt(player)
return 0;
}
self sethintstring(&"ZOMBIE_BANK_WITHDRAW_PROMPT", level.bank_deposit_ddl_increment_amount, level.ta_vaultfee);
self sethintstring(&"ZOMBIE_BANK_WITHDRAW_PROMPT", level.bank_deposit_ddl_increment_amount);
return 1;
}
@ -228,7 +228,7 @@ show_balance(player)
hud.fontscale = 1;
hud.alpha = 1;
hud.color = (1, 1, 1);
hud.label = &"Account Balance: ";
hud.label = &"ZOMBIE_HUD_ACCOUNT_BALANCE";
stub.bankbalancehud[num] = hud;
hud thread update_balance(player);

View File

@ -192,11 +192,11 @@ round_end(winner)
{
if (player.team == team)
{
player thread [[level.show_grief_hud_msg_func]]("You won the round!");
player thread [[level.show_grief_hud_msg_func]](&"ZOMBIE_GRIEF_WIN_ROUND");
}
else
{
player thread [[level.show_grief_hud_msg_func]]("You lost the round!");
player thread [[level.show_grief_hud_msg_func]](&"ZOMBIE_GRIEF_LOSE_ROUND");
}
}
}

View File

@ -318,7 +318,7 @@ full_ammo_powerup(drop_item, player)
if (level.scr_zm_ui_gametype == "zgrief")
{
clip_only = 1;
drop_item.hint = &"Clip Ammo!";
drop_item.hint = &"ZOMBIE_POWERUP_CLIP_AMMO";
}
players = get_players(player.team);
@ -494,7 +494,7 @@ empty_clip_on_hud(drop_item, team)
hudelem.alpha = 0;
hudelem fadeovertime(0.5);
hudelem.alpha = 1;
hudelem.label = &"Clip Empty!";
hudelem.label = &"ZOMBIE_POWERUP_CLIP_EMPTY";
hudelem thread empty_clip_move_hud(team);
}
@ -606,7 +606,7 @@ nuke_powerup(drop_item, player_team)
{
if (isDefined(level.increment_score_func))
{
[[level.increment_score_func]](player_team, 10, 1, "nuke_grab");
[[level.increment_score_func]](player_team, 10, 1, &"ZOMBIE_ZGRIEF_NUKE_GRABBED_SCORE");
}
}
}

View File

@ -8,7 +8,7 @@ navcomputer_waitfor_navcard()
navcomputer_use_trig = spawn("trigger_radius_use", trig_pos.origin, 0, 48, 48);
navcomputer_use_trig.cost = 100000;
navcomputer_use_trig setcursorhint("HINT_NOICON");
navcomputer_use_trig sethintstring(&"ZOMBIE_NAVCARD_USE", " [Cost: " + navcomputer_use_trig.cost + "]");
navcomputer_use_trig sethintstring(&"ZOMBIE_NAVCARD_USE", navcomputer_use_trig.cost);
navcomputer_use_trig triggerignoreteam();
while (true)
@ -90,7 +90,7 @@ sq_complete_time_hud()
hud.color = (1, 1, 1);
hud.hidewheninmenu = 1;
hud.foreground = 1;
hud.label = &"Quest Complete! Time: ";
hud.label = &"ZOMBIE_HUD_QUEST_COMPLETE_TIME";
hud endon("death");

View File

@ -89,7 +89,7 @@ show_current_weapon(player)
hud.fontscale = 1;
hud.alpha = 1;
hud.color = (1, 1, 1);
hud.label = &"Placed Weapon: ";
hud.label = &"ZOMBIE_HUD_PLACED_WEAPON";
hud settext(displayname);
stub.weaponlockerhud[num] = hud;

View File

@ -139,7 +139,7 @@ meat_stink(who)
foreach (player in players)
{
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg("Meat dropped!");
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg(&"ZOMBIE_MEAT_DROPPED");
}
level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop("meat_stink", who.origin);
@ -350,7 +350,7 @@ meat_stink_cleanup_on_downed()
foreach (player in players)
{
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg("Meat dropped!");
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg(&"ZOMBIE_MEAT_DROPPED");
}
level.meat_powerup = maps\mp\zombies\_zm_powerups::specific_powerup_drop("meat_stink", self.origin);

View File

@ -330,7 +330,7 @@ busshowleavinghud(time)
hud.fontscale = 1;
hud.alpha = 1;
hud.color = (1, 1, 1);
hud.label = &"Bus departs in: ";
hud.label = &"ZM_TRANSIT_BUS_DEPART_TIME";
hud setTimer(time);
player.busleavehud = hud;
}

View File

@ -71,7 +71,7 @@ item_meat_on_spawn_retrieve_trigger(watcher, player, weaponname)
{
if (!is_true(player._kicking_meat))
{
other_player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg("Meat thrown!");
other_player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg(&"ZOMBIE_MEAT_THROWN");
}
}
}