I am design a module and the module has some terrain markers that I would like show and hide when press a button. this is hide the terrain markets only but show the units over the map. Can you tell me the best way to include this function?
You define a property - say PieceLayer in each piece (prototype) you want to control. This is most easily done with a Marker trait. This then takes different values for different kinds of pieces - e.g.,
Prototype: TerrainTile
Mark trait:
name: PieceLayer
value: Terrain
Prototype: Unit
Mark trait:
name: PieceLayer
value: Unit
and you then setup the Game Piece Layers with the property PieceLayerand Terrain, Unit, etc. as possible values.
You can add the individual Hotkeys from the controls into a Toolbar Menu to get a single menu with layer controls.