comparison gui.lua @ 7:9a37bd40eb5e

Some help docs on history
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 15 Jun 2011 23:35:07 +0000
parents df3e27edbd60
children 30ba1f35e164
comparison
equal deleted inserted replaced
6:df3e27edbd60 7:9a37bd40eb5e
1190 b = mkbutton('hist_clear', "Clear Realm History", 1190 b = mkbutton('hist_clear', "Clear Realm History",
1191 [[No confirmation! |cffff1010Erases absolutely all> history entries from the displayed realm.]]) 1191 [[No confirmation! |cffff1010Erases absolutely all> history entries from the displayed realm.]])
1192 b:SetFullWidth(true) 1192 b:SetFullWidth(true)
1193 b:SetCallback("OnClick", function (_b) 1193 b:SetCallback("OnClick", function (_b)
1194 reset_current_realm(addon.history.realm) 1194 reset_current_realm(addon.history.realm)
1195 addon:Print("Stimpy, you idiot! You've pushed the history erase button!") 1195 addon:Print("Stimpy, you eeediot, you've pushed the history erase button!")
1196 return addon:redisplay() 1196 return addon:redisplay()
1197 end) 1197 end)
1198 specials:AddChild(b) 1198 specials:AddChild(b)
1199 1199
1200 b = mkbutton('hist_clear_all', "Clear All History", 1200 b = mkbutton('hist_clear_all', "Clear All History",
1201 [[No confirmation! |cffff1010Erases absolutely all> history entries from ALL realms.]]) 1201 [[No confirmation! |cffff1010Erases absolutely all> history entries from ALL realms.]])
1202 b:SetFullWidth(true) 1202 b:SetFullWidth(true)
1203 b:SetCallback("OnClick", function (_b) 1203 b:SetCallback("OnClick", function (_b)
1204 addon.history_all = {} 1204 addon.history_all = {}
1205 reset_current_realm() 1205 reset_current_realm()
1206 addon:Print("Stimpy, you idiot! You've pushed the history erase button!") 1206 addon:Print("Stimpy, you eeediot, you've pushed the history erase button!")
1207 return addon:redisplay() 1207 return addon:redisplay()
1208 end) 1208 end)
1209 specials:AddChild(b) 1209 specials:AddChild(b)
1210 1210
1211 b = mkbutton('hist_clear_old', "Clear Older", 1211 b = mkbutton('hist_clear_old', "Clear Older",