Unable to instantiate non-conobject class guiT2DObjectCtrl
by anycast · in Torque Game Builder · 09/25/2008 (5:24 am) · 0 replies
Hi all,
I'm trying to build a GUI with T2DObjects and the T2DObjectCtrl seemed to be exactly what I needed.
My GUI file is:
%guiContent = new GuiControl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapCtrl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "295 196";
Extent = "216 128";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
bitmap = "~/data/images/sprite.png";
wrap = "0";
new guiT2DObjectCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "43 50";
Extent = "140 30";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
renderMargin = "0";
sceneObject = "countingButton";
};
};
};
I then do an exec("~/gui/alex.gui"); on game.cs and I get:
"game/gui/alex.gui (0): Unable to instantiate non-conobject class guiT2DObjectCtrl."
I've googled around and one of the reasons this might be happening is because guiT2DObjectCtrl is not defined on the engine... but this doesn't make any sense since I'm not using a custom built engine (I'm using the trial version).
Can anyone shed some light on this?
Thanks,
Alex
I'm trying to build a GUI with T2DObjects and the T2DObjectCtrl seemed to be exactly what I needed.
My GUI file is:
%guiContent = new GuiControl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapCtrl() {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "295 196";
Extent = "216 128";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
bitmap = "~/data/images/sprite.png";
wrap = "0";
new guiT2DObjectCtrl() {
canSaveDynamicFields = "0";
isContainer = "0";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "43 50";
Extent = "140 30";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
renderMargin = "0";
sceneObject = "countingButton";
};
};
};
I then do an exec("~/gui/alex.gui"); on game.cs and I get:
"game/gui/alex.gui (0): Unable to instantiate non-conobject class guiT2DObjectCtrl."
I've googled around and one of the reasons this might be happening is because guiT2DObjectCtrl is not defined on the engine... but this doesn't make any sense since I'm not using a custom built engine (I'm using the trial version).
Can anyone shed some light on this?
Thanks,
Alex
About the author