GUICanvas Crashes Torque
by Cinder Games · in Torque Game Engine · 07/16/2005 (4:28 pm) · 4 replies
Title says most of it. I can create a new GUI..... try adding a GUICanvas... and torque dies. I've tested this with a fresh install.
last few entried in my cosole log.
i just tried to add a new guicanvas on the main menu.
Engine initialized... *** Load Main Menu Set::getObject index out of range.
last few entried in my cosole log.
i just tried to add a new guicanvas on the main menu.
#2
07/16/2005 (4:54 pm)
Well, i was just messing around in the GUI menus :) didn't know why it was crashing.
#3
Of course, I'm just now really getting into GUI work, so I could be way off base on all of this, but it seems to me to be the most logical cause.
07/16/2005 (4:59 pm)
I believe it may be crashing because the Canvas is the root of the GUI element tree, everything else needs to be added to it, I also don't believe you can add a Canvas to the already existing one, thereby producing 2 or canvases.Of course, I'm just now really getting into GUI work, so I could be way off base on all of this, but it seems to me to be the most logical cause.
#4
07/16/2005 (5:00 pm)
Yeah, i'm just starting to mess with GUIs.... i got a nice wait meter! using some code i made. basically it's resizing a GUI based on the status of a timer.
Torque Owner Dreamer
Default Studio Name
If I understand everything correctly, your canvas is the root of the gui element tree.
Therefore, there should never be a need to add another.
Post the code where you are adding a new canvas, and lets see if we can't work this through.
p.s. It would be helpful to know exactly what you are trying to accomplish, to see if maybe there isn't a better way.