ISInterface:AddElement
Jump to navigation
Jump to search
Contents
Syntax
- bool AddElement(char *Name, char *Data, int X, int Y, unsigned long Color, char *Group="Default")
Purpose
To add a HUD element
Usage
Parameters
- char *Name
- [in] Name of the HUD element to add
- char *Data
- [in] Data for the HUD element to display
- int X
- [in] X coordinate for the HUD element
- int Y
- [in] Y coordinate for the HUD element
- unsigned long Color
- [in] Color for the HUD element (hexadecimal)
- char *Group
- [in] Optional Group to put the HUD element in
Return Value
- bool
- Returns true on success, false on failure
Examples
Add a HUD element
- pISInterface->AddElement("Height","${Display.Height}",250,300,FF0000FF);