Create account / Log in

Feature implemention suggestion (New to Vassal)_

Topics related to the main Vassal engine.

Moderators: Tim M, uckelman

Feature implemention suggestion (New to Vassal)_

Postby msward1 » July 25th, 2015, 8:17 pm

I'd like to add a feature to groups of pieces (based on a piece property) to either set a layer (not preferred) or add a mask when a certain state is set (or not) say a global property. Although this would required a dozen different properties (one for each group).
And maybe have a single piece in that group have the ability to set the property (apply the mask to all pieces in the group).
Hope this makes sense.
Any suggestions where to start, how best to implement this?
msward1
 
Posts: 23
Joined: July 23rd, 2015, 4:03 pm

Re: Feature implemention suggestion (New to Vassal)_

Postby uckelman » July 30th, 2015, 7:18 pm

Thus spake msward1:
> I'd like to add a feature to groups of pieces (based on a piece
> property) to either set a layer (not preferred) or add a mask when a
> certain state is set (or not) say a global property. Although this would
> required a dozen different properties (one for each group).
> And maybe have a single piece in that group have the ability to set the
> property (apply the mask to all pieces in the group).
> Hope this makes sense.
> Any suggestions where to start, how best to implement this?
>

If you describe more concretely what you're trying to accomplish,
you're more likely to get a reply.

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8193
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Feature implemention suggestion (New to Vassal)_

Postby msward1 » July 30th, 2015, 11:19 pm

I have a formation, say 10 counters.
Until their HQ unit arrives on the map the values on each counter of the formation are reduced.

What I was think is have a global property for the formation. Set its starting value at 0, the HQ is not on the map. When the HQ arrives the property for that formation increments.
There are a number of formations each with HQs arriving at different times.

So the units of the formation have a mask when the global property for their formation is 0 and no mask when 1.
The is maybe a flag (like the counter moved icon) or a circle around the counters values.

Make sence?
msward1
 
Posts: 23
Joined: July 23rd, 2015, 4:03 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests