Skip to content

Commit

Permalink
Overwrote echo function for Geyser gauges (Mudlet#2112)
Browse files Browse the repository at this point in the history
Changed to make echo and setValue once again write to the same label.
  • Loading branch information
JorMox authored and vadi2 committed Dec 3, 2018
1 parent f89e4a9 commit a3f2e11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mudlet-lua/lua/geyser/GeyserGauge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ function Geyser.Gauge:setText (text)
end
end

--- Sets the text on the gauge, overwrites inherited echo function.
-- @param text The text to set.
function Geyser.Gauge:echo (text)
if text then
self.text:echo(text)
end
end

-- Sets the style sheet for the gauge
-- @param css Style sheet for the front label
-- @param cssback Style sheet for the back label
Expand Down

0 comments on commit a3f2e11

Please sign in to comment.