Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Lion on April 02, 2007, 12:10:27 PM

Title: Black Screen before ChangeScene()
Post by: Lion on April 02, 2007, 12:10:27 PM
Before the call of function of ChangeScene, I want to show a fullscreen window. Then to close him, but so that after closing there was a black screen, instead of screen of the current scene. How this to do?

var Win = Game.LoadWindow("name");

Win.Center();
Win.GoSystemExclusive();

Game.UnloadObject(Win);

//?????????????????

Game.ChangeScene("name");
Title: Re: Black Screen before ChangeScene()
Post by: mRax on April 02, 2007, 12:28:34 PM
If I understand correctly, you can do next

Code: Text
  1. var Win = Game.LoadWindow("name");
  2.  
  3. Win.Center();
  4. Win.GoSystemExclusive();
  5.  
  6. Scene.FadeOut(0,0,0,0,255);     // Scene become black at the moment
  7.  
  8. Game.UnloadObject(Win);
  9.  
  10. Game.ChangeScene("name");
Title: Re: Black Screen before ChangeScene()
Post by: Lion on April 02, 2007, 12:31:43 PM
But then at me the new scene will be black.
Title: Re: Black Screen before ChangeScene()
Post by: Lion on April 02, 2007, 12:42:54 PM
There is another problem. At me on the screen of the scene there always is other interface window which will not become black by Scene.FadeOut(0,0,0,0,255). A black screen is necessary fully to me.
Title: Re: Black Screen before ChangeScene()
Post by: Mnemonic on April 02, 2007, 06:05:32 PM
There is another problem. At me on the screen of the scene there always is other interface window which will not become black by Scene.FadeOut(0,0,0,0,255). A black screen is necessary fully to me.
Scene.FadeOut() fades the scene (including in-game windows). Game.FadeOut fades everything.
Title: Re: Black Screen before ChangeScene()
Post by: Lion on April 03, 2007, 08:48:16 AM
thanks