I’m trying to implement a Context Menu UI element which will be opened on
gameobjectup, when certain game object is clicked. I want to pass some data into it, spawn it relatively to x and y of my game object (call it
ObjectClicked) and close on some conditions (mouse click away, “Close” button clicked etc.).
Here’s prototype design:
Which APIs of Phaser could you recommend to create something like that?
Group? I guess it should contain a
text and some kind of list of buttons.
Maybe you could also recommend a few good tutorials on this topic?