View Single Post
05/11/14, 04:41 AM   #6
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 89
Originally Posted by Aicam View Post
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.
This is creating some very weird behavior in the default code. A few things i noticed and getting bug reports from.

Can't drag skills to my action bar anymore cause i tries to call a protected function.
Dialogs aren't properly initialized at moment that EVENT_CHATTER_BEGIN is fired.

  Reply With Quote