This commit is contained in:
Pinya
2018-07-18 15:06:20 +03:00
parent de74893739
commit c60324af12
52 changed files with 48 additions and 190 deletions
+1 -1
View File
@@ -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
+1 -4
View File
@@ -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
+1 -1
View File
@@ -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