-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let -sweepPromotions also work for click-click moves
A click-click promotion no longer causes auto-queening, but the down-click on the to-square causes a Queen to stick to the mouse pointer, and then allows the user to change it through dragging backwards before releasing it with an up-click. In WinBoard this required a slight change in DragPieceBegin, because the dragged piece there only was made visible when the mouse pointer actually started moving (and dragInfo.pos was set), presumably under the assumption that before mouse move the piece was already on the clicked square. Which in the case of a to-square was of course not true. (Because a piece jumps to the mouse pointer when the click is not centered on a square, this gives less jittery static clicks.) So DragPieceBegin has been given an extra argument now, to indicate whether it should attach the piece to the mouse pointer immediately. To make the click-click sweepPromotions work in Shogi (for which the drag-drop sweepPromotions could never work, because it is not clear the piece has a posibility to promote when you pick it up), translation of the sweep-selected piece to a Shogi promoChar had to e added.
- Loading branch information
Showing
5 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters