Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (24 loc) · 1.25 KB

GuiCrossHairHud.rst

File metadata and controls

42 lines (24 loc) · 1.25 KB

GuiCrossHairHud

Basic cross hair hud. Reacts to state of control object. Also displays health bar for named objects under the cross hair.

Inherit:

GuiBitmapCtrl

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:

newGuiCrossHairHud(){
   damageFillColor = "1.0 0.0 0.0 1.0"; // Fills with a solid red colordamageFrameColor = "1.0 1.0 1.0 1.0"; // Solid white frame colordamageRect = "15 5";
   damageOffset = "0 -10";
};

Fields