From 663d5517227281837aa3c2788897f3b591784bd0 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 21 Mar 2010 03:14:00 -0400 Subject: [PATCH] Renamed RecipeItem_OnClick() to ListItem_OnClick(), and recipe_buttons to entry_buttons. --- Frame.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Frame.lua b/Frame.lua index 8bf1e58..c77546f 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3182,7 +3182,7 @@ function addon:InitializeFrame() -- Set the scripts for MainPanel.scroll_frame's buttons. ------------------------------------------------------------------------------- do - local function RecipeItem_OnClick(self, button) + local function ListItem_OnClick(self, button) local clickedIndex = self.string_index -- Don't do anything if they've clicked on an empty button @@ -3274,16 +3274,16 @@ function addon:InitializeFrame() if i ~= 1 then temp_state:SetPoint("TOPLEFT", MainPanel.scroll_frame.state_buttons[i - 1], "BOTTOMLEFT", 0, 3) - temp_recipe:SetPoint("TOPLEFT", MainPanel.scroll_frame.recipe_buttons[i - 1], "BOTTOMLEFT", 0, 3) + temp_recipe:SetPoint("TOPLEFT", MainPanel.scroll_frame.entry_buttons[i - 1], "BOTTOMLEFT", 0, 3) else temp_state:SetPoint("TOPLEFT", MainPanel, "TOPLEFT", 20, -100) temp_recipe:SetPoint("TOPLEFT", MainPanel, "TOPLEFT", 37, -100) end - temp_state:SetScript("OnClick", RecipeItem_OnClick) - temp_recipe:SetScript("OnClick", RecipeItem_OnClick) + temp_state:SetScript("OnClick", ListItem_OnClick) + temp_recipe:SetScript("OnClick", ListItem_OnClick) MainPanel.scroll_frame.state_buttons[i] = temp_state - MainPanel.scroll_frame.recipe_buttons[i] = temp_recipe + MainPanel.scroll_frame.entry_buttons[i] = temp_recipe end end -- do -- 1.7.9.5