Create account / Log in

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

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

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

Postby Juuso » January 16th, 2012, 7:23 am

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.
Juuso
 
Posts: 30
Joined: January 21st, 2010, 3:33 pm

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

Postby Tim M » January 16th, 2012, 12:07 pm

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
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth

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

Postby DrNostromo » January 16th, 2012, 3:50 pm

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.
User avatar
DrNostromo
 
Posts: 1036
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

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

Postby samuelw3 » April 23rd, 2013, 3:40 pm

Is there a module I could reference which includes an example of this score table?
samuelw3
 
Posts: 46
Joined: August 31st, 2011, 5:34 pm
Location: Columbus OH


Return to Module Design

Who is online

Users browsing this forum: No registered users and 0 guests

cron