Mercurial > wow > ouroloot
comparison core.lua @ 96:780b7e0eeeeb
Break the options panel out of gui.lua into new options.lua. Move default item lists from verbage.lua there also. Redo options panel as a tree instead of a massive scrolling thing, and prepare data structures to let plugins/etc add their own options code.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Thu, 26 Jul 2012 20:46:00 +0000 |
parents | 3546c7b55986 |
children | ba5ff82dcf19 |
comparison
equal
deleted
inserted
replaced
95:3546c7b55986 | 96:780b7e0eeeeb |
---|---|
1795 function addon:Clear(verbose_p) | 1795 function addon:Clear(verbose_p) |
1796 local repopup, st | 1796 local repopup, st |
1797 if self.display then | 1797 if self.display then |
1798 -- in the new version, this is likely to always be the case | 1798 -- in the new version, this is likely to always be the case |
1799 repopup = true | 1799 repopup = true |
1800 st = self.display:GetUserData("eoiST") | 1800 st = self.display:GetUserData("GUI state").eoiST |
1801 if not st then | 1801 if not st then |
1802 self.dprint('flow', "Clear: display visible but eoiST not set??") | 1802 self.dprint('flow', "Clear: display visible but eoiST not set??") |
1803 end | 1803 end |
1804 self.display:Hide() | 1804 self.display:Hide() |
1805 end | 1805 end |
2620 local clicky | 2620 local clicky |
2621 function addon:horrible_horrible_error (err_msg) | 2621 function addon:horrible_horrible_error (err_msg) |
2622 if self.display then | 2622 if self.display then |
2623 local d = self.display | 2623 local d = self.display |
2624 if d then | 2624 if d then |
2625 local eoist = d:GetUserData("eoiST") | 2625 local gui = d:GetUserData("GUI state") |
2626 local eoist = gui.eoiST | |
2626 if eoist then eoist:Hide() end | 2627 if eoist then eoist:Hide() end |
2627 local histst = d:GetUserData("histST") | 2628 local histst = gui.histST |
2628 if histst then histst:Hide() end | 2629 if histst then histst:Hide() end |
2629 d:Hide() | 2630 d:Hide() |
2630 end | 2631 end |
2631 end | 2632 end |
2632 self.NOLOAD = err_msg | 2633 self.NOLOAD = err_msg |
3168 self:vbroadcast('reassign', unique, id, from_name, to_name) | 3169 self:vbroadcast('reassign', unique, id, from_name, to_name) |
3169 elseif opts.chatty_on_remote_changes then | 3170 elseif opts.chatty_on_remote_changes then |
3170 _notify_about_remote (sender, index, nil, from_name, from_person_class) | 3171 _notify_about_remote (sender, index, nil, from_name, from_person_class) |
3171 end | 3172 end |
3172 if self.display then | 3173 if self.display then |
3173 self.display:GetUserData("eoiST"):OuroLoot_Refresh(index) | 3174 self.display:GetUserData("GUI state").eoiST:OuroLoot_Refresh(index) |
3174 self:redisplay() | 3175 self:redisplay() |
3175 end | 3176 end |
3176 return index | 3177 return index |
3177 end | 3178 end |
3178 | 3179 |