Skip to content

Commit

Permalink
nit: tabs-to-spaces cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ynazar1 committed Sep 25, 2024
1 parent 747e644 commit 4cf12f6
Show file tree
Hide file tree
Showing 11 changed files with 3,364 additions and 3,364 deletions.
236 changes: 118 additions & 118 deletions SmartBuff.buffs.lua

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions SmartBuff.globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ NumberFontNormalHuge
---@return table
function Enum.MakeEnum(...)
return tInvert({...})
-- for i = 1, #t do
-- local v = t[i]
-- --t[i] = nil
-- t[v] = i
-- end
-- return t
end
-- for i = 1, #t do
-- local v = t[i]
-- --t[i] = nil
-- t[v] = i
-- end
-- return t
end

-- Returns an unumerated table from an existing table.
---## Example
Expand All @@ -91,11 +91,11 @@ end
---@param tbl table
---@return table
function Enum.MakeDict(tbl)
local t = {};
for k, v in ipairs(tbl) do
t[v] = v;
end
return t;
local t = {};
for k, v in ipairs(tbl) do
t[v] = v;
end
return t;
end

-- Returns a copy of `list` with `keys` and `values` inverted
Expand Down Expand Up @@ -155,7 +155,7 @@ end
--- [View documents](command:extension.lua.doc?["en-us/51/manual.html/pdf-print"])
---
function printd(...)
print(" ",SMARTBUFF_TITLE,"::",...)
print(" ",SMARTBUFF_TITLE,"::",...)
end

--- Prints the value of any global variable, table value, frame, function result, or any valid Lua expression. Output is color coded for easier reading. Tables display up to 30 values, the rest are skipped and a message is shown.
Expand Down
6 changes: 3 additions & 3 deletions SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ function SMARTBUFF_SetTemplate()
-- attempt to announce the addon version (if they have it)
-- seems to be an issue with cross-realm, need to look at this later
-- but in the meantime I am disabling it... CM
-- if online then SendSmartbuffVersion(name, sRUnit) end
-- if online then SendSmartbuffVersion(name, sRUnit) end
end
end --end for

Expand Down Expand Up @@ -4533,9 +4533,9 @@ local function CreateScrollButton(name, parent, cBtn, onClick, onDragStop)
local btn = CreateFrame("CheckButton", name, parent, "UICheckButtonTemplate");
btn:SetWidth(ScrBtnSize);
btn:SetHeight(ScrBtnSize);
--btn:RegisterForClicks("LeftButtonUp");
-- btn:RegisterForClicks("LeftButtonUp");
btn:SetScript("OnClick", onClick);
-- btn:SetScript("OnMouseUp", onClick);
-- btn:SetScript("OnMouseUp", onClick);

if (onDragStop ~= nil) then
btn:SetMovable(true);
Expand Down
Loading

0 comments on commit 4cf12f6

Please sign in to comment.