PageRenderTime 101ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/Tukui/modules/skins/dressup.lua

http://github.com/Asphyxia/Tukui
Lua | 19 lines | 16 code | 3 blank | 0 comment | 0 complexity | c674ac1bf1784c1a073584c3b1cc3886 MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	DressUpFrame:StripTextures(true)
 5	DressUpFrame:CreateBackdrop("Transparent")
 6	DressUpFrame.backdrop:CreateShadow("Transparent")
 7	DressUpFrame.backdrop:Point("TOPLEFT", 6, 0)
 8	DressUpFrame.backdrop:Point("BOTTOMRIGHT", -32, 70)
 9
10	T.SkinButton(DressUpFrameResetButton)
11	T.SkinButton(DressUpFrameCancelButton)
12	T.SkinCloseButton(DressUpFrameCloseButton, DressUpFrame.backdrop)
13	T.SkinRotateButton(DressUpModelRotateLeftButton)
14	T.SkinRotateButton(DressUpModelRotateRightButton)
15	DressUpModelRotateRightButton:Point("TOPLEFT", DressUpModelRotateLeftButton, "TOPRIGHT", 2, 0)
16	DressUpFrameResetButton:Point("RIGHT", DressUpFrameCancelButton, "LEFT", -2, 0)
17end
18
19tinsert(T.SkinFuncs["Tukui"], LoadSkin)