From a2eea40009e2fd00d680aa20d586aaa9f0c0a4d4 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 25 Mar 2010 22:41:59 -0400 Subject: [PATCH] In ListItem_OnClick(): Added code to check if the mouse is over a new entry (it should be). If so, attach the highlight texture to it and generate its tooltip. --- Frame.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Frame.lua b/Frame.lua index af1e9cd..41c98d6 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2530,6 +2530,28 @@ do spell_tip:Hide() MainPanel.scroll_frame:Update(false, true) + + -- Since the list changed, the mouse is likely over a different entry - the highlight texture and tooltip should be generated for it. + local num_entries = #MainPanel.scroll_frame.entries + + if num_entries > 0 then + local button_index = 1 + local string_index = button_index + _G.FauxScrollFrame_GetOffset(MainPanel.scroll_frame) + + while button_index <= NUM_RECIPE_LINES do + local cur_state = MainPanel.scroll_frame.state_buttons[button_index] + local cur_button = MainPanel.scroll_frame.entry_buttons[button_index] + + if cur_state:IsMouseOver() then + Button_OnEnter(cur_state) + break + elseif cur_button:IsMouseOver() then + Bar_OnEnter(cur_button) + break + end + button_index = button_index + 1 + end + end end for i = 1, NUM_RECIPE_LINES do -- 1.7.9.5