AttachGUI is broken. ( TGB 1.5 (not the beta) )
by Joe Rossi · in Torque Game Builder · 07/13/2007 (8:13 pm) · 2 replies
Some guis I wrote for my project rely on the attachgui function to put scenewindows with their own scenegraphs "inside" of sceneobjects. They worked great in the Beta version of TGB 1.5, and versions prior to that.. but now I can't "mount" them to my objects as I was doing. I get a warning:
"t2dSceneObject::updateAttachedGui() - t2dSceneWindow is not attached to my t2dSceneGraph!". I tried everything I could think of so I'm guessing it could be a bug.
Commenting the code below solves my problem, though I'm not exactly sure why.
"t2dSceneObject::updateAttachedGui() - t2dSceneWindow is not attached to my t2dSceneGraph!". I tried everything I could think of so I'm guessing it could be a bug.
Commenting the code below solves my problem, though I'm not exactly sure why.
t2sSceneObject.cc line 6725 or so
// Ignore if we're not in the scene that the scene-window is attached to.
/* if ( getSceneGraph() != mpAttachedGuiSceneWindow->getSceneGraph() )
{
// Warn.
Con::warnf("t2dSceneObject::updateAttachedGui() - t2dSceneWindow is not attached to my t2dSceneGraph!");
// Detach from GUI Control.
detachGui();
// Finish Here.
return;
}
*/
#2
07/14/2007 (9:25 pm)
I have StaticSprites with SceneWindows mounted onto/inside of them. Each SceneWindow has it's own Scenegraph. I use this technique for things like scrolling RPG dialog text, healthbars and some other gui stuff.
Torque 3D Owner Phil Carlisle
Sorry to ask such a weird question, but I'm curious. How exactly do you mean? You have Scenegraphs attached to GUI's which have scenegraphs or something else.
I was trying to visualize what you said and I cant make it out how youve got things setup.