Originally Posted by Aicam
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:
yourControl:SetHidden(true)
SCENE_MANAGER:GetScene("hud").fragments[fragment]
EDIT: As of patch 1.1.2 you can use:
Lua Code:
SCENE_MANAGER:GetScene("hud"):RemoveFragment(fragment)