chriscalef Posted January 25, 2018 Share Posted January 25, 2018 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.jpgAnybody fresh on this? I did a full rebuild after changing the above files, with no visible effect. Quote Link to comment Share on other sites More sharing options...
chriscalef Posted January 25, 2018 Author Share Posted January 25, 2018 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; } Quote Link to comment Share on other sites More sharing options...
Johxz Posted January 25, 2018 Share Posted January 25, 2018 Hey Chrisyou can change the MegaMotion in the main.cs in your project. $appName = "Full"; https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/main.cs#L24and for the "Torque 3D MIT", you need to look inside Engine/source/app/version.cpphttps://github.com/GarageGames/Torque3D/blob/development/Engine/source/app/version.cpp#L79 Quote Link to comment Share on other sites More sharing options...
chriscalef Posted January 25, 2018 Author Share Posted January 25, 2018 Thanks @Johxz - but actually you don't need to go into the engine to get rid of the "Torque 3D MIT" - it's also in main.cs, under getEngineName(): // Set the window title if (isObject(Canvas)) Canvas.setWindowTitle(getEngineName() @ " - " @ $appName); // <--- THIS ---- Quote Link to comment Share on other sites More sharing options...
Johxz Posted January 25, 2018 Share Posted January 25, 2018 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#L15https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/core/canvas.cs#L40Old template from here:https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/main.cs#L24https://github.com/GarageGames/Torque3D/blob/development/Templates/Full/game/main.cs#L52 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.