Permalink
Browse files

Fix some close button issues

  • Loading branch information...
1 parent 299fd1d commit a93e754d6714e9376757c1c3a7e216f5eee81485 @Elv22 Elv22 committed Jul 13, 2011
@@ -267,7 +267,7 @@ function E.SkinCheckBox(frame)
frame.SetHighlightTexture = E.dummy
end
-function E.SkinCloseButton(f, point)
+function E.SkinCloseButton(f, point, text)
f:StripTextures()
if not f.backdrop then
@@ -277,11 +277,11 @@ function E.SkinCloseButton(f, point)
f:HookScript('OnEnter', SetModifiedBackdrop)
f:HookScript('OnLeave', SetOriginalBackdrop)
end
-
+ if not text then text = 'x' end
if not f.text then
f.text = f:CreateFontString(nil, 'OVERLAY')
f.text:SetFont([[Interface\AddOns\ElvUI\media\fonts\PT_Sans_Narrow.ttf]], 16, 'THINOUTLINE')
- f.text:SetText('x')
+ f.text:SetText(text)
f.text:SetJustifyH('CENTER')
f.text:SetPoint('CENTER', f, 'CENTER')
end
@@ -277,7 +277,12 @@ local function LoadSkin()
OpacityFrame:StripTextures()
OpacityFrame:SetTemplate("Transparent")
- E.SkinCloseButton(WatchFrameCollapseExpandButton)
+ for i=1, WatchFrameCollapseExpandButton:GetNumRegions() do
+ local region = select(i, WatchFrameCollapseExpandButton:GetRegions())
+ if region:GetObjectType() == 'Texture' then
+ region:SetDesaturated(true)
+ end
+ end
--Chat Config
local StripAllTextures = {
@@ -10,8 +10,8 @@ local function LoadSkin()
WorldMapDetailFrame.backdrop:SetFrameLevel(WorldMapDetailFrame:GetFrameLevel() - 2)
E.SkinCloseButton(WorldMapFrameCloseButton)
- E.SkinCloseButton(WorldMapFrameSizeDownButton)
- E.SkinCloseButton(WorldMapFrameSizeUpButton)
+ E.SkinCloseButton(WorldMapFrameSizeDownButton, nil, '-')
+ E.SkinCloseButton(WorldMapFrameSizeUpButton, nil, '+')
E.SkinDropDownBox(WorldMapLevelDropDown)
E.SkinDropDownBox(WorldMapZoneMinimapDropDown)

0 comments on commit a93e754

Please sign in to comment.