application.setCurrentGame
Loads a game into the editor.
Prototype
bOk = application.setCurrentGame ( hGame )
Description
Set hGame == nil to unload games.
Parameters
hGame - valid Game handle
Return values
bOk - true on success
Sample
function onStageViewDestroy ( hView, hComponent ) application.setCurrentGame ( nil ) this.unsetViewVariable ( hView, "hCurrentGame" ) end -------------------------------------------------------------------------------- function onStageViewFocusChanged ( hView, hComponent, bFocus ) if ( bFocus ) then application.setCurrentGame ( this.getViewVariable ( hView, "hCurrentGame" ) ) end end
Available since ShiVa 2.0