Start game in full screen?
by Jacob Wagner · in Torque Game Builder · 07/31/2008 (4:42 am) · 5 replies
I've been looking for 2 hours for a way to set the game to full screen on startup. I've modified the following files:
/common/preferences/defaultPrefs.cs:
changed $pref::Video::fullScreen = 0; to 1
in commonConfig.xml:
true
I've even tried starting the game with -fullscreen and it still immediately goes to a window. No amount of searching the forums or google could find a solution to this.
Thanks in advance for your help.
/common/preferences/defaultPrefs.cs:
changed $pref::Video::fullScreen = 0; to 1
in commonConfig.xml:
I've even tried starting the game with -fullscreen and it still immediately goes to a window. No amount of searching the forums or google could find a solution to this.
Thanks in advance for your help.
#2
07/31/2008 (3:16 pm)
This is, imo, a failure of the docs. If you do a search for 'fullscreen' in them, there are 0 results. So does this mean I have to go hunting in c++ code to find all the functions available?
#3
At this time, the "common" folder of scripts is not covered at all by the documentation. Nevertheless, they are some nice things to know about.
If you use Torsion it can enumerate all methods/functions from both C++ and script (including ones that you write), and will list them in the "Code Browser" tab. This is also much faster to use than the documentation search.
07/31/2008 (3:26 pm)
Thats because the function isFullscreen() and toggleFullscreen() are not from C++, they are from a script file in common, OptionsGui.csAt this time, the "common" folder of scripts is not covered at all by the documentation. Nevertheless, they are some nice things to know about.
If you use Torsion it can enumerate all methods/functions from both C++ and script (including ones that you write), and will list them in the "Code Browser" tab. This is also much faster to use than the documentation search.
#4
07/31/2008 (6:36 pm)
I've been using Torsion for a year and I never noticed the "Code Browser" tab. Thank you so much for mentioning it James!
#5
08/01/2008 (10:19 am)
Then you're gonna love this, click on something inside the Code Browser, then start typing.. say "t2dS..." and you can do an incremental search. The search operates on the level of the tree you have something currently selected. Also double click on it and it will open the containing document and jump to that line (if its defined in script, not C++).
Torque Owner Kevin James
Add this in your game startup somewhere:
if( !isFullscreen() ) toggleFullscreen();