Create account / Log in

Multi-Action Button - conditional & display enhancement

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

Multi-Action Button - conditional & display enhancement

Postby marktb1961 » April 5th, 2021, 3:07 pm

Multi-Action buttons are great but I think this would make them bit smarter...

If the MA button comprises a sequence of GKCs that should either execute or not then I must put the exclusion condition on each GKC. Each GKC adding to the maintenance and execution overhead of the MA Button.

My suggestion is a Beanshell expression in the MA button that turns it on or off.

Ideally, the button image and text should simply "grey out" if the beanshell expression evaluates to the "off" value - just like Hand Window buttons do when the Hand Window is forbidden to the PlayerSide. Alternatively, the MA button might allow an "off" image to be specified, similar to how LoS has two images.
Platform: Vassal 3.5.8, MacOS Big Sur on iMac (27", mid-2020)
User avatar
Posts: 631
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests