Quantcast

Removed all icon tooltips in the skill list and queue.

pschifferer [01-23-09 - 00:16]
Removed all icon tooltips in the skill list and queue.
Filename
Cauldron/CauldronMain.xml
Cauldron/CauldronTradeskill.lua
diff --git a/Cauldron/CauldronMain.xml b/Cauldron/CauldronMain.xml
index 8daf935..abbf802 100644
--- a/Cauldron/CauldronMain.xml
+++ b/Cauldron/CauldronMain.xml
@@ -29,13 +29,17 @@
 	<Button name="CauldronReagentDetailTemplate" inherits="TradeSkillItemTemplate" virtual="true">
 		<Scripts>
 			<OnEnter>
+				--[[
 				GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT");
 				GameTooltip:SetTradeSkillItem(self.skillIndex, self:GetID());
 				CursorUpdate(self);
+				--]]
 			</OnEnter>
 			<OnLeave>
+				--[[
 				GameTooltip:Hide();
 				ResetCursor();
+				--]]
 			</OnLeave>
 			<OnUpdate>
 				CursorOnUpdate(self);
@@ -106,29 +110,33 @@
 				</Layers>
 				<Scripts>
 					<OnLoad>
-						self.hasItem = 1;
+						-- self.hasItem = 1;
 					</OnLoad>
 					<OnClick>
-						HandleModifiedItemClick(GetTradeSkillItemLink(self.skillIndex));
+						-- HandleModifiedItemClick(GetTradeSkillItemLink(self.skillIndex));
 						Cauldron:SkillItem_OnClick(self, button, down);
 					</OnClick>
 					<OnEnter>
-						if self.skillIndex then
-							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
-							GameTooltip:SetTradeSkillItem(self.skillIndex);
-							CursorUpdate(self);
-						end
+						--[[
+						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
+						GameTooltip:SetTradeSkillItem(self.skillIndex);
+						CursorUpdate(self);
+						--]]
 					</OnEnter>
 					<OnLeave>
+						--[[
 						GameTooltip:Hide();
 						ResetCursor();
+						--]]
 					</OnLeave>
 					<OnUpdate>
+						--[[
 						if GameTooltip:IsOwned(self) then
 							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
 							GameTooltip:SetTradeSkillItem(self.skillIndex);
 							CursorUpdate(self);
 						end
+						--]]
 						CursorOnUpdate(self);
 					</OnUpdate>
 				</Scripts>
@@ -344,24 +352,26 @@
 						-- HandleModifiedItemClick(GetTradeSkillItemLink(TradeSkillFrame.selectedSkill));
 					</OnClick>
 					<OnEnter>
+						--[[
 						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
-						if self.skillIndex then
-							GameTooltip:SetTradeSkillItem(self.skillIndex, self.reagentIndex);
-						end
+						GameTooltip:SetTradeSkillItem(self.skillIndex, self.reagentIndex);
 						CursorUpdate(self);
+						--]]
 					</OnEnter>
 					<OnLeave>
+						--[[
 						GameTooltip:Hide();
 						ResetCursor();
+						--]]
 					</OnLeave>
 					<OnUpdate>
+						--[[
 						if GameTooltip:IsOwned(self) then
 							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
-							if self.skillIndex then
-								GameTooltip:SetTradeSkillItem(self.skillIndex, self.reagentIndex);
-							end
+							GameTooltip:SetTradeSkillItem(self.skillIndex, self.reagentIndex);
 							CursorUpdate(self);
 						end
+						--]]
 						CursorOnUpdate(self);
 					</OnUpdate>
 				</Scripts>
@@ -659,7 +669,7 @@

         <Frames>
             <!-- Link button -->
-            <Button name="TradeSkillLinkButton" frameStrata="HIGH">
+            <Button name="CauldronTradeSkillLinkButton" frameStrata="HIGH">
                 <Size x="32" y="16" />
                 <Anchors>
                     <Anchor point="LEFT" relativeTo="CauldronFrameTitleText" relativePoint="RIGHT">
diff --git a/Cauldron/CauldronTradeskill.lua b/Cauldron/CauldronTradeskill.lua
index b92184f..da7c7d1 100644
--- a/Cauldron/CauldronTradeskill.lua
+++ b/Cauldron/CauldronTradeskill.lua
@@ -40,6 +40,7 @@ function Cauldron:UpdateSkills()
 				sortDifficulty = true,
 				sortAlpha = false,
 				sortBenefit = false,
+				favorites = false,
 			},
 			skills = {},
 			slots = {},
@@ -89,6 +90,7 @@ function Cauldron:UpdateSkills()
 			if not skillDB.window.skills[name] then
 				skillDB.window.skills[name] = {
 					['expanded'] = false,
+					['favorite'] = false,
 				};
 			end