/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

  1. local T, C, L = unpack(select(2, ...))
  2. local function LoadSkin()
  3. TimeManagerFrame:StripTextures()
  4. TimeManagerFrame:SetTemplate("Transparent")
  5. T.SkinCloseButton(TimeManagerCloseButton)
  6. T.SkinDropDownBox(TimeManagerAlarmHourDropDown, 80)
  7. T.SkinDropDownBox(TimeManagerAlarmMinuteDropDown, 80)
  8. T.SkinDropDownBox(TimeManagerAlarmAMPMDropDown, 80)
  9. T.SkinEditBox(TimeManagerAlarmMessageEditBox)
  10. T.SkinButton(TimeManagerAlarmEnabledButton, true)
  11. TimeManagerAlarmEnabledButton:HookScript("OnClick", function(self)
  12. T.SkinButton(self)
  13. end)
  14. TimeManagerFrame:HookScript("OnShow", function(self)
  15. T.SkinButton(TimeManagerAlarmEnabledButton)
  16. end)
  17. T.SkinCheckBox(TimeManagerMilitaryTimeCheck)
  18. T.SkinCheckBox(TimeManagerLocalTimeCheck)
  19. TimeManagerStopwatchFrame:StripTextures()
  20. TimeManagerStopwatchCheck:SetTemplate("Transparent")
  21. TimeManagerStopwatchCheck:GetNormalTexture():SetTexCoord(.08, .92, .08, .92)
  22. TimeManagerStopwatchCheck:GetNormalTexture():ClearAllPoints()
  23. TimeManagerStopwatchCheck:GetNormalTexture():Point("TOPLEFT", 2, -2)
  24. TimeManagerStopwatchCheck:GetNormalTexture():Point("BOTTOMRIGHT", -2, 2)
  25. local hover = TimeManagerStopwatchCheck:CreateTexture("frame", nil, TimeManagerStopwatchCheck) -- hover
  26. hover:SetTexture(1,1,1,0.3)
  27. hover:Point("TOPLEFT",TimeManagerStopwatchCheck,2,-2)
  28. hover:Point("BOTTOMRIGHT",TimeManagerStopwatchCheck,-2,2)
  29. TimeManagerStopwatchCheck:SetHighlightTexture(hover)
  30. StopwatchFrame:StripTextures()
  31. StopwatchFrame:CreateBackdrop("Transparent")
  32. StopwatchFrame.backdrop:Point("TOPLEFT", 0, -17)
  33. StopwatchFrame.backdrop:Point("BOTTOMRIGHT", 0, 2)
  34. StopwatchTabFrame:StripTextures()
  35. T.SkinCloseButton(StopwatchCloseButton)
  36. T.SkinNextPrevButton(StopwatchPlayPauseButton)
  37. T.SkinNextPrevButton(StopwatchResetButton)
  38. StopwatchPlayPauseButton:Point("RIGHT", StopwatchResetButton, "LEFT", -4, 0)
  39. StopwatchResetButton:Point("BOTTOMRIGHT", StopwatchFrame, "BOTTOMRIGHT", -4, 6)
  40. end
  41. T.SkinFuncs["Blizzard_TimeManager"] = LoadSkin