Replies: 3 comments 2 replies
-
There is a function in the you can get the current active menupage of an flxmenu with so something like var menu = new FlxMenu(...);
menu.createpage(....);
menu.open(); // <--- makes sure mpActive is populated, else it is null
menu.mpActive.item_moveCursorTo('bar'); // <-- focus the item with id `bar` At one point I think I had the option to have a menuPage always focus a custom menuitem once it opens. But I removed it :-/, Also currently I don't have a running haxe toolset to check this, but this should be it I think. Are you planning on using this when a menu page comes in and it needs to point to another element, or is it changing the focused item in real time? |
Beta Was this translation helpful? Give feedback.
-
I'm thinking of making a special markup verb for when creating items, something like |
Beta Was this translation helpful? Give feedback.
-
Have a look at this : #28 I chose to use the abbreviated |
Beta Was this translation helpful? Give feedback.
-
When I create a menu it looks like this:
Let say want a selection cursor to be on "bar":
How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions