View Single Post
05/10/14, 09:35 AM   #2
Aicam
Join Date: Apr 2014
Posts: 16
Lua Code:
  1. local fragment = ZO_FadeSceneFragment:New( yourControl )
  2.  
  3. SCENE_MANAGER:GetScene('hud'):AddFragment( fragment )
  4. SCENE_MANAGER:GetScene('hudui'):AddFragment( fragment )

This adds yourControl to the HUD and the UI engine does all the work showing and hiding it when its appropriate. The downsite is you can't remove this show/hide behaviour without a reload of the UI, unless you want to hack into the scene by removing the fragment by force and toggling the scene twice.
Imo triggering an reload when changing something like this is acceptable.
  Reply With Quote