mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Removed the scripted numerical health hud in the Full Template and added the new GuiHealthTextHud control to the playGui.
This commit is contained in:
parent
d762ccd248
commit
00f72f1325
5 changed files with 23 additions and 123 deletions
|
|
@ -45,26 +45,6 @@ function clientCmdSyncClock(%time)
|
|||
// or when a client joins a game in progress.
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Numerical Health Counter
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function clientCmdSetNumericalHealthHUD(%curHealth)
|
||||
{
|
||||
// Skip if the hud is missing.
|
||||
if (!isObject(numericalHealthHUD))
|
||||
return;
|
||||
|
||||
// The server has sent us our current health, display it on the HUD
|
||||
numericalHealthHUD.setValue(%curHealth);
|
||||
|
||||
// Ensure the HUD is set to visible while we have health / are alive
|
||||
if (%curHealth)
|
||||
HealthHUD.setVisible(true);
|
||||
else
|
||||
HealthHUD.setVisible(false);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Damage Direction Indicator
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue