Difference between revisions of "ISKernel:HUD (Command)"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 10: Line 10:
  
 
== Examples ==
 
== Examples ==
 +
===List all HUD Elements===
 
*HUD -list
 
*HUD -list
:Lists all HUD elements
+
;Output
*HUD -fontsize
+
Inner Space HUD Elements
:Sets the font size for all newly created HUD elements.  Default is 12.
+
-------------------
 +
'fps' [20,5] [Color:FFFFFFFF] [Group:FPS Indicator] [Size:12] 'FPS: ${Display.FPS}'
 +
'system memory indicator' [20,20] [Color:FFFFFFFF] [Group:Memory Indicator] [Size:12] 'System RAM Available: ${
 +
'texture memory indicator' [20,35] [Color:FFFFFFFF] [Group:Memory Indicator] [Size:12] 'Texture Memory Availabl
 +
===Change HUD default fontsize===
 +
*HUD -fontsize 8
 +
;Output
 +
Current HUD default font size: 8
 +
===Add a HUD Element===
 
*HUD -add FPS 0,0 ${FPS}
 
*HUD -add FPS 0,0 ${FPS}
 
:Adds a HUD element named "FPS" at location 0,0 on the screen, with the value of ${FPS}.  The value is parsed when the HUD is updated, not right away, so this value automatically updates.
 
:Adds a HUD element named "FPS" at location 0,0 on the screen, with the value of ${FPS}.  The value is parsed when the HUD is updated, not right away, so this value automatically updates.
 +
===Remove a HUD Element===
 
*HUD -remove FPS
 
*HUD -remove FPS
 
:Removes the "FPS" element
 
:Removes the "FPS" element

Revision as of 02:00, 25 August 2005

Syntax

Command Difficulty Rating
HUD
Usage Intermediate
Level of Understanding Intermediate
Computer Savvy Intermediate
Logic Intermediate

HUD -list|-fontsize <#>|-remove <name>|-add <name> <#,#> <text>

Forms

  • HUD -list - lists Inner Space HUD Elements
  • HUD -fontsize <#> - changes the default font size for HUD Elements
  • HUD -add <name> <#,#> <text> - Creates a HUD Element with <text> at <#,#> position
  • HUD -remove <name> - removes a HUD element

Examples

List all HUD Elements

  • HUD -list
Output
Inner Space HUD Elements
-------------------
'fps' [20,5] [Color:FFFFFFFF] [Group:FPS Indicator] [Size:12] 'FPS: ${Display.FPS}'
'system memory indicator' [20,20] [Color:FFFFFFFF] [Group:Memory Indicator] [Size:12] 'System RAM Available: ${
'texture memory indicator' [20,35] [Color:FFFFFFFF] [Group:Memory Indicator] [Size:12] 'Texture Memory Availabl

Change HUD default fontsize

  • HUD -fontsize 8
Output
Current HUD default font size: 8

Add a HUD Element

  • HUD -add FPS 0,0 ${FPS}
Adds a HUD element named "FPS" at location 0,0 on the screen, with the value of ${FPS}. The value is parsed when the HUD is updated, not right away, so this value automatically updates.

Remove a HUD Element

  • HUD -remove FPS
Removes the "FPS" element

See Also