Mercurial > wow > ouroloot
diff gui.lua @ 93:ea20a28327b5
More tweaks in preparation for MoP.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Wed, 18 Jul 2012 07:42:16 +0000 |
parents | 01cfbfa96dd6 |
children | db1d5d09e5f5 |
line wrap: on
line diff
--- a/gui.lua Tue Jul 17 03:24:36 2012 +0000 +++ b/gui.lua Wed Jul 18 07:42:16 2012 +0000 @@ -69,6 +69,7 @@ local pprint, tabledump = addon.pprint, flib.tabledump local GetItemInfo, ITEM_QUALITY_COLORS = GetItemInfo, ITEM_QUALITY_COLORS local GetNumRaidMembers = GetNumGroupMembers or GetNumRaidMembers +local IsInRaid = IsInRaid or (function() return GetNumRaidMembers() > 0 end) -- En masse forward decls of symbols defined inside local blocks local _generate_text, _populate_text_specials, _markup @@ -1379,7 +1380,7 @@ specials:AddChild(b) local people = { "<nobody>" } - for i=1,GetNumRaidMembers() do + for i = 1, GetNumRaidMembers() do tinsert(people,(GetRaidRosterInfo(i))) end table.sort(people) @@ -2124,7 +2125,6 @@ -- the nubtoggle! w = mkoption('gui_noob', [[Show UI Tips]], 0.85, [[Toggles display of the "helpful tips" box on the right side. Useful if you've just installed/upgraded.]]) - w:SetImage[[Interface\OptionsFrame\UI-OptionsFrame-NewFeatureIcon]] grp:AddChild(w) w = GUI:Create("Spacer") w:SetFullWidth(true) w:SetHeight(10) grp:AddChild(w) @@ -3003,7 +3003,7 @@ data.name = text dialog:Hide() -- technically a "different" one about to be shown StaticPopupDialogs["OUROL_EOI_INSERT"].autoCompleteParams = - AUTOCOMPLETE_LIST_TEMPLATES[GetNumRaidMembers() > 0 and "IN_GROUP" or "IN_GUILD"] + AUTOCOMPLETE_LIST_TEMPLATES[IsInRaid() and "IN_GROUP" or "IN_GUILD"] local getrecipient = StaticPopup_Show("OUROL_EOI_INSERT","recipient") StaticPopupDialogs["OUROL_EOI_INSERT"].autoCompleteParams = nil getrecipient.data = data