unitframes: build new unitstr to promote leader

This commit is contained in:
shagu
2019-05-21 20:42:33 +02:00
parent f76070a1d2
commit fcda1664ab
+1
View File
@@ -730,6 +730,7 @@ function pfUI.uf:RightClickAction(unit)
ToggleDropDownMenu(1, nil, getglobal("PartyMemberFrame" .. this.id .. "DropDown"), "cursor")
elseif unit == "raid" then
local name = this.lastUnit
local unitstr = this.label .. this.id
FriendsDropDown.displayMode = "MENU"
FriendsDropDown.initialize = function() UnitPopup_ShowMenu(_G[UIDROPDOWNMENU_OPEN_MENU], "PARTY", unitstr, name, id) end
ToggleDropDownMenu(1, nil, FriendsDropDown, "cursor")