Torque 2D/Getting Started/ChangeWindowTitle

From TDN

Torque Game Builder Tutorial - Changing the Window Title

--Philip Mansfield 13:15, 4 June 2006 (PST)


This tutorial will cover the following:

  • Changing the title displayed in the top left corner of the T2D window

Open \common\gameScripts\common.cs and look around line 28. You should see:

   // Initialize the canvas.
   initializeCanvas("T2D");

Change the text T2D to read whatever your game is called. Save the file and re-run your game to see the window name updated.

-or-

If you want to avoid changing files in the common folder then go to your game folders "mygame\main.cs". Edit the function InitializeProject() and add this line

   // Rename screen title to my game.
   SetCanvasTitle("My game name");
  • In TGB v1.7.5 (and also 1.7.4 I believe) The title can be found and changed in the commonConfig.xml file found in \common directory.