Disable clique skin since it was updated
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
if true then return end
|
||||||
|
|
||||||
local E, L, V, P, G = unpack(ElvUI)
|
local E, L, V, P, G = unpack(ElvUI)
|
||||||
local S = E:GetModule("Skins")
|
local S = E:GetModule("Skins")
|
||||||
local AS = E:GetModule("AddOnSkins")
|
local AS = E:GetModule("AddOnSkins")
|
||||||
@@ -13,243 +15,243 @@ local FauxScrollFrame_GetOffset = FauxScrollFrame_GetOffset
|
|||||||
-- https://www.curseforge.com/wow/addons/clique/files/466948
|
-- https://www.curseforge.com/wow/addons/clique/files/466948
|
||||||
|
|
||||||
S:AddCallbackForAddon("Clique", "Clique", function()
|
S:AddCallbackForAddon("Clique", "Clique", function()
|
||||||
if not E.private.addOnSkins.Clique then return end
|
if not E.private.addOnSkins.Clique then return end
|
||||||
|
|
||||||
CliquePulloutTab:StyleButton(nil, true)
|
CliquePulloutTab:StyleButton(nil, true)
|
||||||
CliquePulloutTab:SetTemplate("Default", true)
|
CliquePulloutTab:SetTemplate("Default", true)
|
||||||
CliquePulloutTab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
|
CliquePulloutTab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
|
||||||
CliquePulloutTab:GetNormalTexture():SetInside()
|
CliquePulloutTab:GetNormalTexture():SetInside()
|
||||||
CliquePulloutTab:GetRegions():Hide()
|
CliquePulloutTab:GetRegions():Hide()
|
||||||
|
|
||||||
local function SkinFrame(frame)
|
local function SkinFrame(frame)
|
||||||
frame:StripTextures()
|
frame:StripTextures()
|
||||||
frame:SetTemplate("Transparent")
|
frame:SetTemplate("Transparent")
|
||||||
|
|
||||||
frame.titleBar:StripTextures()
|
frame.titleBar:StripTextures()
|
||||||
frame.titleBar:SetTemplate("Default", true)
|
frame.titleBar:SetTemplate("Default", true)
|
||||||
frame.titleBar:Height(20)
|
frame.titleBar:Height(20)
|
||||||
frame.titleBar:SetPoint("TOPLEFT", frame, "TOPLEFT", 0, 0)
|
frame.titleBar:SetPoint("TOPLEFT", frame, "TOPLEFT", 0, 0)
|
||||||
frame.titleBar:SetPoint("TOPRIGHT", frame, "TOPRIGHT", 0, 0)
|
frame.titleBar:SetPoint("TOPRIGHT", frame, "TOPRIGHT", 0, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function listItemOnEnter(self)
|
local function listItemOnEnter(self)
|
||||||
self:SetBackdropBorderColor(unpack(E.media.rgbvaluecolor))
|
self:SetBackdropBorderColor(unpack(E.media.rgbvaluecolor))
|
||||||
end
|
end
|
||||||
local function listItemOnLeave(self)
|
local function listItemOnLeave(self)
|
||||||
local offset = FauxScrollFrame_GetOffset(CliqueListScroll)
|
local offset = FauxScrollFrame_GetOffset(CliqueListScroll)
|
||||||
if (self.id + offset) == Clique.listSelected then
|
if (self.id + offset) == Clique.listSelected then
|
||||||
self:SetBackdropBorderColor(1, 1, 1)
|
self:SetBackdropBorderColor(1, 1, 1)
|
||||||
else
|
else
|
||||||
self:SetBackdropBorderColor(unpack(E.media.bordercolor))
|
self:SetBackdropBorderColor(unpack(E.media.bordercolor))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
hooksecurefunc(Clique, "CreateOptionsFrame", function()
|
hooksecurefunc(Clique, "CreateOptionsFrame", function()
|
||||||
-- Main Frame
|
-- Main Frame
|
||||||
SkinFrame(CliqueFrame)
|
SkinFrame(CliqueFrame)
|
||||||
|
|
||||||
CliqueFrame:Height(424)
|
CliqueFrame:Height(424)
|
||||||
CliqueFrame:Point("LEFT", AscensionSpellbookFrame, "RIGHT", 6, 32)
|
CliqueFrame:Point("LEFT", AscensionSpellbookFrame, "RIGHT", 6, 32)
|
||||||
|
|
||||||
S:HandleCloseButton(CliqueButtonClose)
|
S:HandleCloseButton(CliqueButtonClose)
|
||||||
CliqueButtonClose:Size(32)
|
CliqueButtonClose:Size(32)
|
||||||
CliqueButtonClose:Point("TOPRIGHT", 5, 6)
|
CliqueButtonClose:Point("TOPRIGHT", 5, 6)
|
||||||
|
|
||||||
S:HandleDropDownBox(CliqueDropDown, 170)
|
S:HandleDropDownBox(CliqueDropDown, 170)
|
||||||
CliqueDropDown:Point("TOPRIGHT", 0, -26)
|
CliqueDropDown:Point("TOPRIGHT", 0, -26)
|
||||||
|
|
||||||
CliqueList1:Point("TOPLEFT", 8, -56)
|
CliqueList1:Point("TOPLEFT", 8, -56)
|
||||||
|
|
||||||
CliqueListScroll:StripTextures()
|
CliqueListScroll:StripTextures()
|
||||||
S:HandleScrollBar(CliqueListScrollScrollBar)
|
S:HandleScrollBar(CliqueListScrollScrollBar)
|
||||||
CliqueListScrollScrollBar:Point("TOPLEFT", CliqueListScroll, "TOPRIGHT", 3, -19)
|
CliqueListScrollScrollBar:Point("TOPLEFT", CliqueListScroll, "TOPRIGHT", 3, -19)
|
||||||
CliqueListScrollScrollBar:Point("BOTTOMLEFT", CliqueListScroll, "BOTTOMRIGHT", 3, 19)
|
CliqueListScrollScrollBar:Point("BOTTOMLEFT", CliqueListScroll, "BOTTOMRIGHT", 3, 19)
|
||||||
|
|
||||||
CliqueButtonCustom:Point("BOTTOMLEFT", 8, 8)
|
CliqueButtonCustom:Point("BOTTOMLEFT", 8, 8)
|
||||||
|
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
local entry = _G["CliqueList"..i]
|
local entry = _G["CliqueList" .. i]
|
||||||
entry:Size(388, 32)
|
entry:Size(388, 32)
|
||||||
entry:SetTemplate("Default")
|
entry:SetTemplate("Default")
|
||||||
entry.icon:Point("LEFT", 4, 0)
|
entry.icon:Point("LEFT", 4, 0)
|
||||||
entry.icon:SetTexCoord(unpack(E.TexCoords))
|
entry.icon:SetTexCoord(unpack(E.TexCoords))
|
||||||
|
|
||||||
if i > 1 then
|
if i > 1 then
|
||||||
entry:Point("TOP", _G["CliqueList" .. (i - 1)], "BOTTOM", 0, -1)
|
entry:Point("TOP", _G["CliqueList" .. (i - 1)], "BOTTOM", 0, -1)
|
||||||
end
|
end
|
||||||
|
|
||||||
entry:SetScript("OnEnter", listItemOnEnter)
|
entry:SetScript("OnEnter", listItemOnEnter)
|
||||||
entry:SetScript("OnLeave", listItemOnLeave)
|
entry:SetScript("OnLeave", listItemOnLeave)
|
||||||
end
|
end
|
||||||
|
|
||||||
S:HandleButton(CliqueButtonCustom)
|
S:HandleButton(CliqueButtonCustom)
|
||||||
S:HandleButton(CliqueButtonFrames)
|
S:HandleButton(CliqueButtonFrames)
|
||||||
S:HandleButton(CliqueButtonProfiles)
|
S:HandleButton(CliqueButtonProfiles)
|
||||||
S:HandleButton(CliqueButtonOptions)
|
S:HandleButton(CliqueButtonOptions)
|
||||||
S:HandleButton(CliqueButtonDelete)
|
S:HandleButton(CliqueButtonDelete)
|
||||||
S:HandleButton(CliqueButtonEdit)
|
S:HandleButton(CliqueButtonEdit)
|
||||||
|
|
||||||
-- OptionsFrame
|
-- OptionsFrame
|
||||||
SkinFrame(CliqueOptionsFrame)
|
SkinFrame(CliqueOptionsFrame)
|
||||||
if CliqueSpec1DropDown ~= nil then
|
if CliqueSpec1DropDown ~= nil then
|
||||||
CliqueOptionsFrame:Height(375)
|
CliqueOptionsFrame:Height(375)
|
||||||
else
|
else
|
||||||
CliqueOptionsFrame:Height(125)
|
CliqueOptionsFrame:Height(125)
|
||||||
end
|
end
|
||||||
CliqueOptionsFrame:Point("TOPLEFT", CliqueFrame, "TOPRIGHT", -1, 0)
|
CliqueOptionsFrame:Point("TOPLEFT", CliqueFrame, "TOPRIGHT", -1, 0)
|
||||||
|
|
||||||
S:HandleCloseButton(CliqueOptionsButtonClose)
|
S:HandleCloseButton(CliqueOptionsButtonClose)
|
||||||
CliqueOptionsButtonClose:Size(32)
|
CliqueOptionsButtonClose:Size(32)
|
||||||
CliqueOptionsButtonClose:Point("TOPRIGHT", 5, 6)
|
CliqueOptionsButtonClose:Point("TOPRIGHT", 5, 6)
|
||||||
|
|
||||||
if CliqueOptionsAnyDown then
|
if CliqueOptionsAnyDown then
|
||||||
S:HandleCheckBox(CliqueOptionsAnyDown)
|
S:HandleCheckBox(CliqueOptionsAnyDown)
|
||||||
CliqueOptionsAnyDown.backdrop:Point("TOPLEFT", 6, -4)
|
CliqueOptionsAnyDown.backdrop:Point("TOPLEFT", 6, -4)
|
||||||
CliqueOptionsAnyDown.backdrop:Point("BOTTOMRIGHT", -4, 3)
|
CliqueOptionsAnyDown.backdrop:Point("BOTTOMRIGHT", -4, 3)
|
||||||
CliqueOptionsAnyDown.backdrop:Point("TOPRIGHT", CliqueOptionsAnyDown.name, "TOPLEFT", -4, 0)
|
CliqueOptionsAnyDown.backdrop:Point("TOPRIGHT", CliqueOptionsAnyDown.name, "TOPLEFT", -4, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
S:HandleCheckBox(CliqueOptionsSpecSwitch)
|
S:HandleCheckBox(CliqueOptionsSpecSwitch)
|
||||||
CliqueOptionsSpecSwitch.backdrop:Point("TOPLEFT", 6, -4)
|
CliqueOptionsSpecSwitch.backdrop:Point("TOPLEFT", 6, -4)
|
||||||
CliqueOptionsSpecSwitch.backdrop:Point("BOTTOMRIGHT", -4, 3)
|
CliqueOptionsSpecSwitch.backdrop:Point("BOTTOMRIGHT", -4, 3)
|
||||||
CliqueOptionsSpecSwitch.backdrop:Point("TOPRIGHT", CliqueOptionsSpecSwitch.name, "TOPLEFT", -4, 0)
|
CliqueOptionsSpecSwitch.backdrop:Point("TOPRIGHT", CliqueOptionsSpecSwitch.name, "TOPLEFT", -4, 0)
|
||||||
|
|
||||||
if CliquePriSpecDropDown ~= nil then
|
if CliquePriSpecDropDown ~= nil then
|
||||||
S:HandleDropDownBox(CliquePriSpecDropDown, 225)
|
S:HandleDropDownBox(CliquePriSpecDropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSecSpecDropDown, 225)
|
S:HandleDropDownBox(CliqueSecSpecDropDown, 225)
|
||||||
|
|
||||||
CliqueSecSpecDropDown:Point("TOPLEFT", CliquePriSpecDropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSecSpecDropDown:Point("TOPLEFT", CliquePriSpecDropDown, "BOTTOMLEFT", 0, 7)
|
||||||
elseif CliqueSpec1DropDown ~= nil then
|
elseif CliqueSpec1DropDown ~= nil then
|
||||||
S:HandleDropDownBox(CliqueSpec1DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec1DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec2DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec2DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec3DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec3DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec4DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec4DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec5DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec5DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec6DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec6DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec7DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec7DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec8DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec8DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec9DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec9DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec10DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec10DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec11DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec11DropDown, 225)
|
||||||
S:HandleDropDownBox(CliqueSpec12DropDown, 225)
|
S:HandleDropDownBox(CliqueSpec12DropDown, 225)
|
||||||
|
|
||||||
CliqueSpec2DropDown:Point("TOPLEFT", CliqueSpec1DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec2DropDown:Point("TOPLEFT", CliqueSpec1DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec3DropDown:Point("TOPLEFT", CliqueSpec2DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec3DropDown:Point("TOPLEFT", CliqueSpec2DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec4DropDown:Point("TOPLEFT", CliqueSpec3DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec4DropDown:Point("TOPLEFT", CliqueSpec3DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec5DropDown:Point("TOPLEFT", CliqueSpec4DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec5DropDown:Point("TOPLEFT", CliqueSpec4DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec6DropDown:Point("TOPLEFT", CliqueSpec5DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec6DropDown:Point("TOPLEFT", CliqueSpec5DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec7DropDown:Point("TOPLEFT", CliqueSpec6DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec7DropDown:Point("TOPLEFT", CliqueSpec6DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec8DropDown:Point("TOPLEFT", CliqueSpec7DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec8DropDown:Point("TOPLEFT", CliqueSpec7DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec9DropDown:Point("TOPLEFT", CliqueSpec8DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec9DropDown:Point("TOPLEFT", CliqueSpec8DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec10DropDown:Point("TOPLEFT", CliqueSpec9DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec10DropDown:Point("TOPLEFT", CliqueSpec9DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec11DropDown:Point("TOPLEFT", CliqueSpec10DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec11DropDown:Point("TOPLEFT", CliqueSpec10DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
CliqueSpec12DropDown:Point("TOPLEFT", CliqueSpec11DropDown, "BOTTOMLEFT", 0, 7)
|
CliqueSpec12DropDown:Point("TOPLEFT", CliqueSpec11DropDown, "BOTTOMLEFT", 0, 7)
|
||||||
end
|
end
|
||||||
-- TextListFrame
|
-- TextListFrame
|
||||||
SkinFrame(CliqueTextListFrame)
|
SkinFrame(CliqueTextListFrame)
|
||||||
|
|
||||||
CliqueTextListFrame:Point("BOTTOMLEFT", CliqueFrame, "BOTTOMRIGHT", -1, 0)
|
CliqueTextListFrame:Point("BOTTOMLEFT", CliqueFrame, "BOTTOMRIGHT", -1, 0)
|
||||||
|
|
||||||
S:HandleCloseButton(CliqueTextButtonClose)
|
S:HandleCloseButton(CliqueTextButtonClose)
|
||||||
CliqueTextButtonClose:Size(32)
|
CliqueTextButtonClose:Size(32)
|
||||||
CliqueTextButtonClose:Point("TOPRIGHT", 5, 6)
|
CliqueTextButtonClose:Point("TOPRIGHT", 5, 6)
|
||||||
|
|
||||||
CliqueTextList1:Point("TOPLEFT", 6, -23)
|
CliqueTextList1:Point("TOPLEFT", 6, -23)
|
||||||
|
|
||||||
CliqueTextListScroll:StripTextures()
|
CliqueTextListScroll:StripTextures()
|
||||||
S:HandleScrollBar(CliqueTextListScrollScrollBar)
|
S:HandleScrollBar(CliqueTextListScrollScrollBar)
|
||||||
CliqueTextListScrollScrollBar:Point("TOPLEFT", CliqueTextListScroll, "TOPRIGHT", 3, -19)
|
CliqueTextListScrollScrollBar:Point("TOPLEFT", CliqueTextListScroll, "TOPRIGHT", 3, -19)
|
||||||
CliqueTextListScrollScrollBar:Point("BOTTOMLEFT", CliqueTextListScroll, "BOTTOMRIGHT", 3, 19)
|
CliqueTextListScrollScrollBar:Point("BOTTOMLEFT", CliqueTextListScroll, "BOTTOMRIGHT", 3, 19)
|
||||||
|
|
||||||
S:HandleButton(CliqueButtonDeleteProfile)
|
S:HandleButton(CliqueButtonDeleteProfile)
|
||||||
S:HandleButton(CliqueButtonSetProfile)
|
S:HandleButton(CliqueButtonSetProfile)
|
||||||
S:HandleButton(CliqueButtonNewProfile)
|
S:HandleButton(CliqueButtonNewProfile)
|
||||||
|
|
||||||
CliqueButtonDeleteProfile:Point("BOTTOMLEFT", 30, 8)
|
CliqueButtonDeleteProfile:Point("BOTTOMLEFT", 30, 8)
|
||||||
|
|
||||||
for i = 1, 12 do
|
for i = 1, 12 do
|
||||||
local entry = _G["CliqueTextList"..i]
|
local entry = _G["CliqueTextList" .. i]
|
||||||
S:HandleCheckBox(entry)
|
S:HandleCheckBox(entry)
|
||||||
entry.backdrop:Point("TOPLEFT", 6, -4)
|
entry.backdrop:Point("TOPLEFT", 6, -4)
|
||||||
entry.backdrop:Point("BOTTOMRIGHT", -4, 3)
|
entry.backdrop:Point("BOTTOMRIGHT", -4, 3)
|
||||||
entry.backdrop:Point("TOPRIGHT", entry.name, "TOPLEFT", -4, 0)
|
entry.backdrop:Point("TOPRIGHT", entry.name, "TOPLEFT", -4, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- CustomFrame
|
-- CustomFrame
|
||||||
SkinFrame(CliqueCustomFrame)
|
SkinFrame(CliqueCustomFrame)
|
||||||
|
|
||||||
S:HandleButton(CliqueCustomButtonBinding)
|
S:HandleButton(CliqueCustomButtonBinding)
|
||||||
S:HandleButton(CliqueCustomButtonIcon)
|
S:HandleButton(CliqueCustomButtonIcon)
|
||||||
CliqueCustomButtonIcon.icon:SetTexCoord(unpack(E.TexCoords))
|
CliqueCustomButtonIcon.icon:SetTexCoord(unpack(E.TexCoords))
|
||||||
CliqueCustomButtonIcon.icon:SetInside()
|
CliqueCustomButtonIcon.icon:SetInside()
|
||||||
|
|
||||||
for i = 1, 5 do
|
for i = 1, 5 do
|
||||||
local entry = _G["CliqueCustomArg"..i]
|
local entry = _G["CliqueCustomArg" .. i]
|
||||||
S:HandleEditBox(entry)
|
S:HandleEditBox(entry)
|
||||||
entry.backdrop:Point("TOPLEFT", -5, -5)
|
entry.backdrop:Point("TOPLEFT", -5, -5)
|
||||||
entry.backdrop:Point("BOTTOMRIGHT", -5, 5)
|
entry.backdrop:Point("BOTTOMRIGHT", -5, 5)
|
||||||
end
|
end
|
||||||
|
|
||||||
CliqueMulti:Width(276)
|
CliqueMulti:Width(276)
|
||||||
CliqueMulti:Point("TOPRIGHT", CliqueCustomArg1, "BOTTOMRIGHT", -14, -27)
|
CliqueMulti:Point("TOPRIGHT", CliqueCustomArg1, "BOTTOMRIGHT", -14, -27)
|
||||||
CliqueMulti:SetBackdrop(nil)
|
CliqueMulti:SetBackdrop(nil)
|
||||||
CliqueMulti:CreateBackdrop("Default")
|
CliqueMulti:CreateBackdrop("Default")
|
||||||
CliqueMulti.backdrop:Point("TOPLEFT", 5, -7)
|
CliqueMulti.backdrop:Point("TOPLEFT", 5, -7)
|
||||||
CliqueMulti.backdrop:Point("BOTTOMRIGHT", -5, 5)
|
CliqueMulti.backdrop:Point("BOTTOMRIGHT", -5, 5)
|
||||||
|
|
||||||
S:HandleScrollBar(CliqueMultiScrollFrameScrollBar)
|
S:HandleScrollBar(CliqueMultiScrollFrameScrollBar)
|
||||||
CliqueMultiScrollFrameScrollBar:Point("TOPLEFT", CliqueMultiScrollFrame, "TOPRIGHT", 6, -18)
|
CliqueMultiScrollFrameScrollBar:Point("TOPLEFT", CliqueMultiScrollFrame, "TOPRIGHT", 6, -18)
|
||||||
|
|
||||||
S:HandleButton(CliqueCustomButtonCancel)
|
S:HandleButton(CliqueCustomButtonCancel)
|
||||||
S:HandleButton(CliqueCustomButtonSave)
|
S:HandleButton(CliqueCustomButtonSave)
|
||||||
|
|
||||||
CliqueCustomButtonCancel:Point("BOTTOM", 65, 8)
|
CliqueCustomButtonCancel:Point("BOTTOM", 65, 8)
|
||||||
|
|
||||||
-- IconSelectFrame
|
-- IconSelectFrame
|
||||||
SkinFrame(CliqueIconSelectFrame)
|
SkinFrame(CliqueIconSelectFrame)
|
||||||
|
|
||||||
CliqueIconSelectFrame:Size(261, 211)
|
CliqueIconSelectFrame:Size(261, 211)
|
||||||
|
|
||||||
CliqueIcon1:Point("TOPLEFT", 9, -28)
|
CliqueIcon1:Point("TOPLEFT", 9, -28)
|
||||||
|
|
||||||
CliqueIconScrollFrame:StripTextures()
|
CliqueIconScrollFrame:StripTextures()
|
||||||
S:HandleScrollBar(CliqueIconScrollFrameScrollBar)
|
S:HandleScrollBar(CliqueIconScrollFrameScrollBar)
|
||||||
CliqueIconScrollFrameScrollBar:Point("TOPLEFT", CliqueIconScrollFrame, "TOPRIGHT", -4, -18)
|
CliqueIconScrollFrameScrollBar:Point("TOPLEFT", CliqueIconScrollFrame, "TOPRIGHT", -4, -18)
|
||||||
CliqueIconScrollFrameScrollBar:Point("BOTTOMLEFT", CliqueIconScrollFrame, "BOTTOMRIGHT", -4, 18)
|
CliqueIconScrollFrameScrollBar:Point("BOTTOMLEFT", CliqueIconScrollFrame, "BOTTOMRIGHT", -4, 18)
|
||||||
|
|
||||||
for i = 1, 20 do
|
for i = 1, 20 do
|
||||||
local button = _G["CliqueIcon"..i]
|
local button = _G["CliqueIcon" .. i]
|
||||||
local buttonIcon = _G["CliqueIcon"..i.."Icon"]
|
local buttonIcon = _G["CliqueIcon" .. i .. "Icon"]
|
||||||
|
|
||||||
button:StripTextures()
|
button:StripTextures()
|
||||||
button:StyleButton(nil, true)
|
button:StyleButton(nil, true)
|
||||||
button.hover:SetAllPoints()
|
button.hover:SetAllPoints()
|
||||||
button:CreateBackdrop("Default")
|
button:CreateBackdrop("Default")
|
||||||
|
|
||||||
buttonIcon:SetAllPoints()
|
buttonIcon:SetAllPoints()
|
||||||
buttonIcon:SetTexCoord(unpack(E.TexCoords))
|
buttonIcon:SetTexCoord(unpack(E.TexCoords))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
hooksecurefunc(Clique, "ListScrollUpdate", function(self)
|
hooksecurefunc(Clique, "ListScrollUpdate", function(self)
|
||||||
if not CliqueListScroll then return end
|
if not CliqueListScroll then return end
|
||||||
|
|
||||||
local offset = FauxScrollFrame_GetOffset(CliqueListScroll)
|
local offset = FauxScrollFrame_GetOffset(CliqueListScroll)
|
||||||
local width = CliqueListScroll:IsShown() and 388 or 384
|
local width = CliqueListScroll:IsShown() and 388 or 384
|
||||||
|
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
local idx = offset + i
|
local idx = offset + i
|
||||||
|
|
||||||
if idx <= #self.sortList then
|
if idx <= #self.sortList then
|
||||||
local button = _G["CliqueList" .. i]
|
local button = _G["CliqueList" .. i]
|
||||||
button:Width(width)
|
button:Width(width)
|
||||||
|
|
||||||
if idx == self.listSelected then
|
if idx == self.listSelected then
|
||||||
button:SetBackdropBorderColor(1, 1, 1)
|
button:SetBackdropBorderColor(1, 1, 1)
|
||||||
else
|
else
|
||||||
button:SetBackdropBorderColor(unpack(E.media.bordercolor))
|
button:SetBackdropBorderColor(unpack(E.media.bordercolor))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user