SCENE code for clsoe on esc
His Dad [08-23-15 - 06:55]
SCENE code for clsoe on esc
diff --git a/AIResearchGrid.lua b/AIResearchGrid.lua
index b8c1767..51c2f7b 100644
--- a/AIResearchGrid.lua
+++ b/AIResearchGrid.lua
@@ -5,12 +5,13 @@
-- Dwemer Motif By garkin
-- French Translation by Motsah
-- Fixes by mpavlinsky
+-- Close on Esc code by Wandamey
local _
AIRG = {}
AIRG.name = "AIResearchGrid"
-AIRG.version = "3.2.11"
+AIRG.version = "3.2.12"
AIRG.initialised = false
AIRG.processing = false
AIRG.all = " #ALL" -- Default displayname for Virtual character, overrwritten by Localised version
@@ -39,13 +40,9 @@ end
function AIRG.ToggleMainWindow()
if (AIResearchGrid:IsHidden()) then
AIRG.OnCraftSelected() -- Redisplay data for the current profession
- SetGameCameraUIMode(true) -- Enable mouse pointer
- AIResearchGrid:SetHidden(false) -- Display the addon
- AIRG.OnCharacterSelect()
- else
- SetGameCameraUIMode(false) -- Enable mouse pointer
- AIResearchGrid:SetHidden(true) -- Display the addon
end
+
+ SCENE_MANAGER:ToggleTopLevel(AIResearchGrid) -- Thanks Wandamey
end -- AIRG.ToggleMainWindow
-- Invoked by EVENT_SMITHING_TRAIT_RESEARCH_STARTED
@@ -906,7 +903,7 @@ function AIRG.Initialise(eventCode, addOnName)
EVENT_MANAGER:RegisterForEvent("AIRG", EVENT_STYLE_LEARNED, AIRG.StyleLearned)
EVENT_MANAGER:RegisterForEvent("AIRG", EVENT_PLAYER_ACTIVATED, AIRG.PlayerActivated)
-
+ SCENE_MANAGER:RegisterTopLevel(AIResearchGrid, false) -- enables close on Esc
AIRG.initialised = true
end -- AIRG.Initialise
diff --git a/AIResearchGrid.txt b/AIResearchGrid.txt
index 4040c43..a5ee5fc 100644
--- a/AIResearchGrid.txt
+++ b/AIResearchGrid.txt
@@ -1,6 +1,6 @@
-## Title: |cFFFFB0Research Grid|r v3.2.11
+## Title: |cFFFFB0Research Grid|r v3.2.12
## APIVersion: 100011
-## Version: 3.2.11
+## Version: 3.2.12
## Author: Stormknight and Team
## OptionalDependsOn: LibAddonMenu-2.0
## SavedVariables: AIRG_SavedVariables
diff --git a/doc/changelog.txt b/doc/changelog.txt
index 2627e04..2fd4eb5 100644
--- a/doc/changelog.txt
+++ b/doc/changelog.txt
@@ -1,3 +1,10 @@
+2015-08-23 v3.2.12
+ New Feature
+ Dialog will close on Esc
+ Updated Version String.
+ Bug Fix
+ None
+
2015-06-19 V3.2.11
New Feature
None