scenemanager state compare
git [04-01-18 - 13:20]
scenemanager state compare
diff --git a/IIfA/IIfASceneFuncs.lua b/IIfA/IIfASceneFuncs.lua
index 54e8560..e58fbe8 100644
--- a/IIfA/IIfASceneFuncs.lua
+++ b/IIfA/IIfASceneFuncs.lua
@@ -66,12 +66,12 @@ end
function IIfA:ProcessSceneChange(sceneName, oldState, newState)
-- IIfA:DebugOut(zo_strformat("ProcessSceneChange <<1>>: <<2>> -> <<3>>", sceneName, oldState, newState))
- if (tostring(newState) == "shown") then
+ if SCENE_SHOWN == newState then
sceneName = IIfA:GetCurrentSceneName()
local settings = IIfA:GetSceneSettings(sceneName)
self:RePositionFrame(settings)
- elseif (tostring(newState) == "hidden") then
+ elseif SCENE_HIDDEN == newState then
IIFA_GUI:SetHidden(true)
end
end