|
GuiCrossHairHud Class Reference
[Game Controls]
Basic cross hair hud. Reacts to state of control object. Also displays health bar for named objects under the cross hair. More...
Public Attributes | |
Damage | |
ColorF | damageFillColor |
As the health bar depletes, this color will represent the health loss amount. | |
ColorF | damageFrameColor |
Color for the health bar's frame. | |
Point2I | damageOffset |
Offset for drawing the damage portion of the health control. | |
Point2I | damageRect |
Size for the health bar portion of the control. |
Detailed Description
Basic cross hair hud. Reacts to state of control object. Also displays health bar for named objects under the cross hair.
Uses the base bitmap control to render a bitmap, and decides whether to draw or not depending on the current control object and it's state. If there is ShapeBase object under the cross hair and it's named, then a small health bar is displayed.
- Example:
new GuiCrossHairHud(){ damageFillColor = "1.0 0.0 0.0 1.0"; // Fills with a solid red color damageFrameColor = "1.0 1.0 1.0 1.0"; // Solid white frame color damageRect = "15 5"; damageOffset = "0 -10"; };
Member Data Documentation
As the health bar depletes, this color will represent the health loss amount.
Color for the health bar's frame.
Point2I GuiCrossHairHud::damageOffset |
Offset for drawing the damage portion of the health control.
Point2I GuiCrossHairHud::damageRect |
Size for the health bar portion of the control.