Linking a Window to a Counter

I have a module where players select counters representing combat vehicles from a common palette, and then battle them against one another. The status of each vehicle is tracked in a Private Window, where a diagram of the vehicle is kept, and counters are used to track damage to vehicle systems. Each player gets their own Private Window, each of which is viewable by other players (but just viewable, no manipulation).

Right now, there is a toolbar menu that organizes all the players’ Private Windows into a common menu. If you want to view your own or someone else’s status window, you simply pick the player off the menu (Player 1 Status, Player 2 Status, etc).

However, for convenience, what I’d like to do is have the status window be displayed simply by right-clicking on a selected vehicle counter instead of going to the menu. You should be able to do this for your own or for anyone else’s vehicle.

Any thoughts on how this might be accomplished? I have another module in the works that would make handy use of the same feature.

Give each window its own unique hotkey
Give the counters a Global hotkey trait with matching Global hotkey for each
window you wish to open and some menu textr so it shows up in the right
click for selection on the piece

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of mycenae
Sent: Monday, August 02, 2010 1:35 AM
To: messages@vassalengine.org
Subject: [messages] [Module Design] Linking a Window to a Counter

I have a module where players select counters representing combat
vehicles from a common palette, and then battle them against one
another. The status of each vehicle is tracked in a Private Window,
where a diagram of the vehicle is kept, and counters are used to track
damage to vehicle systems. Each player gets their own Private Window,
each of which is viewable by other players (but just viewable, no
manipulation).

Right now, there is a toolbar menu that organizes all the players’
Private Windows into a common menu. If you want to view your own or
someone else’s status window, you simply pick the player off the menu
(Player 1 Status, Player 2 Status, etc).

However, for convenience, what I’d like to do is have the status window
be displayed simply by right-clicking on a selected vehicle counter
instead of going to the menu. You should be able to do this for your
own or for anyone else’s vehicle.

Any thoughts on how this might be accomplished? I have another module in
the works that would make handy use of the same feature.


Read this topic online here:
https://forum.vassalengine.org/t/linking-a-window-to-a-counter/3148/1