View Single Post
08/18/14, 01:28 AM   #1
Dero
 
Dero's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 14
SCENE_MANAGER problems

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.
  Reply With Quote