I just started using PGM today and couldn’t find an example for it.
How do I update the onClick lambda? I see there is a drop menu to select from in the same way you can select a background image, but how do I get my onClick code in there?
Ok so I found what I needed in PlayerExample… Should’ve paid more attention.
I’m glad you solved it.
FTR: The GUI has indeed no way for programmatic content like scripting.
So adding a trigger lambda to the MagicState is the way to go. That will then be exposed to the TextButton and future components that might want to trigger actions.