Accessing Events of Widget Blueprint Button

Question

What do I need to do to access the button events of my custom widget blueprint (Main Menu Button) inside the Main Menu Widget?

What I want

I want to have a Main Menu Button Widget that defines the appearance of the buttons (of the main menu),
while the logic should be defined inside my main menu widget.

Implementation

So that the appearance of all the buttons look the same,
I created a widget blueprint:

But when I now add a main menu button to the main menu,
I can’t access the button events:

Additional Notes

The text is set up as a variable:

Create Event Dispatchers in the custom button and have the button click call it.

  • native button click calls a dispatcher:

  • parent catches it:

1 Like