diff verbage.lua @ 129:2731702567c4

- Detect loot received in LFR when player isn't eligible (for the strange people out there who are tracking in LFR). - Followup for r116, make sure all entries in display table are properly updated. Add a force-refresh button to the Help tab for the worst case.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Mon, 27 Aug 2012 02:53:42 -0400
parents a9cf9b2fbf9b
children 375059a11c1d
line wrap: on
line diff
--- a/verbage.lua	Wed Aug 22 23:37:24 2012 -0400
+++ b/verbage.lua	Mon Aug 27 02:53:42 2012 -0400
@@ -617,6 +617,8 @@
 
 -- Tab 5:  Help
 do
+	local mkbutton = addon.gui_state_pointer.mkbutton
+	local gui = addon.gui_state_pointer
 	local AceGUI = LibStub("AceGUI-3.0")
 	-- widget container status tables (will have things magically appear
 	-- inside them that we wish to preserve)
@@ -668,6 +670,16 @@
 		else
 			left:SelectByValue("basic")
 		end
+
+		local b = mkbutton("Force Loot Refresh",
+			[[Force the Loot tab display to update from stored data.  Shouldn't be needed.]])
+		b:SetFullWidth(true)
+		b:SetCallback("OnClick", function ()
+			addon.loot_clean = nil
+			addon:gui_init()
+			addon:Print[[Loot tab display re-initialized.]]
+		end)
+		specials:AddChild(b)
 	end
 
 	addon:register_tab_control_AT_END ("help", [[Help]],