Game Development Community

Options screen

by Sean Richards · in Torque Game Engine · 04/20/2006 (4:25 pm) · 2 replies

Ok, I know this is going to sound silly but. I was playing around and trying to figure out how to get my options button to bring up my options gui. I however, don't know the command. I was wondering if I could get some insight on this.

[code]
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(MainMenuGui) {
Profile = "GuiContentProfile";
HorizSizing = "width";
VertSizing = "height";
position = "0 0";
Extent = "640 480";
MinExtent = "8 8";
Visible = "1";
bitmap = "./gameonebg";
useVariable = "0";
tile = "0";
helpTag = "0";

new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "100 164";
Extent = "140 28";
MinExtent = "8 2";
Visible = "1";
Command = "loadMyMission();";
text = "Start";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "440 164";
Extent = "140 28";
MinExtent = "8 2";
Visible = "1";
Command = "quit();";
text = "Quit";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "100 280";
Extent = "140 29";
MinExtent = "8 2";
Visible = "1";
text = "Options";
groupNum = "-1";
buttonType = "PushButton";
};
new GuiButtonCtrl() {
Profile = "GuiButtonProfile";
HorizSizing = "relative";
VertSizing = "relative";
position = "440 281";
Extent = "140 28";
MinExtent = "8 2";
Visible = "1";
text = "About";
groupNum = "-1";
buttonType = "PushButton";
};
[\code]

#1
04/20/2006 (4:25 pm)
Canvas.pushDialog(optionsDlg);
Canvas.popDialog(optionsDlg);

One of those, both of those, I forgot how dialogues worked.
#2
04/20/2006 (8:04 pm)
Canvas.pushDialog(optionsDlg);

It's the pushDialog because of the type of button I'm using.

P.S.

Thanks for the information.