Game Development Community

How do you change the text at the top of the screen?

by Robert Rouhani · in Game Design and Creative Issues · 11/23/2007 (12:37 pm) · 2 replies

I am just wondering how to change the text not in the game, but on the bar above the game. Right now it says "Torque Tutorial Base" and I want to change it to the name of my software. Please help.

#1
11/23/2007 (1:28 pm)
Simply search the code base for "Torque Tutorial Base"

or find a location to set the window name via SetWindowText(HWND hWnd, LPCSTR string)

so if you can find a call to SetWindowText, or a place where the handle to the window is available try that.

I would use the first method, find the location where it is specified and change it there.
#2
11/23/2007 (4:36 pm)
Look in ./client/init.cs

look for:
// InitCanvas starts up the graphics system.
   // The canvas needs to be constructed before the gui scripts are
   // run because many of the controls assume the canvas exists at
   // load time.
   initCanvas("Torque Game Engine", true);
   if (!isObject(Canvas))
      // failed, don't make it worse by crashing...
      return;

and change initCanvas to what you want the name to be.