diff LibFarmbuyer.lua @ 57:81d5449621f8

Fix some sloppy indentation. Correct handling of delayed-load plugins registering multiple tabs in arbitrary order. Add option to not display tabs for disabled plugins (would normally allow enabling of them).
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Tue, 17 Apr 2012 04:57:06 +0000
parents fcc0d0ff5832
children 8442272a8418
line wrap: on
line diff
--- a/LibFarmbuyer.lua	Fri Apr 13 04:28:46 2012 +0000
+++ b/LibFarmbuyer.lua	Tue Apr 17 04:57:06 2012 +0000
@@ -192,32 +192,32 @@
 	StaticPopup
 ]]
 function lib.StaticPopup (t)
-    if t.hasEditBox then
-        t.EditBoxOnTextChanged = EditBoxOnTextChanged_notempty
-        t.EditBoxOnEnterPressed = EditBoxOnEnterPressed_accept
+	if t.hasEditBox then
+		t.EditBoxOnTextChanged = EditBoxOnTextChanged_notempty
+		t.EditBoxOnEnterPressed = EditBoxOnEnterPressed_accept
 		if t.OnShow then
 			t.farm_OnShow = t.OnShow
 		end
-        t.OnShow = OnShow_witheditbox
+		t.OnShow = OnShow_witheditbox
 		if t.OnAccept then
 			t.farm_OnAccept = t.OnAccept
 		end
-        t.OnAccept = OnAccept_witheditbox
+		t.OnAccept = OnAccept_witheditbox
 		-- this calls OnCancel with "clicked", unless noCancelOnEscape is set
-        t.EditBoxOnEscapePressed = StaticPopup_EscapePressed
-    end
+		t.EditBoxOnEscapePressed = StaticPopup_EscapePressed
+	end
 
 	if not t.OnHide then
 		t.OnHide = OnHide_cleanup
 	end
 
-    t.timeout = 0
-    t.whileDead = true
-    t.hideOnEscape = true
+	t.timeout = 0
+	t.whileDead = true
+	t.hideOnEscape = true
 	t.enterClicksFirstButton = true
 	t.preferredIndex = 3  -- http://forums.wowace.com/showthread.php?t=19960
 
-    return t
+	return t
 end