/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
- local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
- -- move durability frame.
- hooksecurefunc(DurabilityFrame,"SetPoint",function(self,_,parent)
- if (parent == "MinimapCluster") or (parent == _G["MinimapCluster"]) then
- self:ClearAllPoints()
- if C["actionbar"].bottomrows == true then
- self:Point("BOTTOM", UIParent, "BOTTOM", 0, 228)
- else
- self:Point("BOTTOM", UIParent, "BOTTOM", 0, 200)
- end
- end
- end)