Game Development Community

How do I change they Torque 3D 2009 in the title bar?

by James Brad Barnette · in Torque 3D Professional · 06/30/2009 (2:31 pm) · 3 replies

How do I change they Torque 3D 2009 in the title bar? I thought that this used to be in the resource file but it doesn't seem to be there anymore.

#1
06/30/2009 (3:40 pm)
This is actually implemented incorrectly, it should be fixed. Currently, in win32WindowMgr.cpp in ::createWindow, it creates the window with getEngineProductString() as the title. So you can either change the engine product string (probably not the correct solution) or replace this with a new function getGameNameString() for instance. Implement that and you'll be good.
#2
06/30/2009 (5:52 pm)
Actually its in main.cs that its set for realz...

function createCanvas(%windowTitle)
{
   if ($isDedicated)
   {
      GFXInit::createNullDevice();
      return true;
   }

   // Create the Canvas
   %foo = new GuiCanvas(Canvas);
   
   // Set the window title
   if (isObject(Canvas))
      Canvas.setWindowTitle(getEngineName() SPC getVersionString() @ " - " @ $appName);
   
   return true;
}

I hope to move this function out to core and replace it with a simple global.
#3
06/30/2009 (6:40 pm)
Also, if you want to set it on the fly

Canvas.setWindowTitle(foo);

should set it as well.