/Tukui/modules/skins/timemanager.lua
http://github.com/Asphyxia/Tukui · Lua · 52 lines · 41 code · 11 blank · 0 comment · 0 complexity · 5411ffddb123f2c0ec08acf252f64858 MD5 · raw file
- local T, C, L = unpack(select(2, ...))
- local function LoadSkin()
- TimeManagerFrame:StripTextures()
- TimeManagerFrame:SetTemplate("Transparent")
- T.SkinCloseButton(TimeManagerCloseButton)
- T.SkinDropDownBox(TimeManagerAlarmHourDropDown, 80)
- T.SkinDropDownBox(TimeManagerAlarmMinuteDropDown, 80)
- T.SkinDropDownBox(TimeManagerAlarmAMPMDropDown, 80)
-
- T.SkinEditBox(TimeManagerAlarmMessageEditBox)
-
- T.SkinButton(TimeManagerAlarmEnabledButton, true)
- TimeManagerAlarmEnabledButton:HookScript("OnClick", function(self)
- T.SkinButton(self)
- end)
- TimeManagerFrame:HookScript("OnShow", function(self)
- T.SkinButton(TimeManagerAlarmEnabledButton)
- end)
-
- T.SkinCheckBox(TimeManagerMilitaryTimeCheck)
- T.SkinCheckBox(TimeManagerLocalTimeCheck)
-
- TimeManagerStopwatchFrame:StripTextures()
- TimeManagerStopwatchCheck:SetTemplate("Transparent")
- TimeManagerStopwatchCheck:GetNormalTexture():SetTexCoord(.08, .92, .08, .92)
- TimeManagerStopwatchCheck:GetNormalTexture():ClearAllPoints()
- TimeManagerStopwatchCheck:GetNormalTexture():Point("TOPLEFT", 2, -2)
- TimeManagerStopwatchCheck:GetNormalTexture():Point("BOTTOMRIGHT", -2, 2)
- local hover = TimeManagerStopwatchCheck:CreateTexture("frame", nil, TimeManagerStopwatchCheck) -- hover
- hover:SetTexture(1,1,1,0.3)
- hover:Point("TOPLEFT",TimeManagerStopwatchCheck,2,-2)
- hover:Point("BOTTOMRIGHT",TimeManagerStopwatchCheck,-2,2)
- TimeManagerStopwatchCheck:SetHighlightTexture(hover)
-
- StopwatchFrame:StripTextures()
- StopwatchFrame:CreateBackdrop("Transparent")
- StopwatchFrame.backdrop:Point("TOPLEFT", 0, -17)
- StopwatchFrame.backdrop:Point("BOTTOMRIGHT", 0, 2)
-
- StopwatchTabFrame:StripTextures()
- T.SkinCloseButton(StopwatchCloseButton)
- T.SkinNextPrevButton(StopwatchPlayPauseButton)
- T.SkinNextPrevButton(StopwatchResetButton)
- StopwatchPlayPauseButton:Point("RIGHT", StopwatchResetButton, "LEFT", -4, 0)
- StopwatchResetButton:Point("BOTTOMRIGHT", StopwatchFrame, "BOTTOMRIGHT", -4, 6)
- end
- T.SkinFuncs["Blizzard_TimeManager"] = LoadSkin