Difference between revisions of "ISUI:variablegauge (Element Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
+
#Redirect [[LavishGUI:variablegauge (Element Type)]]
 
 
== [[ISUI:Base Element|Base Element]] ==
 
* [[ISUI:gauge (Element Type)|gauge]]
 
 
 
== XML Properties ==
 
{| border="1" cellpadding="2"
 
!width="15%"|Tag
 
!width="75%"|Description
 
!width="10%" style="align:center"|Default
 
|-
 
| '''Data'''
 
| Complete data sequence indicating a value within the gauge's range || ''none''
 
|-
 
| '''Offset'''
 
| This value will be subtracted from the result of the data sequence, to force the value to within the gauge's range || 0
 
|-
 
|}
 
 
 
== Examples ==
 
=== Example 1 ===
 
This example shows a basic variable gauge, using the value of a "test" variable.  The variable uses the default gauge range of '''1''', so valid values are anywhere from 0 to 1, inclusive.  The gauge also has a child, called "ticks", which has a range set to '''.1'''.  The child gauge will basically show a zoomed view of the current interval of .1 (for example, if the value of test is .56, the child tick will show a zoomed view of between .50 and .60, with the current value 6 tenths of the way filled).
 
      <VariableGauge Name='test gauge'>
 
        <Data>${test}</Data>
 
<X>5%</X>
 
<Y>5%</Y>
 
        <Border>5</Border>
 
        <Width>90%</Width>
 
        <Height>90%</Height>
 
        <DefaultTextures />
 
        <Children>
 
          <Gauge Name='ticks'>
 
            <Border>1</Border>
 
            <Y>25%</Y>
 
    <Height>50%</Height>
 
    <Width>100%</Width>
 
            <Range>.1</Range>
 
            <DefaultTextures />
 
          </Gauge>
 
        </Children>
 
      </VariableGauge>
 
 
 
[[Category:Inner Space]]
 
[[Category:ISUI]]
 

Latest revision as of 19:44, 23 September 2005