How do I implement a many-to-one relationship in my UI?

So, I’ve got this widget for selecting challenges. One half of the panel is a scrollbox containing an arbitrary number of ‘challenge buttons’ custom widgets. The other half contains info about the currently selected challenge. So when a button is pushed on the left, its relevant info is displayed on the right.

I had assumed that Event Dispatchers could be used here, but my implementation fails to update the UI elements.

What is the correct way to implement this many-to-one relationship?

your idea is fine, its likely just a bad reference (IsChallengeRefValid) or bad order problem (Does it bind after already being called).

it might be easy to centralize it all, the buttons call events on its parent (challenge menu) and the info binds to the challenge menu events) otherwise you have to bind to each button

Does the reference have to be to specific instances (I.E. do I have to bind the event to each and every button in like, a for loop?) I was under the impression you didn’t have to store references with EDs but I think thats incorrect.

This seems to work.

Weird that it needs to be done this way, I was hoping you didn’t have to tell the listener everything it had to listen to.