From 404a726f02beed2b937d11dbea40cbafac582737 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 15 Jul 2010 01:50:41 -0400 Subject: [PATCH] Moved StaticPopupDialog definitions to core.lua --- Frame.lua | 63 ------------------------------------------------------------- core.lua | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 63 deletions(-) diff --git a/Frame.lua b/Frame.lua index 27f3b41..2f217d5 100644 --- a/Frame.lua +++ b/Frame.lua @@ -11,9 +11,6 @@ Please see http://www.wowace.com/addons/arl/ for more information. ************************************************************************ This source code is released under All Rights Reserved. ************************************************************************ -**AckisRecipeList** provides an interface for scanning professions for missing recipes. -There are a set of functions which allow you make use of the ARL database outside of ARL. -ARL supports all professions currently in World of Warcraft 3.3.2 @class file @name Frame.lua ************************************************************************ @@ -81,66 +78,6 @@ local FACTION_HORDE = BFAC["Horde"] local FACTION_ALLIANCE = BFAC["Alliance"] local FACTION_NEUTRAL = BFAC["Neutral"] -------------------------------------------------------------------------------- --- Define the static popups we're going to call when people haven't scanned or --- when current filters are blocking all recipes from being displayed. -------------------------------------------------------------------------------- -StaticPopupDialogs["ARL_NOTSCANNED"] = { - text = L["NOTSCANNED"], - button1 = _G.OKAY, - timeout = 0, - exclusive = 1, - whileDead = 1, - hideOnEscape = 1 -} - -StaticPopupDialogs["ARL_ALLFILTERED"] = { - text = L["ALL_FILTERED"], - button1 = _G.OKAY, - timeout = 0, - exclusive = 1, - whileDead = 1, - hideOnEscape = 1 -} - -StaticPopupDialogs["ARL_ALLKNOWN"] = { - text = L["ARL_ALLKNOWN"], - button1 = _G.OKAY, - timeout = 0, - exclusive = 1, - whileDead = 1, - hideOnEscape = 1 -} - -StaticPopupDialogs["ARL_ALLEXCLUDED"] = { - text = L["ARL_ALLEXCLUDED"], - button1 = _G.OKAY, - timeout = 0, - exclusive = 1, - whileDead = 1, - hideOnEscape = 1 -} - -StaticPopupDialogs["ARL_SEARCHFILTERED"] = { - text = L["ARL_SEARCHFILTERED"], - button1 = _G.OKAY, - timeout = 0, - exclusive = 1, - whileDead = 1, - hideOnEscape = 1 -} - -------------------------------------------------------------------------------- --- Close all possible pop-up windows -------------------------------------------------------------------------------- -function addon:ClosePopups() - _G.StaticPopup_Hide("ARL_NOTSCANNED") - _G.StaticPopup_Hide("ARL_ALLFILTERED") - _G.StaticPopup_Hide("ARL_ALLKNOWN") - _G.StaticPopup_Hide("ARL_ALLEXCLUDED") - _G.StaticPopup_Hide("ARL_SEARCHFILTERED") -end - function private.InitializeFrame() ------------------------------------------------------------------------------- -- Create the MainPanel and set its values diff --git a/core.lua b/core.lua index 8a62c07..5eeb8d2 100644 --- a/core.lua +++ b/core.lua @@ -145,6 +145,66 @@ if MissingLibraries() then end ------------------------------------------------------------------------------- +-- Define the static popups we're going to call when people haven't scanned or +-- when current filters are blocking all recipes from being displayed. +------------------------------------------------------------------------------- +StaticPopupDialogs["ARL_NOTSCANNED"] = { + text = L["NOTSCANNED"], + button1 = _G.OKAY, + timeout = 0, + exclusive = 1, + whileDead = 1, + hideOnEscape = 1 +} + +StaticPopupDialogs["ARL_ALLFILTERED"] = { + text = L["ALL_FILTERED"], + button1 = _G.OKAY, + timeout = 0, + exclusive = 1, + whileDead = 1, + hideOnEscape = 1 +} + +StaticPopupDialogs["ARL_ALLKNOWN"] = { + text = L["ARL_ALLKNOWN"], + button1 = _G.OKAY, + timeout = 0, + exclusive = 1, + whileDead = 1, + hideOnEscape = 1 +} + +StaticPopupDialogs["ARL_ALLEXCLUDED"] = { + text = L["ARL_ALLEXCLUDED"], + button1 = _G.OKAY, + timeout = 0, + exclusive = 1, + whileDead = 1, + hideOnEscape = 1 +} + +StaticPopupDialogs["ARL_SEARCHFILTERED"] = { + text = L["ARL_SEARCHFILTERED"], + button1 = _G.OKAY, + timeout = 0, + exclusive = 1, + whileDead = 1, + hideOnEscape = 1 +} + +------------------------------------------------------------------------------- +-- Close all possible pop-up windows +------------------------------------------------------------------------------- +function addon:ClosePopups() + _G.StaticPopup_Hide("ARL_NOTSCANNED") + _G.StaticPopup_Hide("ARL_ALLFILTERED") + _G.StaticPopup_Hide("ARL_ALLKNOWN") + _G.StaticPopup_Hide("ARL_ALLEXCLUDED") + _G.StaticPopup_Hide("ARL_SEARCHFILTERED") +end + +------------------------------------------------------------------------------- -- Functions common to most files in the AddOn. ------------------------------------------------------------------------------- function private.SetTextColor(color_code, text) -- 1.7.9.5