From f7aafe704daa820e9a7ae85dadf062f21c0ee58c Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 4 Jul 2010 17:35:05 -0400 Subject: [PATCH] Moved profession_textures table to Constants.lua --- Constants.lua | 15 +++++++++++++++ Frame.lua | 17 +---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Constants.lua b/Constants.lua index cbb8bf7..d208553 100644 --- a/Constants.lua +++ b/Constants.lua @@ -62,6 +62,21 @@ private.ordered_professions = { private.professions.Tailoring, -- 12 } +private.profession_textures = { + "alchemy", -- 1 + "blacksmith", -- 2 + "cooking", -- 3 + "enchant", -- 4 + "engineer", -- 5 + "firstaid", -- 6 + "inscribe", -- 7 + "jewel", -- 8 + "leather", -- 9 + "runeforge", -- 10 + "smelting", -- 11 + "tailor", -- 12 +} + ------------------------------------------------------------------------------- -- Item qualities. ------------------------------------------------------------------------------- diff --git a/Frame.lua b/Frame.lua index edaa090..a759eda 100644 --- a/Frame.lua +++ b/Frame.lua @@ -4281,21 +4281,6 @@ end -- Displays the main GUI frame. ------------------------------------------------------------------------------- do - local PROFESSION_TEXTURES = { - "alchemy", -- 1 - "blacksmith", -- 2 - "cooking", -- 3 - "enchant", -- 4 - "engineer", -- 5 - "firstaid", -- 6 - "inscribe", -- 7 - "jewel", -- 8 - "leather", -- 9 - "runeforge", -- 10 - "smelting", -- 11 - "tailor", -- 12 - } - function MainPanel:Display(profession, is_linked) if InitializeFrame then InitializeFrame() @@ -4356,7 +4341,7 @@ do if self.profession ~= prev_profession then self.prev_profession = self.profession end - self.prof_button:ChangeTexture(PROFESSION_TEXTURES[self.profession]) + self.prof_button:ChangeTexture(private.profession_textures[self.profession]) local editbox = SearchBox -- 1.7.9.5