/Tukui/modules/actionbars/BarTotem.lua

http://github.com/Asphyxia/Tukui · Lua · 23 lines · 16 code · 4 blank · 3 comment · 6 complexity · e493ca689cffd2d4a4c715689943d62e MD5 · raw file

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