Group events

  • 2 Replies
  • 121 Views
Group events
« on: 24 September 2021, 09:56:42 »
Hello, I have a problem with the group event management.

I used to do guiGroup->handleEvent(event); in the previous version of tgui, but now handleEvent is no more present.

How do I manage all possible events with 0.9?

Thanks

*

texus

  • *****
  • 1631
    • View Profile
    • Texus's Blog
Re: Group events
« Reply #1 on: 24 September 2021, 12:24:16 »
That function was never intended to be used directly in previous versions of tgui.
If your group is part of the gui then gui.handleEvent should pass the event to the correct group.
In what scenario do you think you need to pass the event to the group directly?

Re: Group events
« Reply #2 on: 01 October 2021, 12:00:35 »
Thanks, that solved my problem.