Game Development Community

GuiTextEditCtrl not working when ChatHud onscreen?

by David Wilson · in Torque Game Engine · 01/02/2005 (4:12 pm) · 2 replies

Hello -

I have a screen right before you log in to the server, it is a GuiChunkedBitmapCtrl. On this screen I put the MainChatHud where the player gets information I want them to see before they log in. This info comes client side, as we're not connected yet.

Also on this screen I have a GuiTextEditCtrl, which reads in pref::Player::Name, just like the default we are given except I have a Gui screen instead of a dialog, and I've added the MainChatHud to it.

Whenever the MainChatHud is on the screen, you can't change the text inside the GuiTextEditCtrl. If I go in and disable the MainChatHud, it works fine. If it's enabled, the GuiTextEditCtrl is totally locked out, the text is in there just fine, it's not greyed. But you can't change it.

Can anyone give me a clue here? Because I don't even know where to look for this answer.

Thanks
David

#1
01/02/2005 (7:57 pm)
MainChatHud is usually loaded as a dialog, meaning that it "overlays" the entire screen and captures all events. That's probably what you're running into. I'd suggest combining them all into the same GUI, rather than (the default way which involves) having seperate GUI elements. AS you have probably noticed the default GUI codebase isn't geared towards having the user interact much with the GUI elements onscreen in-game.
#2
01/04/2005 (2:17 pm)
Thanks Ben!