Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: 2.0 on November 07, 2009, 09:57:49 PM

Title: How can I toggle between windowed/fullscreen modes from the game?
Post by: 2.0 on November 07, 2009, 09:57:49 PM
Hi!
In my game I need to toggle between windowed and fullscreen modes without launching the configuration utility. How can I do this?
Also it will be good enough if I can toggle windowed/fullscreen trigger from inside the game, and at the next launch the game will use proper mode. How can I do this?
Thanks.
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: Mnemonic on November 07, 2009, 10:02:43 PM
You can't do this.
You could do the switch-on-next-launch thing by overwriting the right value in the registry, but the script functions won't allow you to do that so you'd either need to use Windows API directly, or use a plugin / external DLL.
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: 2.0 on November 07, 2009, 10:55:43 PM
OK. Where I can find (path to it) this value?

You can't do this.
You could do the switch-on-next-launch thing by overwriting the right value in the registry, but the script functions won't allow you to do that so you'd either need to use Windows API directly, or use a plugin / external DLL.
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: Mnemonic on November 07, 2009, 10:58:26 PM
HKEY_CURRENT_USER\<the path you set in ProjectMan>\Video
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: 2.0 on November 07, 2009, 11:18:31 PM
Thanks Mnemonic!

Did you planned to include toggle feature at the next releases? As I know, in the earlier versions of WME this feature works and works fine.

HKEY_CURRENT_USER\<the path you set in ProjectMan>\Video
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: Mnemonic on November 08, 2009, 09:43:07 AM
Umm, no, WME never had that feature.
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: 2.0 on November 25, 2009, 10:38:06 PM
Umm, no, WME never had that feature.

Strange, I read about it somewhere in old themes... However may be I've mixed up... But... May be you can realize this functionality in one of the future releases? Point is that this feature is claimed in the current games, especially in casual games. And for casual developers it may be very useful advantage.
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: Prote1n on March 18, 2010, 02:18:10 PM
I totally agree. Such a feature is very important for a commercial title today
Title: Re: How can I toggle between windowed/fullscreen modes from the game?
Post by: Kinjal on March 19, 2010, 09:03:41 AM
Quote
I totally agree. Such a feature is very important for a commercial title today
You can try WME Kinjal Edition, it support windowed/fullscreen switching in game, without game restart.