TGB and fullscreen - how?
by Luis Rodrigues · in Torque Game Builder · 05/21/2011 (3:03 am) · 2 replies
Here's the issue:
I want my game to run in fullscreen rather than windowed mode.
In commonConfig.xml, there is a line
But turning false to true does nothing
In defaultPrefs.cs there is a line
Turning 0 to 1 makes it start at fullscreen but imediatly go back to windowed mode.
Anyone has an idea on how to make it stay in fullscreen mode?
I want my game to run in fullscreen rather than windowed mode.
In commonConfig.xml, there is a line
<FullScreen>false</FullScreen>
But turning false to true does nothing
In defaultPrefs.cs there is a line
$pref::Video::fullScreen = 0;
Turning 0 to 1 makes it start at fullscreen but imediatly go back to windowed mode.
Anyone has an idea on how to make it stay in fullscreen mode?
About the author
Started Programming age 12 on 48kb ZX Spectrum than moved to Turbo Pascal, Turbo C++, Delphi, Java, etc. Currently Working as a programmer of in-house tools 4 a technical translations company, and working with WinterLeaf Entertainment on off days
#2
On options.cs the last parameter is a variable (%newFullScreen) and on canvas.cs the last parameter is false.
Instead of making it 1 as you sugested i turned false to $Game::FullScreen on the canvas.cs and that worked.
That way it will use whatever i set in commonConfig.xml
Thanks for pointing me in the right direction.
05/21/2011 (7:47 am)
i have found setScreenMode - it's both in common/gamescripts/options.cs and in common/gamescripts/canvas.csOn options.cs the last parameter is a variable (%newFullScreen) and on canvas.cs the last parameter is false.
Instead of making it 1 as you sugested i turned false to $Game::FullScreen on the canvas.cs and that worked.
That way it will use whatever i set in commonConfig.xml
Thanks for pointing me in the right direction.
Torque Owner Alain Labrie
Ware-Wolf Games