PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

/Tukui_Raid/icon.lua

http://github.com/Asphyxia/Tukui
Lua | 14 lines | 11 code | 2 blank | 1 comment | 1 complexity | bf3a97aa375f43c43c1743366dad1a5f MD5 | raw file
 1local T, C, L = unpack(Tukui) -- Import: T - functions, constants, variables; C - config; L - locales
 2
 3-- SWITCH LAYOUT
 4if C.chat.background then
 5	local swlicon = CreateFrame("Frame", "TukuiSwitchLayoutIcon", TukuiSwitchLayoutButton)
 6	swlicon:CreatePanel("Default", TukuiTabsRightBackground:GetHeight()-4, TukuiTabsRightBackground:GetHeight()-4, "LEFT", TukuiSwitchLayoutButton, "RIGHT", 0, 0)
 7	swlicon:SetFrameStrata("BACKGROUND")
 8	swlicon:SetFrameLevel(TukuiSwitchLayoutButton:GetFrameLevel())
 9
10	local tex = swlicon:CreateTexture(nil, "OVERLAY")
11	tex:SetTexture(C.media.switchlayoutdd)
12	tex:SetPoint("TOPLEFT", swlicon, "TOPLEFT", 2, -2)
13	tex:SetPoint("BOTTOMRIGHT", swlicon, "BOTTOMRIGHT", -2, 2)
14end