Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module-accessible undo checkpoint #13726

Open
riverwanderer opened this issue Dec 2, 2024 · 0 comments
Open

Module-accessible undo checkpoint #13726

riverwanderer opened this issue Dec 2, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@riverwanderer
Copy link
Collaborator

Create a new hotkey driven component, essentially a simplified Action button or an option on the Action Button, that will disable UnDo beyond the point at which that action is taken. This feature would be of use in module design at certain checkpoints where accidental undos irrevocably compromise the gameflow - typically, when a card is drawn.

A code fragment that might achieve this (taken from GameRefresher.java is:

 {
        final BasicLogger log = GameModule.getGameModule().getBasicLogger();
        if (log != null) {
          log.blockUndo(1);
        }
@riverwanderer riverwanderer added the enhancement New feature or request label Dec 2, 2024
@riverwanderer riverwanderer added this to the 3.8.0 milestone Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant