Any way to implement a table (scoreboard) in vassal?

Hi,

would be interested if there is any way to add an empty scoreboard as a map window and have some way to make there certain fields players could fill (e.g. scores from territory per player, scores from discovery etc.). It would be also nice if there could be some automatic summin up of scores from different fields.

See the b17 module - it has something similar with fillable charts

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of Juuso
Sent: Monday, January 16, 2012 1:23 AM
To: messages@vassalengine.org
Subject: [messages] [Module Design] Any way to implement a table
(scoreboard) in vassal?

Hi,

would be interested if there is any way to add an empty scoreboard as a map
window and have some way to make there certain fields players could fill
(e.g. scores from territory per player, scores from discovery etc.). It
would be also nice if there could be some automatic summin up of scores from
different fields.


Read this topic online here:
https://forum.vassalengine.org/t/any-way-to-implement-a-table-scoreboard-in-vassal/4589/1

Interactive tables are fairly easy to build - I use them extensively - but you have to build them from scratch.

First you create a table graphic.

Each entry on the table would be created as an At-Start stack with a Text Label trait displaying the value of a Global Property and triggers to adjust it. You can then add smaller adjustment graphics like an up arrow, down arrow to increase/decrease the value or skip the buttons and just right click the piece displaying the value.

For sums, do the same thing but have a way to trigger the sum display to re-total every time the individual values are adjusted with a Set Global Property of something like:

Set value directly to {A+B+C+D}, if if your using Vassal 3.2.

If you’re still using 3.1, then it will be more complicated as you’ll have to find a way to reset the sum value to zero and then increment the value by each individual value. You could try to set it up so that the sum increases/decreases every time one of the individual values is changed rather then resetting it and adding everything together but you have to be careful with this method. If the sum value and the total of all the individual values gets out of synch, they’ll remain that way.

Is there a module I could reference which includes an example of this score table?