Permalink
Browse files

Fixed HelpFrame skin.

  • Loading branch information...
1 parent dafa564 commit 5e4e3253c779b197bdea948d56f2a1b0af6216e0 @Shestak committed Apr 18, 2012
Showing with 55 additions and 22 deletions.
  1. +1 −0 ShestakUI/Core/API.lua
  2. +54 −22 ShestakUI/Modules/Skins/Blizzard/Help.lua
View
@@ -254,6 +254,7 @@ local function SkinButton(f, strip)
if _G[f:GetName().."Left"] then _G[f:GetName().."Left"]:SetAlpha(0) end
if _G[f:GetName().."Middle"] then _G[f:GetName().."Middle"]:SetAlpha(0) end
if _G[f:GetName().."Right"] then _G[f:GetName().."Right"]:SetAlpha(0) end
+ if _G[f:GetName().."Selected"] then _G[f:GetName().."Selected"]:SetAlpha(0) end
if _G[f:GetName().."LeftDisabled"] then _G[f:GetName().."LeftDisabled"]:SetAlpha(0) end
if _G[f:GetName().."MiddleDisabled"] then _G[f:GetName().."MiddleDisabled"]:SetAlpha(0) end
if _G[f:GetName().."RightDisabled"] then _G[f:GetName().."RightDisabled"]:SetAlpha(0) end
@@ -9,26 +9,30 @@ local function LoadSkin()
"HelpFrameLeftInset",
"HelpFrameMainInset",
"HelpFrameKnowledgebase",
- "HelpFrameKnowledgebaseErrorFrame"
+ "HelpFrameKnowledgebaseErrorFrame",
+ "ReportPlayerNameDialogCommentFrame",
+ "ReportCheatingDialogCommentFrame"
}
local buttons = {
"HelpFrameAccountSecurityOpenTicket",
- "HelpFrameReportLagLoot",
- "HelpFrameReportLagAuctionHouse",
- "HelpFrameReportLagMail",
- "HelpFrameReportLagMovement",
- "HelpFrameReportLagSpell",
- "HelpFrameReportLagChat",
- "HelpFrameReportAbuseOpenTicket",
"HelpFrameOpenTicketHelpTopIssues",
"HelpFrameOpenTicketHelpOpenTicket",
"HelpFrameKnowledgebaseSearchButton",
"HelpFrameKnowledgebaseNavBarHomeButton",
"HelpFrameCharacterStuckStuck",
"GMChatOpenLog",
"HelpFrameTicketSubmit",
- "HelpFrameTicketCancel"
+ "HelpFrameTicketCancel",
+ "HelpFrameGM_ResponseNeedMoreHelp",
+ "HelpFrameGM_ResponseCancel",
+ "HelpFrameSubmitSuggestionSubmit",
+ "HelpFrameReportBugSubmit",
+ "HelpFrameButton16",
+ "ReportCheatingDialogCancelButton",
+ "ReportCheatingDialogReportButton",
+ "ReportPlayerNameDialogReportButton",
+ "ReportPlayerNameDialogCancelButton"
}
-- Main frames
@@ -53,27 +57,49 @@ local function LoadSkin()
end
end
+ HelpFrameReportBugScrollFrame:StripTextures()
+ HelpFrameReportBugScrollFrame:CreateBackdrop("Overlay")
+ HelpFrameReportBugScrollFrame.backdrop:Point("TOPLEFT", -4, 4)
+ HelpFrameReportBugScrollFrame.backdrop:Point("BOTTOMRIGHT", 6, -4)
+ HelpFrameReportBugScrollFrame:ClearAllPoints()
+ HelpFrameReportBugScrollFrame:Point("BOTTOM", HelpFrameReportBugSubmit, "TOP", 0, 10)
+
+ for i = 1, HelpFrameReportBug:GetNumChildren() do
+ local child = select(i, HelpFrameReportBug:GetChildren())
+ if not child:GetName() then
+ child:StripTextures()
+ end
+ end
+
+ HelpFrameSubmitSuggestionScrollFrame:StripTextures()
+ HelpFrameSubmitSuggestionScrollFrame:CreateBackdrop("Overlay")
+ HelpFrameSubmitSuggestionScrollFrame.backdrop:Point("TOPLEFT", -4, 4)
+ HelpFrameSubmitSuggestionScrollFrame.backdrop:Point("BOTTOMRIGHT", 6, -4)
+
+ for i = 1, HelpFrameSubmitSuggestion:GetNumChildren() do
+ local child = select(i, HelpFrameSubmitSuggestion:GetChildren())
+ if not child:GetName() then
+ child:StripTextures()
+ end
+ end
+
T.SkinScrollBar(HelpFrameKnowledgebaseScrollFrame2ScrollBar)
-- Sub buttons
for i = 1, #buttons do
- _G[buttons[i]]:StripTextures(true)
- _G[buttons[i]]:SkinButton(true)
+ local b = _G[buttons[i]]
+ b:SkinButton(false)
- if _G[buttons[i]].text then
- _G[buttons[i]].text:ClearAllPoints()
- _G[buttons[i]].text:SetPoint("CENTER")
- _G[buttons[i]].text:SetJustifyH("CENTER")
+ if b.text then
+ b.text:SetFont(C.media.normal_font, 13)
end
end
-- Main buttons
for i = 1, 6 do
local b = _G["HelpFrameButton"..i]
- b:SkinButton(true)
- b.text:ClearAllPoints()
- b.text:SetPoint("CENTER")
- b.text:SetJustifyH("CENTER")
+ b:SkinButton(false)
+ b.text:SetFont(C.media.normal_font, 13)
end
-- Table options
@@ -86,6 +112,8 @@ local function LoadSkin()
-- Misc items
HelpFrameKnowledgebaseSearchBox:ClearAllPoints()
HelpFrameKnowledgebaseSearchBox:Point("TOPLEFT", HelpFrameMainInset, "TOPLEFT", 13, -10)
+ HelpFrameKnowledgebaseNavBarHomeButton:ClearAllPoints()
+ HelpFrameKnowledgebaseNavBarHomeButton:Point("TOPLEFT", HelpFrameKnowledgebaseSearchBox, "BOTTOMLEFT", -2, -10)
HelpFrameKnowledgebaseNavBarOverlay:Kill()
HelpFrameKnowledgebaseNavBar:StripTextures()
HelpFrame:StripTextures(true)
@@ -98,12 +126,18 @@ local function LoadSkin()
-- Hearth Stone Button
HelpFrameCharacterStuckHearthstone:StyleButton()
- HelpFrameCharacterStuckHearthstone:SetTemplate("Default", true)
+ HelpFrameCharacterStuckHearthstone:SetTemplate("Default")
HelpFrameCharacterStuckHearthstone.IconTexture:ClearAllPoints()
HelpFrameCharacterStuckHearthstone.IconTexture:Point("TOPLEFT", 2, -2)
HelpFrameCharacterStuckHearthstone.IconTexture:Point("BOTTOMRIGHT", -2, 2)
HelpFrameCharacterStuckHearthstone.IconTexture:SetTexCoord(0.1, 0.9, 0.1, 0.9)
+ -- Report frames
+ ReportPlayerNameDialog:StripTextures()
+ ReportPlayerNameDialog:CreateBackdrop("Transparent")
+ ReportCheatingDialog:StripTextures()
+ ReportCheatingDialog:CreateBackdrop("Transparent")
+
local function navButtonFrameLevel(self)
for i = 1, #self.navList do
local navButton = self.navList[i]
@@ -131,8 +165,6 @@ local function LoadSkin()
navButtonFrameLevel(self)
end)
- HelpFrameGM_ResponseNeedMoreHelp:SkinButton()
- HelpFrameGM_ResponseCancel:SkinButton()
for i = 1, HelpFrameGM_Response:GetNumChildren() do
local child = select(i, HelpFrameGM_Response:GetChildren())
if child and child:GetObjectType() == "Frame" and not child:GetName() then

0 comments on commit 5e4e325

Please sign in to comment.