mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 05:30:00 +00:00
player: fix dropdown menu on tbc
This commit is contained in:
+5
-1
@@ -20,7 +20,11 @@ pfUI:RegisterModule("player", "vanilla:tbc", function ()
|
||||
|
||||
-- Replace default's RESET_INSTANCES button with an always working one
|
||||
UnitPopupButtons["RESET_INSTANCES_FIX"] = { text = RESET_INSTANCES, dist = 0 };
|
||||
UnitPopupMenus["SELF"] = { "LOOT_METHOD", "LOOT_THRESHOLD", "LOOT_PROMOTE", "LEAVE", "RESET_INSTANCES_FIX", "RAID_TARGET_ICON", "CANCEL" };
|
||||
for id, text in pairs(UnitPopupMenus["SELF"]) do
|
||||
if text == "RESET_INSTANCES" then
|
||||
UnitPopupMenus["SELF"][id] = "RESET_INSTANCES_FIX"
|
||||
end
|
||||
end
|
||||
|
||||
hooksecurefunc("UnitPopup_OnClick", function()
|
||||
local button = this.value
|
||||
|
||||
Reference in New Issue
Block a user