Quantcast

Added a tooltip for the favorites checkbox.

pschifferer [01-22-09 - 18:10]
Added a tooltip for the favorites checkbox.
Made unchecking a favorite cause the skill list to update.
Filename
Cauldron/CauldronMain.xml
diff --git a/Cauldron/CauldronMain.xml b/Cauldron/CauldronMain.xml
index 64fe6db..7483d0b 100644
--- a/Cauldron/CauldronMain.xml
+++ b/Cauldron/CauldronMain.xml
@@ -161,8 +161,20 @@
 						self:SetScale(0.5);
 						getglobal(self:GetName()):SetText("");
 					</OnLoad>
+                	<OnEnter>
+						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
+						GameTooltip:ClearLines();
+						GameTooltip:AddLine(Cauldron:LocaleString("Mark this skill as a favorite"));
+						GameTooltip:Show();
+						CursorUpdate(self);
+                	</OnEnter>
+                	<OnLeave>
+                		GameTooltip:Hide();
+                		ResetCursor();
+                	</OnLeave>
 					<OnClick>
 						Cauldron:FavoriteItemButton_OnClick(self);
+						Cauldron:UpdateSkillList();
 					</OnClick>
 				</Scripts>
 			</CheckButton>