Mercurial > wow > ouroloot
diff gui.lua @ 99:966d06c8d9c9
- Brought plugin handling code up to date. SVs are kept in DB namespaces
like they should have been.
- Removed/commented all datarev code, until it becomes necessary after MoP.
- Textgen special blocks for plugins do not automatically get a "reset&reload"
button anymore.
- New method to register option pages on the main tab. No sub-entry pages
supported yet. Titles and reset&reload added here instead.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Sun, 29 Jul 2012 23:12:18 +0000 |
parents | b5a55c69ef67 |
children | a57133ee3c9b |
line wrap: on
line diff
--- a/gui.lua Fri Jul 27 19:09:29 2012 +0000 +++ b/gui.lua Sun Jul 29 23:12:18 2012 +0000 @@ -1537,17 +1537,6 @@ return addon:redisplay() end) specials:AddChild(w) - if addon:get_plugin(text_kind) then - local pname = addon:get_plugin(text_kind):GetName() - w = mkbutton("Reset SVs & ReloadUI", - ([[<DEBUG:> Reset savedvariables for %s plugin back to defaults, and trigger a UI reload.]]):format(pname)) - w:SetFullWidth(true) - w:SetCallback("OnClick", function(_w) - _G['OuroLoot'..pname..'_opts'] = nil - ReloadUI() - end) - specials:AddChild(w) - end _populate_text_specials (box, specials, mkbutton, text_kind) end