Making a Re-Shuffle Button?

At this point I’m have become very confused by the Vassal documentation.

So, I have two graphical buttons I’d like to add to my play area that will reshuffle one of two designated decks when each is clicked.

So here’s an example of what I have so far for each of the 2 decks:

A) Deck with Deck Property “Re-Shuffle”:Always (should it be Via right-click menu?) I don’t always want a random selection if a set of cards have been returned in a particular order. I want the deck to be randomized at the beginning of the game.

B) At-Start Stack belonging to board “Play Area”
1) Single Piece in the At-Start Stack
a) Basic Piece Trait assigned a PNG graphic of the button
b) Does not stack Trait - Select Piece: normally; Move piece: never
c) Action Button Trait - Offsets:0; Width & Height: That of PNG file; Invoke Key Command: ?

I’ve read a lot in the guide and saws recent answer her in this forum, but I’m confused on how to proceed. I really need step-by step instructions to continue from this point.

Please?

Never mind.

No one was will ing to help, so I’m trying another route.

Thus spake orionsbell:

At this point I’m have become very confused by the Vassal documentation.

So, I have two graphical buttons I’d like to add to my play area that
will reshuffle one of two designated decks when each is clicked.

So here’s an example of what I have so far for each of the 2 decks:

A) Deck with Deck Property “Re-Shuffle”:Always (should it be Via
right-click menu?) I don’t always want a random selection if a set of
cards have been returned in a particular order. I want the deck to be
randomized at the beginning of the game.

B) At-Start Stack belonging to board “Play Area”
1) Single Piece in the At-Start Stack
a) Basic Piece Trait assigned a PNG graphic of the button
b) Does not stack Trait - Select Piece: normally; Move piece:
never
c) Action Button Trait - Offsets:0; Width & Height: That of PNG
file; Invoke Key Command: ?

I’ve read a lot in the guide and saws recent answer her in this forum,
but I’m confused on how to proceed. I really need step-by step
instructions to continue from this point.

In what way is what you have now failing? Posting the module is a good
way to get someone to take a look.


J.

Yes, if it’s important that card order be maintained within the deck, you should choose Reshuffle via right-click. Reshuffle Always means there is no order maintained–every time something is taken from the deck, it is a random pick from the contents at that moment.

This is not as intuitive as it should be, but you want your Action Button offsets to be negative numbers that are precisely half of the width and height values. Example: A button graphic that is 200 pixels in width and 100 pixels in height would have:

Button X-offset: -100
Button Y-offset: -50

This gives you the outcome of having a clickable area that matches the size of the graphic. Invoke Key Command should be set to whatever you select as the Reshuffle Hot Key of your deck.