From b96327333f3edae3f352d11d478c885245e21a13 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 25 Mar 2010 22:39:56 -0400 Subject: [PATCH] Moved Button_OnEnter(), Button_OnLeave(), Bar_OnEnter(), and Bar_OnLeave() to be above ListItem_OnClick(). --- Frame.lua | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) 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) -- 1.7.9.5