Quantcast

add dominos skin

rawoil [12-06-21 - 08:13]
add dominos skin
Filename
rSkin/modules/Dominos.lua
rSkin/rSkin.toc
diff --git a/rSkin/modules/Dominos.lua b/rSkin/modules/Dominos.lua
new file mode 100644
index 0000000..1c4ce77
--- /dev/null
+++ b/rSkin/modules/Dominos.lua
@@ -0,0 +1,23 @@
+local A, L = ...
+
+local thin = L.C.thin
+local btnConfig = rLib.CopyTable(L.C.button)
+
+local function SkinDominos()
+    if not IsAddOnLoaded("Dominos") then return end
+    if not rSkinDB.resets.dominos then return end
+
+    for i = 1, 60 do
+        if _G["DominosActionButton"..i] then
+            rButtonTemplate:StyleActionButton(_G["DominosActionButton"..i], btnConfig)
+        end
+    end
+
+    if DominosFramexp then
+        L.CreateBackdrop(DominosFramexp, nil, thin)
+    end
+
+    rSkinDB.resets.dominos = false
+end
+
+rSkin:RegisterSkin("Dominos", SkinDominos)
\ No newline at end of file
diff --git a/rSkin/rSkin.toc b/rSkin/rSkin.toc
index 87b9a77..9b8ba7b 100644
--- a/rSkin/rSkin.toc
+++ b/rSkin/rSkin.toc
@@ -3,7 +3,7 @@
 ## Title: rSkin |cff1a9fc0BCC|r
 ## Notes: Reskin other addons to fit zorkui's L&F
 ## RequiredDeps: rLib, rButtonTemplate_Zork, oUF_SimpleConfig
-## OptionalDeps: DBM-Core, WeakAuras, ls_Toasts, Details, BigWigs_Plugins, ThreatClassic2
+## OptionalDeps: DBM-Core, WeakAuras, ls_Toasts, Details, BigWigs_Plugins, ThreatClassic2, Dominos
 ## SavedVariablesPerCharacter: rSkinDB

 init.lua
@@ -12,4 +12,5 @@ modules\Details.lua
 modules\BigWigs.lua
 modules\DBM.lua
 modules\WeakAuras.lua
-modules\ThreatClassic2.lua
\ No newline at end of file
+modules\ThreatClassic2.lua
+modules\Dominos.lua
\ No newline at end of file