View Single Post
05/10/14, 10:41 AM   #3
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Aicam View Post
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.
You can remove scene fragment it using:
Lua Code:
  1. yourControl:SetHidden(true)
  2. SCENE_MANAGER:GetScene("hud").fragments[fragment]

EDIT: As of patch 1.1.2 you can use:
Lua Code:
  1. SCENE_MANAGER:GetScene("hud"):RemoveFragment(fragment)

Last edited by Garkin : 05/23/14 at 05:34 AM. Reason: updated for patch 1.1.2
  Reply With Quote