Skip to content

Commit

Permalink
fixed Skin in Update 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fuba82 committed Nov 18, 2023
1 parent 3e2d6eb commit 54d0030
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions CQL_ElvUISkin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ if not ClassicQuestLog then return end
local cql = ClassicQuestLog

local function SkinForElvUI()
local E, L, P, G = unpack(ElvUI)
local S = E:GetModule("Skins")
local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule('Skins')


cql:StripTextures()
cql:SetTemplate("Transparent")

-- fix if BackdropTemplate is missing
Mixin(ClassicQuestLogScrollFrame, BackdropTemplateMixin)
Mixin(ClassicQuestLogDetailScrollFrame, BackdropTemplateMixin)
Mixin(cql.detail, BackdropTemplateMixin)

ClassicQuestLog.detail:StripTextures()
ClassicQuestLog.detail:SetTemplate("Transparent")

S:HandleCloseButton(cql.CloseButton)

Expand All @@ -20,15 +25,27 @@ local function SkinForElvUI()
end
end


-- ClassicQuestLogScrollFrame and ScrollBar
ClassicQuestLogScrollFrame:StripTextures()
ClassicQuestLogScrollFrame:SetTemplate("Transparent")
S:HandleScrollBar(ClassicQuestLogScrollFrameScrollBar)

S:HandleScrollBar(ClassicQuestLogDetailScrollFrameScrollBar)

-- ClassicQuestLogDetailScrollFrame and ScrollBar
S:HandleTrimScrollBar(ClassicQuestLogDetailScrollFrame.ScrollBar)

-- ClassicQuestLogLoreScrollFrame and ScrollBar
ClassicQuestLogLoreScrollFrame:SetTemplate("Transparent")
S:HandleScrollBar(ClassicQuestLogLoreScrollFrameScrollBar)

-- ClassicQuestLogOptionsScrollFrame and ScrollBar
ClassicQuestLogOptionsScrollFrame:StripTextures()
ClassicQuestLogOptionsScrollFrame:SetTemplate("Transparent")
S:HandleScrollBar(ClassicQuestLogOptionsScrollFrameScrollBar)

ClassicQuestLogLoreScrollFrame:SetTemplate("Transparent")
S:HandleScrollBar(ClassicQuestLogLoreScrollFrameScrollBar)
-- Custom Scale Slider
S:HandleSliderFrame(ClassicQuestLogOptionsScrollFrame.content.UseCustomScale.ScaleSlider)
S:HandleButton(ClassicQuestLogOptionsScrollFrame.content.UseCustomScale.SetButton)

for k,v in pairs({"LockWindow","ShowResizeGrip","ShowLevels","ShowTooltips","ShowFromObjectiveTracker","DontOverrideBind","ShowMinimapButton","UseCustomScale"}) do
if ClassicQuestLogOptionsScrollFrame then
Expand Down

0 comments on commit 54d0030

Please sign in to comment.