PageRenderTime 60ms CodeModel.GetById 57ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/modules/actionbars/Bar5.lua

http://github.com/Asphyxia/Tukui
Lua | 33 lines | 25 code | 5 blank | 3 comment | 9 complexity | 861e0ead3802485de1cef3373764e863 MD5 | raw file
 1local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
 2
 3if not C["actionbar"].enable == true then return end
 4
 5---------------------------------------------------------------------------
 6-- setup MultiBarBottomRight as bar #5
 7---------------------------------------------------------------------------
 8
 9local bar = TukuiBar4
10MultiBarBottomRight:SetParent(bar)
11
12for i= 1, 12 do
13	local b = _G["MultiBarBottomRightButton"..i]
14	local b2 = _G["MultiBarBottomRightButton"..i-1]
15	b:Size(T.buttonsize, T.buttonsize)
16	b:ClearAllPoints()
17	b:SetFrameStrata("BACKGROUND")
18	b:SetFrameLevel(15)
19	
20	if i == 1 then
21		if C["actionbar"].vertical_rightbars == true then
22			b:Point("TOPRIGHT", _G["MultiBarRightButton1"], "TOPLEFT", -T.buttonspacing, 0)
23		else
24			b:Point("BOTTOMLEFT", _G["MultiBarRightButton1"], "TOPLEFT", 0, T.buttonspacing)
25		end
26	else
27		if C["actionbar"].vertical_rightbars == true then
28			b:Point("TOP", b2, "BOTTOM", 0, -T.buttonspacing)
29		else
30			b:Point("LEFT", b2, "RIGHT", T.buttonspacing, 0)
31		end
32	end
33end