Canvas Name, Once Again
by Sobo · in General Discussion · 05/16/2008 (4:45 pm) · 5 replies
I know, this is a really newbie question and it has been asked a lot of times before, but I just cant remember how I changed the canvas name by code. I did it in my last game a couple of months ago. I have been searching for that code snippet for at least 2 hours in that game folder and I just cant find it. It was something really easy, like initCanvas("MyGame"); or something like that, and Im prettysure I put it in one of the main.cs files or in the game.cs file. I know that you can type the name of your game when you are building the project in TGB 1.7.3, and that name will show up as the canvas name. But I would like to know how to change the name by code, it just frustrates me that I cant find the place where I did it in the folders of my old games.
About the author
#2
I don't know about tgb tho, but it should be the same or simular.
05/17/2008 (2:18 am)
If you are using tge, it's in game/client/init.csI don't know about tgb tho, but it should be the same or simular.
#3
05/17/2008 (7:13 am)
In tgea 1.7, it was InitializeCanvas("window title"); There is also a call to Canvas.SetWindowTitle() that you will need to change.
#4
05/17/2008 (4:46 pm)
Im using TGB 1.7.3. I just cant find the command in my last game. Maybe the files were changed when I installed the latest version(1.7.3).
#5
05/17/2008 (7:32 pm)
Sorry - Just hoping it was similar and might help you out. Have you used WinGrep (or similar) to search the files? http://www.wingrep.com/download.htm
Torque 3D Owner Jeramy79
InitCanvas("window_name");