Skin checkboxes with ElvUI when it's loaded
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
## Author: Narcasung
|
## Author: Narcasung
|
||||||
## Version: 1.0
|
## Version: 1.0
|
||||||
## SavedVariables: HideCoADB
|
## SavedVariables: HideCoADB
|
||||||
|
## OptionalDeps: ElvUI
|
||||||
|
|
||||||
HideCoA.lua
|
HideCoA.lua
|
||||||
Options.lua
|
Options.lua
|
||||||
+10
@@ -1,3 +1,9 @@
|
|||||||
|
local ElvSkins
|
||||||
|
if ElvUI then
|
||||||
|
local E = unpack(ElvUI)
|
||||||
|
ElvSkins = E:GetModule("Skins")
|
||||||
|
end
|
||||||
|
|
||||||
local panel = CreateFrame("Frame")
|
local panel = CreateFrame("Frame")
|
||||||
panel.name = "HideCoAUI"
|
panel.name = "HideCoAUI"
|
||||||
|
|
||||||
@@ -38,6 +44,10 @@ for _, frameName in ipairs(HideCoA.FRAMES) do
|
|||||||
|
|
||||||
check.frameName = frameName
|
check.frameName = frameName
|
||||||
|
|
||||||
|
if ElvSkins then
|
||||||
|
ElvSkins:HandleCheckBox(check)
|
||||||
|
end
|
||||||
|
|
||||||
check:SetScript("OnClick", function(self)
|
check:SetScript("OnClick", function(self)
|
||||||
|
|
||||||
if not selectedClass then
|
if not selectedClass then
|
||||||
|
|||||||
Reference in New Issue
Block a user