From 865ae6384ab2f81425c08b1d7f6e6b2ce5e341dd Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 11 Apr 2018 20:25:12 +0200 Subject: [PATCH] unitframes: use party dropdowns raid frames --- api/unitframes.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index ba975f68..4385d98e 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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