Game Development Community

PlayGui - objects don't display in editor

by Justin Tolchin · in RTS Starter Kit · 02/14/2005 (4:32 pm) · 4 replies

Hi, just wondering if this is a bug or something screwed up on my system. When I bring up the GUI editor by pressing F10, and select the PlayGui, I just see a green background. None of the actual gui elements draw themselves (they draw fine in the game demo itself). I can select any object and I see its selection "grid", I can move it around or resize it, and I can edit all the values for it, but nothing draws at all. I've tried using the "Bring To Front" option on various objects but it has no effect.

This makes it *very* difficult to change the layout (I was trying to use it as a template for my GUI). Is there something unusual about PlayGui? The other GUI's ("LobbyGui", etc.) display just fine.

Thanks!

P.S. I am running on Windows XP if that matters.

#1
02/15/2005 (3:28 pm)
Ummm.. could anyone else at least confirm that they're seeing this problem too? I'm wondering if it's just me.

Thanks!
#2
02/15/2005 (4:33 pm)
What you are running into is the fact that the PlayGui is actually "live"--it renders the scene even as you are editing the gui elements within the scene. The problem is, when you start up the gui editor, and select the PlayGui without having a mission already loaded, there is no scene, and therefore nothing to render.

Try starting up a mission first, and entering the game, and then starting the gui editor--you'll find everything rendered this time, and you should be able to edit the gui's much more easily.
#3
02/16/2005 (10:09 am)
Doh! Why didn't I think of that! Thanks, Stephen! That worked great. Now I feel silly... :-) Although it still seems a little strange to me that the buttons don't render regardless of whether I'm in a mission or not. But whatever! I'm happy.
#4
02/19/2005 (4:03 pm)
They do render... But the GuiTSCtrl, lacking a mission, is probably drawing garbage.