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

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
== Syntax ==
 
== Syntax ==
 
{{CMD-DR|HUD|Intermediate|Intermediate|Intermediate|Intermediate}}
 
{{CMD-DR|HUD|Intermediate|Intermediate|Intermediate|Intermediate}}
HUD -list|-fontsize <#>|-remove <name>|-add <name> <#,#> <text>
+
HUD -list|-remove <name>|-add <name> <#,#> <text>
  
 
== Forms ==
 
== Forms ==
 
*HUD -list - lists Inner Space HUD Elements
 
*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 -add <name> <#,#> <text> - Creates a HUD Element with <text> at <#,#> position  
 
*HUD -remove <name> - removes a HUD element
 
*HUD -remove <name> - removes a HUD element
Line 18: Line 17:
 
  'system memory indicator' [20,20] [Color:FFFFFFFF] [Group:Memory Indicator] [Size:12] 'System RAM Available: ${
 
  '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
 
  '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===
 
===Add a HUD Element===
 
*HUD -add FPS 0,0 ${FPS}
 
*HUD -add FPS 0,0 ${FPS}

Latest revision as of 23:20, 9 October 2008

Syntax

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

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

Forms

  • HUD -list - lists Inner Space 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

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