Moved Button_OnEnter(), Button_OnLeave(), Bar_OnEnter(), and Bar_OnLeave() to be above ListItem_OnClick().
James D. Callahan III [03-26-10 - 02:39]
Moved Button_OnEnter(), Button_OnLeave(), Bar_OnEnter(), and Bar_OnLeave() to be above ListItem_OnClick().
diff --git a/Frame.lua b/Frame.lua
index 861c812..af1e9cd 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2413,6 +2413,30 @@ do
highlight._texture:SetBlendMode("ADD")
highlight._texture:SetAllPoints(highlight)
+ local function Button_OnEnter(self)
+ GenerateTooltipContent(self, MainPanel.scroll_frame.entries[self.string_index].recipe_id)
+ end
+
+ local function Button_OnLeave()
+ QTip:Release(acquire_tip)
+ spell_tip:Hide()
+ end
+
+ local function Bar_OnEnter(self)
+ highlight:SetParent(self)
+ highlight:SetAllPoints(self)
+ highlight:Show()
+ GenerateTooltipContent(self, MainPanel.scroll_frame.entries[self.string_index].recipe_id)
+ end
+
+ local function Bar_OnLeave()
+ highlight:Hide()
+ highlight:ClearAllPoints()
+ highlight:SetParent(nil)
+ QTip:Release(acquire_tip)
+ spell_tip:Hide()
+ end
+
local function ListItem_OnClick(self, button)
local clickedIndex = self.string_index
@@ -2538,30 +2562,6 @@ do
MainPanel.scroll_frame.entry_buttons[i] = cur_entry
end
- local function Button_OnEnter(self)
- GenerateTooltipContent(self, MainPanel.scroll_frame.entries[self.string_index].recipe_id)
- end
-
- local function Button_OnLeave()
- QTip:Release(acquire_tip)
- spell_tip:Hide()
- end
-
- local function Bar_OnEnter(self)
- highlight:SetParent(self)
- highlight:SetAllPoints(self)
- highlight:Show()
- GenerateTooltipContent(self, MainPanel.scroll_frame.entries[self.string_index].recipe_id)
- end
-
- local function Bar_OnLeave()
- highlight:Hide()
- highlight:ClearAllPoints()
- highlight:SetParent(nil)
- QTip:Release(acquire_tip)
- spell_tip:Hide()
- end
-
local SKILL_LEVEL_FORMAT = "[%d]"
local SPELL_ENCHANTING = GetSpellInfo(51313)