function Clique:UnitMenu(unit) local type,x = nil,nil unit = unit or Clique.unit if unit == "player" then type = PlayerFrameDropDown elseif unit == "target" then type = TargetFrameDropDown elseif unit == "pet" then type = PetFrameDropDown elseif string.find(unit, "party") then _,_,x = string.find(unit, "(%d+)") type = getglobal("PartyMemberFrame"..x.."DropDown") elseif string.find(unit, "raid") then _,_,x = string.find(unit, "(%d+)") type = FriendsDropDown this.unit = unit this.name = UnitName(unit) this.id = this:GetID() FriendsDropDown.initialize = RaidFrameDropDown_Initialize end if x then this:SetID(x) end if type then type.unit = unit type.name = UnitName(unit) ToggleDropDownMenu(1, nil, type,"cursor") return true end end