oUF

97.2k Downloads

Dropdown menu on raid units

Rainrider opened this issue · 1 comments

commented

I've got the following error upon right-cklicking a raid unit:

3x FrameXML\UnitPopup.lua:940: Usage: GetRaidRosterInfo(index)
<in C code>
FrameXML\UnitPopup.lua:940: in function "UnitPopup_HideButtons"
FrameXML\UnitPopup.lua:267: in function "UnitPopup_ShowMenu"
FrameXML\SecureTemplates.lua:239: in function "initFunction"
FrameXML\UIDropDownMenu.lua:69: in function "UIDropDownMenu_Initialize"
FrameXML\UIDropDownMenu.lua:864: in function "ToggleDropDownMenu"
FrameXML\SecureTemplates.lua:310: in function "handler"
FrameXML\SecureTemplates.lua:632: in function "SecureActionButton_OnClick"
FrameXML\SecureTemplates.lua:672: in function <FrameXML\SecureTemplates.lua:664>

Locals:
dropdownMenu = SecureTemplatesDropdown {
 selectedLootMethod = "Loot: Group Loot"
 openedFor = oUF_Rain_RaidGroup1UnitButton5 {}
 server = ""
 unit = "raid5"
 displayMode = "MENU"
 name = "Sônic"
 initialize = <func> @FrameXML\SecureTemplates.lua:196
 0 = <userdata>
 selectedLootThreshold = "Uncommon"
 which = "RAID"
}
inInstance = nil
instanceType = "none"
inParty = 1
inRaid = 1
isLeader = 1
isAssistant = 0
inBattleground = 0
canCoop = 1
haveBattleTag = true
(for generator) = <func> =[C]:-1
(for state) = <table> {
 1 = "SET_FOCUS"
 2 = "MUTE"
 3 = "UNMUTE"
 4 = "RAID_SILENCE"
 5 = "RAID_UNSILENCE"
 6 = "BATTLEGROUND_SILENCE"
 7 = "BATTLEGROUND_UNSILENCE"
 8 = "RAID_LEADER"
 9 = "RAID_PROMOTE"
 10 = "RAID_MAINTANK"
 11 = "RAID_MAINASSIST"
 12 = "LOOT_PROMOTE"
 13 = "RAID_DEMOTE"
 14 = "VOTE_TO_KICK"
 15 = "RAID_REMOVE"
 16 = "PVP_REPORT_AFK"
 17 = "MOVE_PLAYER_FRAME"
 18 = "MOVE_TARGET_FRAME"
 19 = "REPORT_PLAYER"
 20 = "CANCEL"
}
(for control) = 10
index = 10
value = "RAID_MAINTANK"

Hopefully it is not layout related, but it wasn't there before the change to the new 5.2. menus (I've removed the layout menu code)

commented

2c24ab8 was committed as a workaround for now.