Calculated Properties and Global Properties

I have been trying to implement a quality of life feature (see below) to gray out a “Group Block” if that block is already in use (i.e., on Main Map).

I tried defining a Global Property (to disable the Key Command), but it needs to be checked in real time. Thus I attempted to set it using the Calculated Property trait. Which didn’t work… Set Global isn’t ideal, since I don’t have any way to trigger it when people open the menu to see the available Key Commands.

Reviewing documentation, it appears that Calculated Properties are “Piece Properties” (only)…

I don’t currently see any obvious way to do this, but I see 2 possible feature requests come out of this…

  1. Define a new “Calculate Global Property” capability
  2. Add a new capability to the existing “Toolbar menu” that allows for definition of an optional keycommand to trigger when the menu is clicked

Thoughts/Suggestions?

Can’t you set a Global Property by the same actions that put the Block into use (and vice versa) ?

The GP could then control the Group Block greying ?

I assume that “Group Block” is some button that you want to disable with a Property, is that right ?

Nope.

There are 8 group maps each with its own group block. I have a global key command to Open each group map, these are collected into a toolbar menu.

Each group block gets manually dragged from it’s unique map to the main map when needed. The original group map is then used to house a whole bunch of other units (e.g., 10 infantry blocks, 4 armor blocks).

Currently to find a unused group, you either have to scan the entire map or open up each group until you find a unused one.

What I want to happen is:
Someone clicks on the toolbar menu to view the 8 groups. In use groups are greyed out (i.e., the open key command is disabled), while unused groups are not greyed out.

You should be able to use a “Key Command to trigger when a piece ends it movement on this map” on the main map, combined with a Set Global Property trait on the group blocks, to set a GP when the group block is dropped on the main map.

1 Like

JR - I tried this and got it to work… Thanks much for the help!