Quantcast

Tweaked the button management code a little bit more.

pschifferer [12-16-09 - 03:33]
Tweaked the button management code a little bit more.
Filename
CauldronMainUI.lua
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index 6e76fa2..4fa4a0b 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -582,24 +582,21 @@ function Cauldron:UpdateButtons()

 	if skillInfo then
 		CauldronCreateButton:SetText(skillInfo.verb or CREATE);
+		if skillInfo.verb then
+			CauldronCreateButton:Enable();
+		end

 		CauldronQueueAllButton:Enable();
 		CauldronQueueButton:Enable();

-		if skillInfo.verb then
-			CauldronCreateAllButton:Hide();
-			CauldronCreateButton:Show();
+		CauldronCreateButton:Show();
+
+		if skillInfo.available > 0 then
+			CauldronCreateAllButton:Enable();
 			CauldronCreateButton:Enable();
 		else
-			CauldronCreateButton:Show();
-
-			if skillInfo.available > 0 then
-				CauldronCreateAllButton:Enable();
-				CauldronCreateButton:Enable();
-			else
-				CauldronCreateAllButton:Disable();
-				CauldronCreateButton:Disable();
-			end
+			CauldronCreateAllButton:Disable();
+			CauldronCreateButton:Disable();
 		end
 	else
 		CauldronQueueAllButton:Disable();