Mercurial > wow > ouroloot
comparison gui.lua @ 58:59718ec80610
Consolidate some common code out of modules.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Tue, 17 Apr 2012 06:26:11 +0000 |
| parents | 81d5449621f8 |
| children | 1cbaa1ce8253 |
comparison
equal
deleted
inserted
replaced
| 57:81d5449621f8 | 58:59718ec80610 |
|---|---|
| 1171 addon:Print("'%s' has been regenerated.", _tabtexts[text_kind].title) | 1171 addon:Print("'%s' has been regenerated.", _tabtexts[text_kind].title) |
| 1172 return addon:redisplay() | 1172 return addon:redisplay() |
| 1173 --return tabs_OnGroupSelected_func(container,"OnGroupSelected",text_kind) | 1173 --return tabs_OnGroupSelected_func(container,"OnGroupSelected",text_kind) |
| 1174 end) | 1174 end) |
| 1175 specials:AddChild(w) | 1175 specials:AddChild(w) |
| 1176 if addon:is_plugin(text_kind) then | |
| 1177 local pname = addon:is_plugin(text_kind):GetName() | |
| 1178 w = mkbutton("Reset SVs & ReloadUI", | |
| 1179 ([[+DEBUG:> Reset savedvariables for %s plugin back to defaults, and trigger a UI reload.]]):format(pname)) | |
| 1180 w:SetFullWidth(true) | |
| 1181 w:SetCallback("OnClick", function(_w) | |
| 1182 _G['OuroLoot'..pname..'_opts'] = nil | |
| 1183 ReloadUI() | |
| 1184 end) | |
| 1185 specials:AddChild(w) | |
| 1186 end | |
| 1176 _populate_text_specials (box, specials, mkbutton, text_kind) | 1187 _populate_text_specials (box, specials, mkbutton, text_kind) |
| 1177 end | 1188 end |
| 1178 | 1189 |
| 1179 | 1190 |
| 1180 -- Tab 4: History | 1191 -- Tab 4: History |
