Page 1 of 1

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

PostPosted: January 16th, 2012, 7:23 am
by Juuso
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.

Re: [messages] [Module Design] Any way to implement a table

PostPosted: January 16th, 2012, 12:07 pm
by Tim M
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:
viewtopic.php?p=29565#p29565

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

PostPosted: January 16th, 2012, 3:50 pm
by DrNostromo
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.

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

PostPosted: April 23rd, 2013, 3:40 pm
by samuelw3
Is there a module I could reference which includes an example of this score table?