Skip to content

14237 Fix Symbolic Dice Button atomic undo#14386

Open
rlament wants to merge 1 commit intovassalengine:release-3.7from
rlament:14266-symbolic-dice-undo
Open

14237 Fix Symbolic Dice Button atomic undo#14386
rlament wants to merge 1 commit intovassalengine:release-3.7from
rlament:14266-symbolic-dice-undo

Conversation

@rlament
Copy link
Copy Markdown
Contributor

@rlament rlament commented Dec 8, 2025

Expanded ShowResults command to include the previous roll(s) using the ChangePropertyCommand as an example. Despite the addition, ShowResults remains backward compatible. Including the previous roll(s) in the command allows remote undo during online play. The parameter list and member variables of the ShowResults command follow the ChangePropertyCommand convention.

Made the construction of SpecialDiceButton class a litle bit more object oriented no longer requiring a special constructor to by-pass base class initialization. Added the prepareActionsCommand() function as a precursor to doActions() permitting child classes to perform custom setup. Deprecated the DR() function at the same time making it an empty function.

Tested pre/post commands with looping for online, standalone and log playback.

For proper update of dice properties during online play, PR #14382 is required.

Closes #14237

Expand ShowResults command to include old (previous) values
similar to ChangePropertyCommand implementation to sync
undo operations by the remote end in online play.
Add prepareActionsCommand() function which is invoked as
an initialization function by doActions().
@uckelman uckelman added the bug Something isn't working label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants