mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -05:00
Bank: use setValue instead of setText for account balance
Use .label for secondary hint strings
This commit is contained in:
@ -209,6 +209,7 @@ show_balance(player)
|
|||||||
hud.fontscale = 1;
|
hud.fontscale = 1;
|
||||||
hud.alpha = 1;
|
hud.alpha = 1;
|
||||||
hud.color = ( 1, 1, 1 );
|
hud.color = ( 1, 1, 1 );
|
||||||
|
hud.label = &"Account Balance: ";
|
||||||
stub.bankbalancehud[num] = hud;
|
stub.bankbalancehud[num] = hud;
|
||||||
|
|
||||||
hud thread update_balance(player);
|
hud thread update_balance(player);
|
||||||
@ -237,7 +238,7 @@ update_balance(player)
|
|||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
self settext( "Account Balance: " + round_up_to_ten(int(player.account_value * level.bank_deposit_ddl_increment_amount)) );
|
self setvalue( round_up_to_ten(int(player.account_value * level.bank_deposit_ddl_increment_amount)) );
|
||||||
|
|
||||||
player waittill("update_account_value");
|
player waittill("update_account_value");
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ show_current_weapon(player)
|
|||||||
|
|
||||||
if (isDefined(stub.weaponlockerhud[num]))
|
if (isDefined(stub.weaponlockerhud[num]))
|
||||||
{
|
{
|
||||||
stub.weaponlockerhud[num] settext( "Placed Weapon: " + displayname );
|
stub.weaponlockerhud[num] settext( displayname );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +88,8 @@ show_current_weapon(player)
|
|||||||
hud.fontscale = 1;
|
hud.fontscale = 1;
|
||||||
hud.alpha = 1;
|
hud.alpha = 1;
|
||||||
hud.color = ( 1, 1, 1 );
|
hud.color = ( 1, 1, 1 );
|
||||||
hud settext( "Placed Weapon: " + displayname );
|
hud.label = &"Placed Weapon: ";
|
||||||
|
hud settext( displayname );
|
||||||
stub.weaponlockerhud[num] = hud;
|
stub.weaponlockerhud[num] = hud;
|
||||||
|
|
||||||
while ( isDefined( self ) )
|
while ( isDefined( self ) )
|
||||||
|
Reference in New Issue
Block a user