How Torque programming flow organization?
by james mathw · in Technical Issues · 06/17/2011 (12:09 am) · 8 replies
Hi friend Please see the code as below:
new GuiChunkedBitmapCtrl(MenuScreen)
{
profile = "GuiContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./interfaces/emaga_background";
groupNum = "-1";
buttonType = "PushButton";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "29 237";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "LaunchGame();";
helpTag = "0";
text = "Start Game";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "29 291";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "Canvas.pushDialog(SetupScreen);";
helpTag = "0";
text = "Setup";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "29 434";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "Quit();";
helpTag = "0";
text = "Quit";
groupNum = "-1";
buttonType = "PushButton";
};
};
//--- OBJECT WRITE END ---
the codes was experts from a book,I read the codes many times, over and over again,I start think a more important problem,How to run this code as appropriate usefull,I don't understand the programm flow of Torque,I remember when I use C++,I just run programm in main.cpp file and in main function,but how to let Toque run programm?
new GuiChunkedBitmapCtrl(MenuScreen)
{
profile = "GuiContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./interfaces/emaga_background";
groupNum = "-1";
buttonType = "PushButton";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "29 237";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "LaunchGame();";
helpTag = "0";
text = "Start Game";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "29 291";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "Canvas.pushDialog(SetupScreen);";
helpTag = "0";
text = "Setup";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "29 434";
extent = "110 20";
minExtent = "8 8";
visible = "1";
command = "Quit();";
helpTag = "0";
text = "Quit";
groupNum = "-1";
buttonType = "PushButton";
};
};
//--- OBJECT WRITE END ---
the codes was experts from a book,I read the codes many times, over and over again,I start think a more important problem,How to run this code as appropriate usefull,I don't understand the programm flow of Torque,I remember when I use C++,I just run programm in main.cpp file and in main function,but how to let Toque run programm?
About the author
#2
2.I forget the book's title .
3,I think GUI is same than Cs file only extention diffrent.
06/17/2011 (8:22 am)
1.It's an Old Engine but I don't remember is which version.2.I forget the book's title .
3,I think GUI is same than Cs file only extention diffrent.
#3
06/17/2011 (9:54 am)
We can't help if we do not know 1 or 2. Torque engines have changed and the flow has changed with it.
#4
06/17/2011 (11:05 am)
Thanks.the Engine is an out-of-date guy,is v.1.2 .you say flow has changed is you mean usage of every version Torque is different?maybe this is not a important point,I just need know how to control a programm. only information I need get is the programm flow of torque v.1.2?
#5
06/17/2011 (11:23 am)
Then you are talking about TGE. You will find some great information on the flow in the TGE Documentation. It covers scripting and demo flow.
#6
06/17/2011 (12:50 pm)
Thanks micheal for your link,but sorry I don't know which part of documentaion describe the programm flow?give me a extra link thanks!
#7
06/17/2011 (12:58 pm)
Start at the top, read through the bottom. The info is there.
#8
06/18/2011 (2:36 am)
thanks mich I will understand it.
Employee Michael Perry
ZombieShortbus
2. What book?
3. Do you understand what a GUI is?