Game Development Community

Starting window position

by Ian Omroth Hardingham · in Technical Issues · 11/29/2010 (11:11 am) · 2 replies

Hey guys, simple but unusual query.

In windowed mode I'd like to be able to set the startup position of the Torque window. Anyone know how to achieve this?

Thanks,
Ian

#1
12/02/2010 (4:52 pm)
Just from a quick search in file content

in game\core\main.cs they mention constants for rendering mode.
in game\core\unifiedShell\OptionsGui.cs they seem to use them as well

in engine\source\windowManager -win32 & mac the methods and args are also mentioned in win32Window & platformWindow

happy hunting
#2
02/03/2011 (11:50 am)
I was looking to do the same thing. The PlatformWindow class stores your window position and has the functionality you're looking for. I indirectly access this through the GuiCanvas class by setting up a Console Method so I can set the default position in a script.