Skip to content

Commit ef7783e

Browse files
committed
Update GUIUtils.lua
1 parent 990de4f commit ef7783e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/mudlet-lua/lua/GUIUtils.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ end
563563
--- </pre>
564564
function setGauge(gaugeName, currentValue, maxValue, gaugeText)
565565
assert(gaugesTable[gaugeName], "setGauge: no such gauge exists.")
566-
assert(type(currentValue) == 'number', 'moveGauge: bad argument #2 type (expected number, got '..type(currentValue)..'!)')
567-
assert(type(maxValue) == 'number', 'moveGauge: bad argument #3 type (expected number, got '..type(maxValue)..'!)')
566+
assert(type(currentValue) == 'number', 'setGauge: bad argument #2 type (expected number, got '..type(currentValue)..'!)')
567+
assert(type(maxValue) == 'number', 'setGauge: bad argument #3 type (expected number, got '..type(maxValue)..'!)')
568568
local value = currentValue / maxValue
569569
-- save new values in table
570570
gaugesTable[gaugeName].value = value
@@ -980,8 +980,8 @@ end
980980
--- <b><u>TODO</u></b> resizeGauge(gaugeName, width, height)
981981
function resizeGauge(gaugeName, width, height)
982982
assert(gaugesTable[gaugeName], "resizeGauge: no such gauge exists.")
983-
assert(type(width) == 'number', 'moveGauge: bad argument #2 type (expected number, got '..type(width)..'!)')
984-
assert(type(height) == 'number', 'moveGauge: bad argument #3 type (expected number, got '..type(height)..')')
983+
assert(type(width) == 'number', 'resizeGauge: bad argument #2 type (expected number, got '..type(width)..'!)')
984+
assert(type(height) == 'number', 'resizeGauge: bad argument #3 type (expected number, got '..type(height)..')')
985985
resizeWindow(gaugeName .. "_back", width, height)
986986
resizeWindow(gaugeName .. "_text", width, height)
987987
-- save new values in table

0 commit comments

Comments
 (0)