Why won't GUI editor come up
by Anthony Rosenbaum · in Torque Game Engine · 08/15/2001 (8:50 am) · 6 replies
When I click on F10 the screen acts like something happens. . it get highlighted. . . I can adjust the sizes of the pre existing buttons (they won't save) but no actual tool/editor comes up. Someone said, in one of these post, that a box appears at bottom to choose which level to work on and that there is a subtree . . . but NONE of those are on my DISPLAY why!?!?!?! Help, this is driving me nuts. I had noticed something was funny when I got the v12 (but since this is my 1st time making a game I didn't pay much attention) but it was when I was doing a .gui tutorial that I realized that I'm stuck. I've been though all the forums, all the documentation, am I missing a file?!?! HELP
Anthony
Anthony
About the author
#3
For example, if you look at ...GarageGames\v12\GizExMod\client\ui\aboutDlg.gui you'll find this code at the bottom:
function aboutDlg::onWake(%this)
{
%text="V12 Engine Test Application ( v1.0.0 )\n"@
""@ getCompileTimeString() @", "@ getBuildString() @"Build\n\n"@
"Copyright (c) 2001 GarageGames.Com\n"@
"Portions Copyright (c) 2001 by Sierra Online, Inc.\n\n"@
"";
aboutText.setText(%text);
}
function aboutText::onURL(%this, %url)
{
echo(%this);
echo(%url);
gotoWebPage( %url );
}
Very interesting stuff: you can use the syntax to add an image onto a V12 string object, not to mention the syntax which when combined with the guiobj::onURL method allows you to add the code that launches a browser.
08/15/2001 (5:43 pm)
Here's something to understand about the GUI editor. It is really only a quick start tool, letting you get a series of widgets created. The produced .gui file is really just another script file, and you can open it with your preferred code editor and modify it, which you'll need to do in many cases.For example, if you look at ...GarageGames\v12\GizExMod\client\ui\aboutDlg.gui you'll find this code at the bottom:
function aboutDlg::onWake(%this)
{
%text="
"
"
"Portions Copyright (c) 2001 by Sierra Online, Inc.\n\n"@
"
aboutText.setText(%text);
}
function aboutText::onURL(%this, %url)
{
echo(%this);
echo(%url);
gotoWebPage( %url );
}
Very interesting stuff: you can use the
#4
08/15/2001 (8:08 pm)
If I remember right... the bitmap tag and others will only work with the GuiMLTextCtrl object
#5
08/16/2001 (8:42 pm)
How exactly do I access the GUI? Do I press f10 on the v12test?
#6
08/17/2001 (9:19 am)
F10 opens the gui editor, F11 the mission editor. You can only run the mission editor while in a mission.
Torque Owner Harold "LabRat" Brown
Look in your base\prefs\clientprefs.cs file.
Look for the two lines that control resolution:
$pref::Video::resolution = "xxx yyy zz";
$pref::Editor::screenResolution = "xxx yyy zz";
Change them to read at least:
"800 600 16" - 16-bit color
Or
"800 600 32" - 32-bit color
If they are at 800 600.... I'm at a loss