GUI Editor and Main.cs
by LF · in Torque Game Engine · 08/16/2004 (11:50 am) · 3 replies
Well, purchased torque sdk few days ago, and try to do something...
Now im trying just to display a GUI created by me just that...
I've changed the file main.cs on example folder to:
---> $defaultGame = "mytestfolder";
Only that...
Inside my folder i have:
main.cs
default.cs
I copy the files above from "show" folder... and changed main.cs to:
function initShow()
{
$showAutoDetail = false;
exec("~/ui/mainmenu.gui");
// exec("~/cscripts/show.bind.cs");
}
i just change the comands above...
the file mainmenu.gui exists, but when i run the engine... the error:
"GuiControlProfile: unable to find specified profile (Guidefaultprofile) and guidefaultprofile does not exists"
My question is:
What files i need to just load a gui created by me... only that... and what i must have inside the files?
Sorry for this stupid question, but im perfect newbie with torque.
Thanks
Luiz Fernando (Brasil)
Now im trying just to display a GUI created by me just that...
I've changed the file main.cs on example folder to:
---> $defaultGame = "mytestfolder";
Only that...
Inside my folder i have:
main.cs
default.cs
I copy the files above from "show" folder... and changed main.cs to:
function initShow()
{
$showAutoDetail = false;
exec("~/ui/mainmenu.gui");
// exec("~/cscripts/show.bind.cs");
}
i just change the comands above...
the file mainmenu.gui exists, but when i run the engine... the error:
"GuiControlProfile: unable to find specified profile (Guidefaultprofile) and guidefaultprofile does not exists"
My question is:
What files i need to just load a gui created by me... only that... and what i must have inside the files?
Sorry for this stupid question, but im perfect newbie with torque.
Thanks
Luiz Fernando (Brasil)
About the author
#2
Warning: (d:\torque\engine\gui\guitypes.cc @ 293) GuiControlProfile: requested gui profile (GuiDefaultProfile) does not exist.
I dunno what do :(
Thanks
08/17/2004 (6:57 am)
Nop Eustacia... the error keep's stoping the project... see:Warning: (d:\torque\engine\gui\guitypes.cc @ 293) GuiControlProfile: requested gui profile (GuiDefaultProfile) does not exist.
I dunno what do :(
Thanks
#3
Also double check that there is code similar to this:
in the defaultProfiles.cs file.
If I remember correctly the code looks first for the profile you specified on the control then for one named "GuiDefaultProfile" if it can't find the first.
08/17/2004 (7:29 am)
You need to add exec("~/ui/defaultProfiles.cs"); before any exec's for gui's.Also double check that there is code similar to this:
if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
{
tab = false;
canKeyFocus = false;
hasBitmapArray = false;
mouseOverSelected = false;
// fill color
...in the defaultProfiles.cs file.
If I remember correctly the code looks first for the profile you specified on the control then for one named "GuiDefaultProfile" if it can't find the first.
Torque Owner Eustacia Green
Try copying the defaultProfiles.cs to your new directory and see if that fixes your issues.