Options for changing game piece backgrounds during a game?

Perhaps, if I read what you are after correctly, something like

  • BasicTrait with a transparent layer
  • PrototypeTrait for background/faction/nationality
  • PrototypeTrait for unit type/NATO symbol
  • LabelTrait(s) for unit ID, parent ID, etc.
  • LabelTrait(s) for unit factors, etc.

The the background prototypes could be

  • LayerTrait holding a single image of the appropriate colour

and the unit type prototypes could be

  • LayerTrait hold a single, semi-transparent, image of the NATO symbol

Thus, to build a German infantry corps unit with factors 4-3, you would have

  • BasicTrait
  • MarkTrait with name 'CF, value 4`
  • MarkTrait with name MF value 3
  • MarkTrait with name UniqueID valule 'XXIV`
  • MarkTrait with name ParentID value S
  • PrototypeTrait - with name German
  • PrototypeTrait - with name infantry corps
  • LabelTrait with text {CF+"-"+MF} placed at the bottom
  • LabelTrait with text {UniqueID} placed to the right, and rotated
  • LabelTrait with text {ParentID} placed to the left and rotated

In fact, the last three traits could be put into a Prototype that would be used in all units, and configured for each unit by MarkTrait.

In fact, one could make the CF, MF traits CalculatedPropertyTrait so that the displayed values depends on some other state - for example a step reduction or similar.

Just an idea.

Yours,
Christian