Added sound to the favorites check box.
pschifferer [01-22-09 - 21:46]
Added sound to the favorites check box.
Changed how the skill and reagent icons store their tooltip info.
diff --git a/Cauldron/CauldronMain.xml b/Cauldron/CauldronMain.xml
index 7584c0d..c64bccc 100644
--- a/Cauldron/CauldronMain.xml
+++ b/Cauldron/CauldronMain.xml
@@ -30,7 +30,7 @@
<Scripts>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT");
- GameTooltip:SetTradeSkillItem(self.skillIndex, self:GetID());
+ GameTooltip:SetTradeSkillItem(self.skillIndex, self:reagentIndex);
CursorUpdate(self);
</OnEnter>
<OnLeave>
@@ -173,6 +173,7 @@
ResetCursor();
</OnLeave>
<OnClick>
+ PlaySound("igMainMenuOptionCheckBoxOn");
Cauldron:FavoriteItemButton_OnClick(self);
Cauldron:UpdateSkillList();
</OnClick>
diff --git a/Cauldron/CauldronMainUI.lua b/Cauldron/CauldronMainUI.lua
index 3836efa..f461f27 100644
--- a/Cauldron/CauldronMainUI.lua
+++ b/Cauldron/CauldronMainUI.lua
@@ -186,6 +186,7 @@ function Cauldron:UpdateSkillList()
skillFrame:SetID(i);
skillFrame.skillIndex = skillInfo.index;
+ skillFrame.reagentIndex = nil;
-- set selection
if self.db.realm.userdata[self.vars.playername].skills[skillName].window.selected == skillInfo.index then
@@ -302,7 +303,8 @@ function Cauldron:UpdateSkillList()
local reagentInfo = skillInfo.reagents[j];
self:debug("UpdateSkillList: reagentInfo="..tostring(reagentInfo));
- reagentFrame.skillIndex = skillInfo.index;
+ reagentFrame.skillIndex = skillInfo.reagents[j].skillIndex;
+ reagentFrame.reagentIndex = skillInfo.reagents[j].index;
if j > reagentCount then
self:debug("UpdateSkillList: hide the reagent frame");