From a1a80c4035c4740004ed5f2bcf7d5369b295365c Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 10 Mar 2024 16:37:24 +0100 Subject: [PATCH] remove namespace --- ImbusBinds.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ImbusBinds.lua b/ImbusBinds.lua index 88624f4..52b74b3 100755 --- a/ImbusBinds.lua +++ b/ImbusBinds.lua @@ -26,7 +26,7 @@ local function bprint(msg) end -- Prints some separators -function u.guards() +function guards() local accum = "" for _ = 1, 30 do accum = accum .. "=" @@ -34,19 +34,19 @@ function u.guards() print(colorWrap(accum, COLOR.legendary)) end -function u.info(msg) +function info(msg) bprint(colorWrap(msg, COLOR.heirloom)) end -function u.warn(msg) +function warn(msg) bprint(colorWrap(msg, COLOR.warning)) end -function u.error(msg) +function error(msg) bprint(colorWrap(msg, COLOR.red)) end -function u.success(msg) +function success(msg) bprint(colorWrap(msg, COLOR.green)) end @@ -155,9 +155,9 @@ end local function setBindingRM(key, action) unsetBinding(action); if SetBinding(key, action) then - u.success(key .. " -> " .. action); + success(key .. " -> " .. action); else - u.error("Failed to set binding " .. key .. " to " .. action); + error("Failed to set binding " .. key .. " to " .. action); end end @@ -165,8 +165,8 @@ local function applyBindingSet(set) for key, action in pairs(set) do setBindingRM(key, action) end - u.info("Bindings set!") - u.warn("Dont forget to reload your UI.") + info("Bindings set!") + warn("Dont forget to reload your UI.") end local function enableBars() @@ -188,7 +188,7 @@ local function enableBars() end local function BindsHandler(msg, editbox) - u.guards() + guards() if msg == "" then applyBindingSet(myBinds) enableBars() @@ -197,7 +197,7 @@ local function BindsHandler(msg, editbox) applyBindingSet(cameraBinds) end SaveBindings(1) - u.guards() + guards() end -- Register the /hello command