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.
Geyser.Gauge:echo (text) Sets the text on the gauge, overwrites inherited echo function.
Geyser.Gauge:enableClickthrough () Sets the gauge to no longer intercept mouse events
Geyser.Gauge:disableClickthrough () Sets the gauge to once again intercept mouse events

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.
Geyser.Gauge:echo (text)
Sets the text on the gauge, overwrites inherited echo function.

Parameters:

  • text The text to set.
Geyser.Gauge:enableClickthrough ()
Sets the gauge to no longer intercept mouse events
Geyser.Gauge:disableClickthrough ()
Sets the gauge to once again intercept mouse events

Tables

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

Fields:

  • value Percentage value of how "full" the gauge is.
  • strict If true, will cap the value of the gauge at 100, preventing it from overflowing the edge. Defaults to false to maintain old behaviours from before this was added.
  • 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 2019-10-04 21:24:12