View Single Post
05/12/14, 07:55 AM   #13
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by LoPony View Post
Any possibility to have some control about this?
Currently it hides the UI if you use siege weapons, I would like to remove that behavior.

edit: well I just found it. This does the job
Code:
SCENE_MANAGER.scenes.siegeBar:RegisterCallback( 'StateChange', function( oldState, newState ) 
  if( newState == 'showing' ) then
    myControl:SetHidden( false )
  end
end )
I think that the proper way is to add your fragment to siege scene:
Lua Code:
  1. SCENE_MANAGER:GetScene("siegeBar"):AddFragment( fragment )
  Reply With Quote