PageRenderTime 68ms CodeModel.GetById 65ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/modules/actionbars/BarTotem.lua

http://github.com/Asphyxia/Tukui
Lua | 23 lines | 16 code | 4 blank | 3 comment | 5 complexity | e493ca689cffd2d4a4c715689943d62e MD5 | raw file
 1local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
 2if C["actionbar"].enable ~= true then return end
 3
 4-- we just use default totem bar for shaman
 5-- we parent it to our shapeshift bar.
 6-- This is approx the same script as it was in WOTLK Tukui version.
 7
 8if T.myclass == "SHAMAN" then
 9	if MultiCastActionBarFrame then
10		MultiCastActionBarFrame:SetScript("OnUpdate", nil)
11		MultiCastActionBarFrame:SetScript("OnShow", nil)
12		MultiCastActionBarFrame:SetScript("OnHide", nil)
13		MultiCastActionBarFrame:SetParent(TukuiShiftBar)
14		MultiCastActionBarFrame:ClearAllPoints()
15		MultiCastActionBarFrame:Point("BOTTOMLEFT", 2, 2)
16
17		hooksecurefunc("MultiCastActionButton_Update",function(actionbutton) if not InCombatLockdown() then actionbutton:SetAllPoints(actionbutton.slotButton) end end)
18 
19		MultiCastActionBarFrame.SetParent = T.dummy
20		MultiCastActionBarFrame.SetPoint = T.dummy
21		MultiCastRecallSpellButton.SetPoint = T.dummy
22	end
23end