PageRenderTime 122ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 59ms app.codeStats 0ms

/Tukui/modules/blizzard/durability.lua

http://github.com/Asphyxia/Tukui
Lua | 13 lines | 11 code | 1 blank | 1 comment | 5 complexity | 8311dbe9ad4010e3e3d0a95194c60ed2 MD5 | raw file
 1local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
 2-- move durability frame.
 3
 4hooksecurefunc(DurabilityFrame,"SetPoint",function(self,_,parent)
 5    if (parent == "MinimapCluster") or (parent == _G["MinimapCluster"]) then
 6        self:ClearAllPoints()
 7		if C["actionbar"].bottomrows == true then
 8			self:Point("BOTTOM", UIParent, "BOTTOM", 0, 228)
 9		else
10			self:Point("BOTTOM", UIParent, "BOTTOM", 0, 200)
11		end
12    end
13end)