Game Development Community

Gui Package

by Xavier "eXoDuS" Amado · in Torque Game Engine · 05/16/2002 (8:43 am) · 4 replies

Is it possible to include a gui inside a package? or what about exec() commands inside a package?
I tried both with something like:

package dm {
exec("myscript.gui");
};

but when i compiled the script it complained about an error in the first " and if i used a Gui it complained in the first G (of GuiControl)...
So, how can i make the gui be package dependant..?

#1
05/16/2002 (10:06 am)
Packages only work for functions if I remember correctly.
#2
05/16/2002 (10:08 am)
damn, packages seem to work on functions only, nothing else, why not extend packages to work with guis and other commands too? This would be useful:

package DM {
DM::onWake {
exec("blah.cs");
}
};
#3
05/16/2002 (10:26 am)
why not use a function...

package (blah)
{
function initpackageinterface()
{
exec("thispackagegui");
}
}
#4
05/16/2002 (11:18 am)
mmm... yes mite be a good idea