Moved NUM_PROFESSIONS into the OnClick script for MainPanel.mode_button.
James D. Callahan III [03-26-10 - 10:23]
Moved NUM_PROFESSIONS into the OnClick script for MainPanel.mode_button.
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