Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
254 changes: 127 additions & 127 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
10 changes: 5 additions & 5 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 @@ -1042,7 +1042,7 @@ function SMARTBUFF_SetBuffs()
if (B[CS()] == nil) then
B[CS()] = {};
end

SMARTBUFF_InitSpellIDs();
SMARTBUFF_InitItemList();
SMARTBUFF_InitSpellList();
Expand Down Expand Up @@ -2115,7 +2115,7 @@ function SMARTBUFF_BuffUnit(unit, subgroup, mode, spell)
--isShapeshifted = true;
if (isShapeshifted) then
-- Buff linked to shapeshift form... or not
-- Params is buff[5] in buffs
-- Params is buff[5] in buffs
if (cBuff.Params == sShapename) then
--SMARTBUFF_AddMsgD("Cast " .. buff .. " while shapeshifted");
else
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