Module GeyserGauge

-- The Geyser Layout Manager by guy -- --

Functions

Geyser.Gauge:setValue (currentValue, maxValue, text) Sets the gauge amount.
Geyser.Gauge:setColor (r, g, b, text) Sets the gauge color.
Geyser.Gauge:setText (text) Sets the text on the gauge.

Tables

Geyser.Gauge Represents a gauge that can be either vertical or horizontal.


Functions

Geyser.Gauge:setValue (currentValue, maxValue, text)
Sets the gauge amount.

Parameters:

  • currentValue Current numeric value, or if maxValue is ommitted, then it is assumed that currentValue is a value between 0 and 100 and is used to set the gauge.
  • maxValue Maximum numeric value. Optionally nil, see above.
  • text The text to display on the gauge, it is optional.
Geyser.Gauge:setColor (r, g, b, text)
Sets the gauge color.

Parameters:

  • r The red component, or a named color like "green".
  • g the green component, or nil if using a named color.
  • b the blue component, or nil if using a named color.
  • text The text to display on the gauge, it is optional.
Geyser.Gauge:setText (text)
Sets the text on the gauge.

Parameters:

  • text The text to set.

Tables

Geyser.Gauge
Represents a gauge that can be either vertical or horizontal.

Fields:

  • value Percentage value of how "full" the gauge is.
  • orientation "horizontal" is the default and creates a horizontal gauge that fills from left to right. "vertical" creates a gauge that fills from bottom to top. "goofy" is horizontal but fills right to left. "batty" is vertical but fills from top to bottom.
  • color Color base for this gauge. Default is #808080
generated by LDoc 1.4.6 Last updated 2018-08-13 19:10:34