actionbar-df-gryphon: add overwrite for beta gryphon

This commit is contained in:
shagu
2025-05-01 03:54:07 +02:00
parent f3b63c6f40
commit ee1e9f94e1
6 changed files with 21 additions and 8 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+21 -8
View File
@@ -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