mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup
This commit is contained in:
@@ -448,8 +448,8 @@ end
|
||||
|
||||
local function IsInShapeshiftForm()
|
||||
for i = 1, GetNumShapeshiftForms() do
|
||||
local texture, _, active = GetShapeshiftFormInfo(i)
|
||||
if i ~= 5 and active ~= nil then
|
||||
local _, _, active = GetShapeshiftFormInfo(i)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,11 +7,9 @@ local _G = _G
|
||||
local ceil, mod = math.ceil, math.mod
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetShapeshiftForm = GetShapeshiftForm
|
||||
local GetNumShapeshiftForms = GetNumShapeshiftForms
|
||||
local GetShapeshiftFormCooldown = GetShapeshiftFormCooldown
|
||||
local GetShapeshiftFormInfo = GetShapeshiftFormInfo
|
||||
local GetSpellTexture = GetSpellTexture
|
||||
local GetBindingKey = GetBindingKey
|
||||
local NUM_SHAPESHIFT_SLOTS = NUM_SHAPESHIFT_SLOTS
|
||||
|
||||
@@ -32,9 +30,8 @@ function AB:SPELL_UPDATE_COOLDOWN()
|
||||
end
|
||||
|
||||
function AB:StyleShapeShift()
|
||||
local numForms = GetNumShapeshiftForms()
|
||||
local texture, name, isActive, isCastable, _
|
||||
local buttonName, button, icon, cooldown
|
||||
local texture, name, isActive, isCastable, _
|
||||
local numForms = GetNumShapeshiftForms()
|
||||
|
||||
for i = 1, NUM_SHAPESHIFT_SLOTS do
|
||||
|
||||
@@ -5,7 +5,7 @@ local AB = E:GetModule("ActionBars");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local find, format, upper, sub = string.find, string.format, string.upper, string.sub
|
||||
local floor, mod = math.floor, math.mod
|
||||
local floor = math.floor
|
||||
local select, tonumber, pairs, getn = select, tonumber, pairs, getn
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
|
||||
Reference in New Issue
Block a user