Class Gauge
A lightweight container for Frames that will function as a dynamically resized bar.
-
self:Update ()
-
Updates the Gauge.
-
self:Echo (text)
-
Displays text on the auto-generated caption Frame.
Parameters:
-
Gauge:VyzorGaugeUpdate ()
-
A dirty global function to update all Vyzor Gauges.
-
Gauge:VyzorInitializeGauges ()
-
Calls update on each Gauge after Vyzor has been drawn.
-
Gauge:Gauge (name, initialCurrentValueAddress, initialMaximumValueAddress, initialBackground, initialForeground[, initialFillMode=GaugeFill.LeftRight[, initialOverflowFrames]])
-
Gauge constructor.
Parameters:
- name
string
The name of the Gauge.
- initialCurrentValueAddress
string
The string address of the current stat to track.
- initialMaximumValueAddress
string
The string address of the current stat to track.
- initialBackground
Frame
The Background Frame.
- initialForeground
Frame
The Foreground Frame. Size and Position values will be overwritten.
- initialFillMode
GaugeFill
Determines direction Gauge fills.
(default GaugeFill.LeftRight)
- initialOverflowFrames
table
Numerically indexed table of Frames to be used for overflow.
(optional)
Returns:
Gauge
-
self.Name.get ()
-
Returns the name of the Gauge.
Returns:
string
-
self.Container.get ()
-
Returns the Gauge's parent Frame.
Returns:
Frame
-
self.Container.set (value)
-
Sets the Gauge's parent Frame.
Parameters:
-
self.CurrentAddress.get ()
-
Returns the address of the Gauge's current value variable.
Returns:
string
-
self.CurrentAddress.set (value)
-
Sets the address of the Gauge's current value variable.
Parameters:
-
self.Current.get ()
-
Returns the Gauge's current value.
Returns:
number
-
self.MaximumAddress.get ()
-
Returns the address of the Gauge's maximum value variable.
Returns:
string
-
self.MaximumAddress.set (value)
-
Sets the address of the Gauge's maximum value variable.
Parameters:
-
self.Maximum.get ()
-
Returns the Gauge's maximum value.
Returns:
number
-
self.Background.get ()
-
Returns the background Frame of the Gauge.
Returns:
Frame
-
self.Foreground.get ()
-
Returns the foreground Frame of the Gauge.
Returns:
Frame
-
self.AutoEcho.get ()
-
Returns a flag determining whether or not the Gauge automatically echoes text on every update.
Returns:
bool
-
self.AutoEcho.set (value)
-
Sets a flag determining whether or not the Gauge automatically echoes text on every update.
Parameters:
-
self.TextFormat.get ()
-
Returns the text passed to string.format if AutoEcho is true.
Returns:
string
-
self.TextFormat.set (value)
-
Sets the text passed to string.format if AutoEcho is true.
Parameters:
-
self.Overflow.get ()
-
Returns the overflow Frames of the Gauge.
Returns:
table