From 6b00151ab38c6142038aac1aa2f7ed2be8fd05da Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 06:23:01 -0400 Subject: [PATCH] Moved NUM_PROFESSIONS into the OnClick script for MainPanel.mode_button. --- Frame.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index 821f455..36bf228 100644 --- a/Frame.lua +++ b/Frame.lua @@ -95,7 +95,6 @@ local CATEGORY_TEXT = { ["misc"] = _G.MISCELLANEOUS } -local NUM_PROFESSIONS = 12 local NUM_RECIPE_LINES = 24 -- Number of visible lines in the scrollframe. local SEASONAL_CATEGORY = GetCategoryInfo(155) -- Localized string - "World Events" @@ -1096,6 +1095,8 @@ MainPanel.mode_button:SetScript("OnClick", local endLoop = 0 local displayProf = 0 + local NUM_PROFESSIONS = 12 + -- ok, so first off, if we've never done this before, there is no "current" -- and a single iteration will do nicely, thank you if button == "LeftButton" then -- 1.7.9.5