new here - intro and quick GUI builder question
by Ben Polzin · in General Discussion · 03/26/2011 (9:41 pm) · 3 replies
Hey everyone..I am a computer science student and recently finished what would essentially be called fundamentals of programming, C++ and it was awesome. One of my teachers mentioned torque briefly one day and I had to see what it was all about. I purchased torque 2d a little while ago and have basically been digging in and teaching myself, following along with the demos in the official documentation which have been very helpful to figure out the specifics of how everything runs, after that it all seems to make sense and is very easy to use, but also powerful which is a sweet combination once you figure out how to use it.
I am still very knew to the whole thing though, and it is exciting learning as much as I can about it. One thing that I have not found much of a tutorial for is the GUI builder. It seems perfect for a couple of small projects that I want to start on with the limited knowledge I have, however I haven't been able to figure out the details of it all.
Basically, how do you make it all work haha (noob question I know) --- I can get all the buttons placed and I know what I want them all to do, but have not been able to figure out how to get into the scripting and add functions and all that.
Basically, the simplest one would be I want to have a button there with a name, when you click on the button you will then be prompted to enter a dollar value which will be stored to later perform a mathematical equation on.
Simple enough, but I'm a noob just trying to teach myself so any help would be great. --- edit - I have been thinking that it seems like it would be almost easier to just have button objects and just create the menu in the scene editor, but maybe I just haven't figured out the GUI builder yet. Is there any pre-built GUI art resources that I could just download and go with, or is the GUI builder definitely the best route?
I am still very knew to the whole thing though, and it is exciting learning as much as I can about it. One thing that I have not found much of a tutorial for is the GUI builder. It seems perfect for a couple of small projects that I want to start on with the limited knowledge I have, however I haven't been able to figure out the details of it all.
Basically, how do you make it all work haha (noob question I know) --- I can get all the buttons placed and I know what I want them all to do, but have not been able to figure out how to get into the scripting and add functions and all that.
Basically, the simplest one would be I want to have a button there with a name, when you click on the button you will then be prompted to enter a dollar value which will be stored to later perform a mathematical equation on.
Simple enough, but I'm a noob just trying to teach myself so any help would be great. --- edit - I have been thinking that it seems like it would be almost easier to just have button objects and just create the menu in the scene editor, but maybe I just haven't figured out the GUI builder yet. Is there any pre-built GUI art resources that I could just download and go with, or is the GUI builder definitely the best route?
#2
First things first, did you see any errors in the console log about that file?( hit the "~" key when the game is running ). Can you post your .gui code in here?
Also, you might have better luck posting this in the T2D ( aka Torque Game Builder ) forums.
04/06/2011 (10:11 pm)
Hey Ben. Keep you chin up...we all started out the same way. I spent my first month getting a triangle to rotate in DirectX 5 ( in my defense, setting up DirectX was really hard back then ).First things first, did you see any errors in the console log about that file?( hit the "~" key when the game is running ). Can you post your .gui code in here?
Also, you might have better luck posting this in the T2D ( aka Torque Game Builder ) forums.
#3
Welcome to this forum. I thought this is the best place for the sharing information about networking.
04/17/2011 (1:08 pm)
Hi BenWelcome to this forum. I thought this is the best place for the sharing information about networking.
Torque Owner Ben Polzin
Call me stupid, but I cannot get my game to reference my custom GUI. I have added the
exec("~/gui/guiNewGui.gui");
line to the initializeProject() function in main.cs. The exec call for the main GUI is there, so I have tried putting my GUI before it, after it, and replacing the mainGUI call entirely and none of the above seem to work.
the "note:" says it will be in the drop down list of the gui builder next time you load the project, but it is not there until I manually load the gui. Once that happens both my gui and the main gui are on the drop down list, but not until then.
I use torsion for all of my scripting, please any help would be appreciated. It is frustrating not even being able to get the most simple steps to work properly, but I want to learn.