Author Topic: Button on PlayGUI can't be pressed  (Read 965 times)

Whenever I try to playGUI.add("CM_HUD"); the HUD containing the BitmapButton to the playGUI, it shows up and everything operates as it should except for that button, or any button on my HUD.  I try to press them by unlocking my mouse (M) and clicking it, but nothing happens.  No animation of pressing the button, nor the command, echo("1"); is executed.

I've seen others do the same thing, working of course.  What could I be doing wrong?

I think it has something to do with the chat.
Try adding the button with the chat as a parent.

I think it has something to do with the chat.
Try adding the button with the chat as a parent.
Don't do that. You don't need to.

I think you just need to put in a GUI swatch control and use that as the button's parent.

Don't do that. You don't need to.

I think you just need to put in a GUI swatch control and use that as the button's parent.

I like how you tell him not to do what Chrono said, then say you 'think' adding a swatch will work.

Chrono's way will work:

newChatHud.add(yourObject);

It's how I did the client in Land of Blocks.

I'm pretty sure you're the one who told me about that elm, either you or Trigun. I forget.

Yep.  I attached my HUD to newChatHUD and it worked perfectly, thanks.  :)