Mercurial > wow > ouroloot
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 92:01cfbfa96dd6 | 93:ea20a28327b5 |
|---|---|
| 67 pairs, ipairs, table.insert, table.remove, tostring, tonumber | 67 pairs, ipairs, table.insert, table.remove, tostring, tonumber |
| 68 | 68 |
| 69 local pprint, tabledump = addon.pprint, flib.tabledump | 69 local pprint, tabledump = addon.pprint, flib.tabledump |
| 70 local GetItemInfo, ITEM_QUALITY_COLORS = GetItemInfo, ITEM_QUALITY_COLORS | 70 local GetItemInfo, ITEM_QUALITY_COLORS = GetItemInfo, ITEM_QUALITY_COLORS |
| 71 local GetNumRaidMembers = GetNumGroupMembers or GetNumRaidMembers | 71 local GetNumRaidMembers = GetNumGroupMembers or GetNumRaidMembers |
| 72 local IsInRaid = IsInRaid or (function() return GetNumRaidMembers() > 0 end) | |
| 72 | 73 |
| 73 -- En masse forward decls of symbols defined inside local blocks | 74 -- En masse forward decls of symbols defined inside local blocks |
| 74 local _generate_text, _populate_text_specials, _markup | 75 local _generate_text, _populate_text_specials, _markup |
| 75 local eoi_dropdownfuncs, _tabtexts, _taborder -- filled out in gui block scope | 76 local eoi_dropdownfuncs, _tabtexts, _taborder -- filled out in gui block scope |
| 76 local _do_debugging_tooltip, _hide_debugging_tooltip, _build_debugging_tooltip | 77 local _do_debugging_tooltip, _hide_debugging_tooltip, _build_debugging_tooltip |
| 1377 end) | 1378 end) |
| 1378 b:SetDisabled(st.Filter == player_filter_all) | 1379 b:SetDisabled(st.Filter == player_filter_all) |
| 1379 specials:AddChild(b) | 1380 specials:AddChild(b) |
| 1380 | 1381 |
| 1381 local people = { "<nobody>" } | 1382 local people = { "<nobody>" } |
| 1382 for i=1,GetNumRaidMembers() do | 1383 for i = 1, GetNumRaidMembers() do |
| 1383 tinsert(people,(GetRaidRosterInfo(i))) | 1384 tinsert(people,(GetRaidRosterInfo(i))) |
| 1384 end | 1385 end |
| 1385 table.sort(people) | 1386 table.sort(people) |
| 1386 local initial | 1387 local initial |
| 1387 for i,n in ipairs(people) do | 1388 for i,n in ipairs(people) do |
| 2122 -- straight line for the most part. | 2123 -- straight line for the most part. |
| 2123 | 2124 |
| 2124 -- the nubtoggle! | 2125 -- the nubtoggle! |
| 2125 w = mkoption('gui_noob', [[Show UI Tips]], 0.85, | 2126 w = mkoption('gui_noob', [[Show UI Tips]], 0.85, |
| 2126 [[Toggles display of the "helpful tips" box on the right side. Useful if you've just installed/upgraded.]]) | 2127 [[Toggles display of the "helpful tips" box on the right side. Useful if you've just installed/upgraded.]]) |
| 2127 w:SetImage[[Interface\OptionsFrame\UI-OptionsFrame-NewFeatureIcon]] | |
| 2128 grp:AddChild(w) | 2128 grp:AddChild(w) |
| 2129 w = GUI:Create("Spacer") w:SetFullWidth(true) w:SetHeight(10) grp:AddChild(w) | 2129 w = GUI:Create("Spacer") w:SetFullWidth(true) w:SetHeight(10) grp:AddChild(w) |
| 2130 | 2130 |
| 2131 -- reminder popup | 2131 -- reminder popup |
| 2132 w = mkoption ('popup_on_join', "Show reminder popup on new raid", 0.49, | 2132 w = mkoption ('popup_on_join', "Show reminder popup on new raid", 0.49, |
| 3001 -- first click | 3001 -- first click |
| 3002 if text then | 3002 if text then |
| 3003 data.name = text | 3003 data.name = text |
| 3004 dialog:Hide() -- technically a "different" one about to be shown | 3004 dialog:Hide() -- technically a "different" one about to be shown |
| 3005 StaticPopupDialogs["OUROL_EOI_INSERT"].autoCompleteParams = | 3005 StaticPopupDialogs["OUROL_EOI_INSERT"].autoCompleteParams = |
| 3006 AUTOCOMPLETE_LIST_TEMPLATES[GetNumRaidMembers() > 0 and "IN_GROUP" or "IN_GUILD"] | 3006 AUTOCOMPLETE_LIST_TEMPLATES[IsInRaid() and "IN_GROUP" or "IN_GUILD"] |
| 3007 local getrecipient = StaticPopup_Show("OUROL_EOI_INSERT","recipient") | 3007 local getrecipient = StaticPopup_Show("OUROL_EOI_INSERT","recipient") |
| 3008 StaticPopupDialogs["OUROL_EOI_INSERT"].autoCompleteParams = nil | 3008 StaticPopupDialogs["OUROL_EOI_INSERT"].autoCompleteParams = nil |
| 3009 getrecipient.data = data | 3009 getrecipient.data = data |
| 3010 getrecipient.editBox:SetText("") | 3010 getrecipient.editBox:SetText("") |
| 3011 return true | 3011 return true |
