Skin checkboxes with ElvUI when it's loaded
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
## Author: Narcasung
|
||||
## Version: 1.0
|
||||
## SavedVariables: HideCoADB
|
||||
## OptionalDeps: ElvUI
|
||||
|
||||
HideCoA.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")
|
||||
panel.name = "HideCoAUI"
|
||||
|
||||
@@ -38,6 +44,10 @@ for _, frameName in ipairs(HideCoA.FRAMES) do
|
||||
|
||||
check.frameName = frameName
|
||||
|
||||
if ElvSkins then
|
||||
ElvSkins:HandleCheckBox(check)
|
||||
end
|
||||
|
||||
check:SetScript("OnClick", function(self)
|
||||
|
||||
if not selectedClass then
|
||||
|
||||
Reference in New Issue
Block a user