GuiHealthBarHud
Engine/source/T3D/fps/guiHealthBarHud.cpp
A basic health bar control.
Private Types
Parent
Private Attributes
Public Functions
DECLARE_CATEGORY("Gui Game" )
DECLARE_DESCRIPTION("A basic health bar. Shows the damage <a href="/coding/class/classsimset/#classsimset_1a72c2708e91b396899bc077ef031eb54b">value</a> of the <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">current\n</a>" "<a href="/coding/file/objecttypes_8h/#objecttypes_8h_1ac18d4a11e9446825e48fd474d7529084aabc4c763464f732b143d331ec4c15dce">PlayerObjectType</a> <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> object." )
Public Static Functions
Detailed Description
A basic health bar control.
This gui displays the damage value of the current PlayerObjectType control object. The gui can be set to pulse if the health value drops below a set value. This control only works if a server connection exists and it's control object is a PlayerObjectType. If either of these requirements is false, the control is not rendered.
Private Types
typedef GuiControl Parent
Private Attributes
LinearColorF mDamageFillColor
bool mDisplayEnergy
LinearColorF mFillColor
bool mFlip
LinearColorF mFrameColor
S32 mPulseRate
F32 mPulseThreshold
bool mShowFill
bool mShowFrame
F32 mValue
Public Functions
GuiHealthBarHud()
DECLARE_CATEGORY("Gui Game" )
DECLARE_CONOBJECT(GuiHealthBarHud )
DECLARE_DESCRIPTION("A basic health bar. Shows the damage <a href="/coding/class/classsimset/#classsimset_1a72c2708e91b396899bc077ef031eb54b">value</a> of the <a href="/coding/file/cmdscan_8cpp/#cmdscan_8cpp_1aeab71244afb687f16d8c4f5ee9d6ef0e">current\n</a>" "<a href="/coding/file/objecttypes_8h/#objecttypes_8h_1ac18d4a11e9446825e48fd474d7529084aabc4c763464f732b143d331ec4c15dce">PlayerObjectType</a> <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> object." )
onRender(Point2I , const RectI & )
Reimplemented from: GuiControl