Hi guys, ive got some Problems with the SCENE_MANAGER.
Im adding Stuff to the SCENE_MANAGER like this:
Code:
tlw = WINDOW_MANAGER:CreateTopLevelWindow("tlw")
zo_callLater(function() addon.AddUiFragment(tlw) end,4000)
function addon.AddUiFragment(Newfragment)
local HideFragment = Newfragment:IsHidden()
local Hud = SCENE_MANAGER:GetScene("hud")
local HudUI = SCENE_MANAGER:GetScene("hudui")
local fragment = ZO_SimpleSceneFragment:New(Newfragment)
Hud:AddFragment(fragment)
HudUI:AddFragment(fragment)
Newfragment:SetHidden(HideFragment)
end
The Problem is, that when i open for example the MAP, and then go back to the MainUI the TopLevelWindow i added to the SCENE_MANAGER loses its visible status and is always visible (also if it was hidden before opening the map). Since the SCENE_MANAGER has almost no documentation i hope that someone of you guys already worked a little bit with it and can help with this issue.