Full Screen Mode
by Dirk Hoffmann · in Torque Game Engine · 09/19/2005 (3:12 am) · 4 replies
Hello,
Is it possible to change from windowed mode to fullscreen mode and vice versa from within a script. How to realize this??
Thanks
Dirk
Is it possible to change from windowed mode to fullscreen mode and vice versa from within a script. How to realize this??
Thanks
Dirk
#2
09/19/2005 (4:38 am)
If you want to control it from script, just call toggleFullScreen();
#3
I tried it. If I connect it to a key, it seems to toggle twice, so that i come back to windowed mode.
But from something like 'onMissionLoaded()' called it seems to work (I also use a call to isFullScreen()).
Thanks a lot
Dirk
09/20/2005 (2:33 am)
Thank you,I tried it. If I connect it to a key, it seems to toggle twice, so that i come back to windowed mode.
But from something like 'onMissionLoaded()' called it seems to work (I also use a call to isFullScreen()).
Thanks a lot
Dirk
#4
in default.bind.cs to see how they use the first argument to determine if the key is being pressed or
released and only to act when it is pressed.
This was chosen at random from the default.bind.cs file as an example.
The variable %val is the one in question. When the key is pressed %val = 1, the key is released, %val = 0
09/20/2005 (2:57 am)
When you bind the function to the key, the function is being called when you press the button and again when you release it. That's why it happens twice. You need to look at the other functionsin default.bind.cs to see how they use the first argument to determine if the key is being pressed or
released and only to act when it is pressed.
function bringUpOptions(%val)
{
if (%val)
Canvas.pushDialog(OptionsDlg);
}This was chosen at random from the default.bind.cs file as an example.
The variable %val is the one in question. When the key is pressed %val = 1, the key is released, %val = 0
Torque Owner Stephen
GearedMind Studio