From 8bd61fe0bd2a017d8c73a280902c2bfa6c77305b Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 10 Mar 2024 16:33:12 +0100 Subject: [PATCH] Idk --- Util.lua | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 Util.lua diff --git a/Util.lua b/Util.lua deleted file mode 100644 index d199e34..0000000 --- a/Util.lua +++ /dev/null @@ -1,51 +0,0 @@ -local _, u = ... - --- Hex formatted as "AARRGGBB" -local COLOR = { - blue = "FF" .. "0000FF", - green = "FF" .. "00FF00", - red = "FF" .. "FF0000", - legendary = "FF" .. "A335EE", - heirloom = "FF" .. "E6CC80", - warning = "FF" .. "EED202", -} - --- Wrap the text in a color code -local function colorWrap(text, colorCode) - return "|c" .. colorCode .. text .. "|r" -end - --- Special case of the color function -local function prefix() - return colorWrap("ImbusBinds> ", COLOR.legendary) -end - --- Special print -local function bprint(msg) - print(prefix() .. msg) -end - --- Prints some separators -function u.guards() - local accum = "" - for _ = 1, 30 do - accum = accum .. "=" - end - print(colorWrap(accum, COLOR.legendary)) -end - -function u.info(msg) - bprint(colorWrap(msg, COLOR.heirloom)) -end - -function u.warn(msg) - bprint(colorWrap(msg, COLOR.warning)) -end - -function u.error(msg) - bprint(colorWrap(msg, COLOR.red)) -end - -function u.success(msg) - bprint(colorWrap(msg, COLOR.green)) -end \ No newline at end of file