unitframes: use party dropdowns raid frames

This commit is contained in:
shagu
2018-04-11 20:25:12 +02:00
parent a4f0eff9e0
commit 865ae6384a
+5 -5
View File
@@ -1331,12 +1331,12 @@ function pfUI.uf:ClickAction(button)
elseif label == "party" then
ToggleDropDownMenu(1, nil, getglobal("PartyMemberFrame" .. this.id .. "DropDown"), "cursor")
elseif label == "raid" then
-- RaidFrameDropDown_Initialize expects .name and .unit attributes on raid unit buttons
if not (this.name) then this.name = this.lastUnit end
if not (this.unit) then this.unit = unitstr end
ToggleDropDownMenu(1, nil, getglobal("RaidMemberFrame" .. this.id .. "DropDown"), "cursor")
FriendsDropDown.initialize = RaidFrameDropDown_Initialize
local name = this.lastname
local id = this.id
local unit = this.label .. this.id
FriendsDropDown.displayMode = "MENU"
FriendsDropDown.initialize = function() UnitPopup_ShowMenu(getglobal(UIDROPDOWNMENU_OPEN_MENU), "PARTY", unit, name, id) end
ToggleDropDownMenu(1, nil, FriendsDropDown, "cursor")
end
else