Difference between revisions of "LavishGUI:lguigauge (Data Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
 
+
This data type provides and controls data for [[LavishGUI:gauge_%28Element_Type%29|gauge (Element Type)]].
 
== Members ==
 
== Members ==
 
* [[DataType:bool|bool]] '''Vertical''' : TRUE if gauge goes up and down
 
* [[DataType:bool|bool]] '''Vertical''' : TRUE if gauge goes up and down
Line 11: Line 11:
  
 
== Inherits ==
 
== Inherits ==
[[ISSession:isuielement (Data Type)|isuielement]]
+
[[LavishGUI:lguielement_%28Data_Type%29|lguielement]]
  
 
== Returns ==
 
== Returns ==
Same as '''isuielement.Name'''
+
Same as '''lguielement.Name'''
  
 
== Examples ==
 
== Examples ==
Line 25: Line 25:
 
===Set a gauge's range===
 
===Set a gauge's range===
 
*UIElement[test].FindChild[test]:SetRange[100]
 
*UIElement[test].FindChild[test]:SetRange[100]
:Sets '''Range''' from 0 to 100
+
:This command sets '''Range''' from 0 to 100
 
===Set a gauge's value===
 
===Set a gauge's value===
 
*UIElement[test].FindChild[test]:SetValue[50]
 
*UIElement[test].FindChild[test]:SetValue[50]
:This would set '''Value''' at exactly the halfway point
+
:This command sets '''Value''' to exactly the halfway point
  
 
== See Also ==
 
== See Also ==
 +
*[[LavishGUI]]
 +
* [[LavishGUI:gauge_%28Element_Type%29|gauge (Element Type)]]
 
* [[LavishScript:Data Types|LavishScript Data Types]]
 
* [[LavishScript:Data Types|LavishScript Data Types]]
 
* [[IS:Session#Data_Types|Inner Space Session Data Types]]
 
* [[IS:Session#Data_Types|Inner Space Session Data Types]]
  
{{DT-Stub}}
+
[[Category:LavishGUI]]
[[Category:Inner Space]]
 
[[Category:Inner Space Session]]
 
[[Category:Inner Space Session Data Types]]
 

Latest revision as of 22:52, 15 December 2005

Description

This data type provides and controls data for gauge (Element Type).

Members

  • bool Vertical : TRUE if gauge goes up and down
  • float Range : determines what scale the gauge uses, from 0-<Range>
  • float Value : determines how full the gauge is

Methods

  • SetRange[#] : sets the range for the gauge from 0 to <#>
  • SetValue[#] : sets the value used to determine how filled the gauge is
Tip: If you set range to 1, your set value will be percent based (.1 will be 10%)

Inherits

lguielement

Returns

Same as lguielement.Name

Examples

Display the range and value of a gauge

  • echo Range: ${UIElement[test].FindChild[test].Range}
  • echo Value: ${UIElement[test].FindChild[test].Value}
Output
 Range: 1
 Value: .25

Set a gauge's range

  • UIElement[test].FindChild[test]:SetRange[100]
This command sets Range from 0 to 100

Set a gauge's value

  • UIElement[test].FindChild[test]:SetValue[50]
This command sets Value to exactly the halfway point

See Also