Mercurial > wow > ouroloot
comparison gui.lua @ 17:d929c40cdb09
Small boosts, better version display. Do not wedge when receiving initial boss broadcast of a wipe while outside a raid instance.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 08:50:33 +0000 |
parents | 5ee4edd24c13 |
children | f560cf82e7d3 |
comparison
equal
deleted
inserted
replaced
16:5ee4edd24c13 | 17:d929c40cdb09 |
---|---|
42 local GUI = LibStub("AceGUI-3.0") | 42 local GUI = LibStub("AceGUI-3.0") |
43 local flib = LibStub("LibFarmbuyer") | 43 local flib = LibStub("LibFarmbuyer") |
44 | 44 |
45 local g_loot = nil | 45 local g_loot = nil |
46 local g_generated = nil | 46 local g_generated = nil |
47 local window_title = "Ouro Loot" | |
47 | 48 |
48 local pairs, ipairs, tinsert, tremove, tonumber = pairs, ipairs, table.insert, table.remove, tonumber | 49 local pairs, ipairs, tinsert, tremove, tonumber = pairs, ipairs, table.insert, table.remove, tonumber |
49 | 50 |
50 local pprint, tabledump = addon.pprint, flib.tabledump | 51 local pprint, tabledump = addon.pprint, flib.tabledump |
51 local GetItemInfo, ITEM_QUALITY_COLORS = GetItemInfo, ITEM_QUALITY_COLORS | 52 local GetItemInfo, ITEM_QUALITY_COLORS = GetItemInfo, ITEM_QUALITY_COLORS |
359 | 360 |
360 function addon:gui_init (loot_pointer) | 361 function addon:gui_init (loot_pointer) |
361 g_loot = loot_pointer | 362 g_loot = loot_pointer |
362 g_generated = nil | 363 g_generated = nil |
363 tabgroup_tabs = {} | 364 tabgroup_tabs = {} |
365 window_title = "Ouro Loot " .. self.revision | |
364 for _,v in ipairs(_taborder) do | 366 for _,v in ipairs(_taborder) do |
365 tinsert (tabgroup_tabs, {value=v, text=_tabtexts[v].title}) | 367 tinsert (tabgroup_tabs, {value=v, text=_tabtexts[v].title}) |
366 -- By default, tabs are editboxes with generated text | 368 -- By default, tabs are editboxes with generated text |
367 if not tabs_OnGroupSelected[v] then | 369 if not tabs_OnGroupSelected[v] then |
368 tabs_OnGroupSelected[v] = tabs_generated_text_OGS | 370 tabs_OnGroupSelected[v] = tabs_generated_text_OGS |
1730 if _d then | 1732 if _d then |
1731 display:SetUserData("eoiST",_d) -- warning! warning! kludge detected! | 1733 display:SetUserData("eoiST",_d) -- warning! warning! kludge detected! |
1732 end | 1734 end |
1733 _d = display | 1735 _d = display |
1734 self.display = display | 1736 self.display = display |
1735 display:SetTitle("Ouro Loot") | 1737 display:SetTitle(window_title) |
1736 display:SetStatusText(self.status_text) | 1738 display:SetStatusText(self.status_text) |
1737 display:SetLayout("Flow") | 1739 display:SetLayout("Flow") |
1738 display:SetStatusTable{width=900,height=550} -- default height is 500 | 1740 display:SetStatusTable{width=900,height=550} -- default height is 500 |
1739 -- prevent resizing, also see ace3 tickets 80 and 214 | 1741 -- prevent resizing, also see ace3 tickets 80 and 214 |
1740 -- grrrr, no longer works after frame rewrite | 1742 -- grrrr, no longer works after frame rewrite |