Mercurial > wow > ouroloot
changeset 111:cfbaf001fd52
Minor cleanup to player dropdown
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Wed, 08 Aug 2012 23:15:06 -0400 |
parents | f93c1a93923b |
children | ccf90050cdc1 |
files | gui.lua |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/gui.lua Wed Aug 08 23:13:04 2012 -0400 +++ b/gui.lua Wed Aug 08 23:15:06 2012 -0400 @@ -1143,7 +1143,8 @@ EasyMenu (gui.dropdown.eoi_loot, dropdownmenuframe, cellFrame, 0, 0, "MENU") elseif kind == 'loot' and column == 2 then - gui.dropdown.eoi_player[1].text = e.person + local ddep = gui.dropdown.eoi_player + ddep[1].text = e.person local raiders = {} for i = 1, GetNumRaidMembers() do tinsert (raiders, (GetRaidRosterInfo(i))) @@ -1155,18 +1156,18 @@ end tinsert (raiders, gen_dd_entry ("Enter name...", eoi_dropdownfuncs)) tinsert (raiders, gen_dd_entry (CLOSE, eoi_dropdownfuncs)) - gui.dropdown.eoi_player[2].menuList = raiders + ddep[2].menuList = raiders if not addon:_test_disposition (e.disposition, 'can_reassign') then - gui.dropdown.eoi_player[2].disabled = true - gui.dropdown.eoi_player[2].tooltipTitle = "Cannot Reassign" - gui.dropdown.eoi_player[2].tooltipText = "You must first mark this item as 'normal' or 'offspec' before reassignment." + ddep[2].disabled = true + ddep[2].tooltipTitle = "Cannot Reassign" + ddep[2].tooltipText = "You must first mark this item as 'normal' or 'offspec' before reassignment." else - gui.dropdown.eoi_player[2].disabled = nil - gui.dropdown.eoi_player[2].tooltipTitle = nil - gui.dropdown.eoi_player[2].tooltipText = nil + ddep[2].disabled = nil + ddep[2].tooltipTitle = nil + ddep[2].tooltipText = nil end - EasyMenu (gui.dropdown.eoi_player, dropdownmenuframe, cellFrame, 0, 0, "MENU") + EasyMenu (ddep, dropdownmenuframe, cellFrame, 0, 0, "MENU") elseif kind == 'boss' then gui.dropdown.eoi_boss[1].text = e.bossname