Jump to content

How do I change the main title bar again?


chriscalef

Recommended Posts

Hey, feels like I should know this already, but as a quick refresher, can anyone tell me where to go to fix the title bar on my project? I'm actually reaching a point where branding might actually be on the table, and I fixed the splash screens etc, but I can't recall where I set "MegaMotion" to be my project name (I thought it was in torque.rc or torqueConfig.h, but they haven't worked so far) and I'm not sure I've ever known how to get rid of the "Torque 3D MIT - " part of the title line:


http://megamotionsoftware.com/files/TitleBar.jpg


Anybody fresh on this? I did a full rebuild after changing the above files, with no visible effect.

Link to comment
Share on other sites

Ah, right, there it is. Main.cs, createCanvas():

 

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

  // Create the Canvas
  %foo = new GuiCanvas(Canvas)
  {
     displayWindow = $platform !$= "windows";
  };

  $GameCanvas = %foo;

  // Set the window title
  if (isObject(Canvas))
     Canvas.setWindowTitle(getEngineName() @ " - " @ $appName); // <--- THIS ----

  return true;
}

Link to comment
Share on other sites

yes is true :) sorry about that I was a little confuse because you post in C++, and I use the new module/template and it behaves differently that's why I did not see it :lol:


anyways to people out there, for the new template/module:


https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/main.cs.in#L15

https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/core/canvas.cs#L40


Old template from here:

https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/main.cs#L24

https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/main.cs#L52

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...