/Tukui/modules/blizzard/durability.lua

http://github.com/Asphyxia/Tukui · Lua · 13 lines · 11 code · 1 blank · 1 comment · 6 complexity · 8311dbe9ad4010e3e3d0a95194c60ed2 MD5 · raw file

  1. local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
  2. -- move durability frame.
  3. hooksecurefunc(DurabilityFrame,"SetPoint",function(self,_,parent)
  4. if (parent == "MinimapCluster") or (parent == _G["MinimapCluster"]) then
  5. self:ClearAllPoints()
  6. if C["actionbar"].bottomrows == true then
  7. self:Point("BOTTOM", UIParent, "BOTTOM", 0, 228)
  8. else
  9. self:Point("BOTTOM", UIParent, "BOTTOM", 0, 200)
  10. end
  11. end
  12. end)