diff --git a/img/df-gryphon-beta.tga b/img/df-gryphon-beta.tga new file mode 100644 index 0000000..bb4262f Binary files /dev/null and b/img/df-gryphon-beta.tga differ diff --git a/img/df-gryphon-new.tga b/img/df-gryphon-new.tga deleted file mode 100644 index 4040baa..0000000 Binary files a/img/df-gryphon-new.tga and /dev/null differ diff --git a/img/df-gryphon.tga b/img/df-gryphon.tga index 4512192..6c7e965 100644 Binary files a/img/df-gryphon.tga and b/img/df-gryphon.tga differ diff --git a/img/df-wyvern-new.tga b/img/df-wyvern-new.tga deleted file mode 100644 index 6188582..0000000 Binary files a/img/df-wyvern-new.tga and /dev/null differ diff --git a/img/df-wyvern.tga b/img/df-wyvern.tga index 3c20395..4414fed 100644 Binary files a/img/df-wyvern.tga and b/img/df-wyvern.tga differ diff --git a/mods/actionbar-df-gryphon.lua b/mods/actionbar-df-gryphon.lua index ccbed2c..c84b21b 100644 --- a/mods/actionbar-df-gryphon.lua +++ b/mods/actionbar-df-gryphon.lua @@ -7,16 +7,29 @@ local module = ShaguTweaks:register({ expansions = { ["vanilla"] = true, ["tbc"] = false }, maintainer = "@shagu (GitHub)", category = T["Action Bar"], + config = { + ["dragonfly.gryphon"] = "retail", + }, enabled = nil, }) module.enable = function(self) - -- replace original gryphons by dragonflight versions - if UnitFactionGroup("player") == "Horde" then - MainMenuBarLeftEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-wyvern") - MainMenuBarRightEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-wyvern") - else - MainMenuBarLeftEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon") - MainMenuBarRightEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon") - end + local loader = CreateFrame("Frame") + loader:RegisterEvent("PLAYER_ENTERING_WORLD") + loader:SetScript("OnEvent", function() + -- replace original gryphons by dragonflight versions + if module.config["dragonfly.gryphon"] == "beta" then + -- artwork during beta + MainMenuBarLeftEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon-beta") + MainMenuBarRightEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon-beta") + elseif UnitFactionGroup("player") == "Horde" then + -- retail horde + MainMenuBarLeftEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-wyvern") + MainMenuBarRightEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-wyvern") + else + -- retail alliance + MainMenuBarLeftEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon") + MainMenuBarRightEndCap:SetTexture("Interface\\AddOns\\ShaguTweaks-extras\\img\\df-gryphon") + end + end) end