Add skinning for Mentor Panel
This commit is contained in:
@@ -14,21 +14,38 @@ S:AddCallbackForAddon("Ascension_PathToAscension", "Skin_PathToAscension", funct
|
|||||||
PathToAscensionFrameObjectivesInsetFrame:StripTextures()
|
PathToAscensionFrameObjectivesInsetFrame:StripTextures()
|
||||||
|
|
||||||
PathToAscensionFrameMentorPanel:StripTextures()
|
PathToAscensionFrameMentorPanel:StripTextures()
|
||||||
|
PathToAscensionFrameMentorPanelBecomeMentor:StripTextures()
|
||||||
|
PathToAscensionFrameMentorPanelBecomeMentorBorder:StripTextures()
|
||||||
|
PathToAscensionFrameMentorPanelFindHelp:StripTextures()
|
||||||
|
PathToAscensionFrameMentorPanelFindHelpBorder:StripTextures()
|
||||||
|
-- Strip Frame Inset from AvailableMentors list
|
||||||
|
local mentorFrameChildren = {PathToAscensionFrameMentorPanelFindHelpAvailableMentors:GetChildren()}
|
||||||
|
mentorFrameChildren[2]:StripTextures()
|
||||||
|
|
||||||
|
|
||||||
PathToAscensionFrame:CreateBackdrop("Transparent")
|
PathToAscensionFrame:CreateBackdrop("Transparent")
|
||||||
|
PathToAscensionFrameMentorPanelBecomeMentor:CreateBackdrop("Transparent")
|
||||||
|
PathToAscensionFrameMentorPanelFindHelp:CreateBackdrop("Transparent")
|
||||||
|
|
||||||
-- Strip Objective Panel Frame textures
|
-- Strip Objective Panel Frame textures
|
||||||
PathToAscensionFrameDisplay:StripTextures()
|
PathToAscensionFrameDisplay:StripTextures()
|
||||||
PathToAscensionFrameDisplayQuestObjectives:StripTextures()
|
PathToAscensionFrameDisplayQuestObjectives:StripTextures()
|
||||||
|
|
||||||
-- Reskin the Frames in ElvUI style
|
-- Reskin the Frames in ElvUI style
|
||||||
|
S:HandleCloseButton(PathToAscensionFrameCloseButton)
|
||||||
S:HandleEditBox(PathToAscensionFrameObjectivesHeaderSearch)
|
S:HandleEditBox(PathToAscensionFrameObjectivesHeaderSearch)
|
||||||
|
S:HandleEditBox(PathToAscensionFrameMentorPanelFindHelpSearchBox)
|
||||||
|
|
||||||
S:HandleScrollBar(PathToAscensionFrameObjectivesScrollFrameScrollBar)
|
S:HandleScrollBar(PathToAscensionFrameObjectivesScrollFrameScrollBar)
|
||||||
S:HandleButton(PathToAscensionFrameDisplayQuestObjectivesInteractButton)
|
S:HandleButton(PathToAscensionFrameDisplayQuestObjectivesInteractButton)
|
||||||
S:HandleButton(PathToAscensionFrameDisplayLeftButton)
|
S:HandleButton(PathToAscensionFrameDisplayLeftButton)
|
||||||
S:HandleButton(PathToAscensionFrameDisplayRightButton)
|
S:HandleButton(PathToAscensionFrameDisplayRightButton)
|
||||||
|
|
||||||
|
S:HandleButton(PathToAscensionFrameMentorPanelBecomeMentorBecomeMentorButton)
|
||||||
|
S:HandleButton(PathToAscensionFrameMentorPanelFindHelpRefreshButton)
|
||||||
|
PathToAscensionFrameMentorPanelFindHelpRefreshButton:Size(22, 22)
|
||||||
|
|
||||||
|
S:HandleScrollList(PathToAscensionFrameMentorPanelFindHelpAvailableMentors)
|
||||||
|
|
||||||
S:HandleTabSystem(PathToAscensionFrame)
|
S:HandleTabSystem(PathToAscensionFrame)
|
||||||
|
|
||||||
@@ -59,4 +76,19 @@ S:AddCallbackForAddon("Ascension_PathToAscension", "Skin_PathToAscension", funct
|
|||||||
S:HandleButton(objectiveButton, true)
|
S:HandleButton(objectiveButton, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Reskin Mentor Checkboxes
|
||||||
|
for i = 1, 10 do
|
||||||
|
local checkBox = _G["PathToAscensionFrameMentorPanelBecomeMentorSpecialization"..i]
|
||||||
|
S:HandleCheckBox(checkBox)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Reskin Available Mentors
|
||||||
|
for i = 1, 9 do
|
||||||
|
local mentor = _G["PathToAscensionFrameMentorPanelFindHelpAvailableMentorsScrollFrameButton"..i]
|
||||||
|
S:HandleButton(mentor, true)
|
||||||
|
end
|
||||||
|
|
||||||
|
PathToAscensionFrameMentorPanelFindHelpFilter:StripTextures(true)
|
||||||
|
S:HandleButton(PathToAscensionFrameMentorPanelFindHelpFilter)
|
||||||
|
|
||||||
end)
|
end)
|
||||||
Reference in New Issue
Block a user