Test for set_menu_item?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- Spannerbag
- Posts: 759
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Test for set_menu_item?
Hi,
I've got some working code but it recreates (overwrites) an existing menu item at the start of each scenario.
Whilst this all works I was wondering if there was a test for the existence or not of a menu item with a specific id?
Sort of a
No big deal, just curious.
WML solution preferred if possible but lua fine also.
Cheers!
-- Spannerbag
I've got some working code but it recreates (overwrites) an existing menu item at the start of each scenario.
Whilst this all works I was wondering if there was a test for the existence or not of a menu item with a specific id?
Sort of a
[have_unit]
equivalent for menu items.No big deal, just curious.
WML solution preferred if possible but lua fine also.
Cheers!
-- Spannerbag
Re: Test for set_menu_item?
Technically you can proxy calls that create menu items and store your own db of them. But dont see why you would need the list anyways.
- Spannerbag
- Posts: 759
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: Test for set_menu_item?
Thanks for the advice - since posting this have had an idea (another rabbit hole to explore

Cheers!
-- Spannerbag