Skip to content

Fix for MoveCameraButton#14303

Closed
cholmcc wants to merge 1 commit intovassalengine:masterfrom
cholmcc:cholmcc_move_camera
Closed

Fix for MoveCameraButton#14303
cholmcc wants to merge 1 commit intovassalengine:masterfrom
cholmcc:cholmcc_move_camera

Conversation

@cholmcc
Copy link
Copy Markdown
Contributor

@cholmcc cholmcc commented Oct 20, 2025

Instead of using the map centre, which is limited by the view port, use the previously user requested map centre - i.e.,
Map#getPreferredCenter. This will ensure that more pieces are seen when cycling through pieces.

Note that the algorithm is still broken in so far at it never will visit all pieces selected by the selection criteria.

To make the algorithm visit all pieces, it would have to keep some state information between invocations.

@riverwanderer riverwanderer added this to the 3.7.19 milestone Dec 10, 2025
@riverwanderer
Copy link
Copy Markdown
Collaborator

@cholmcc - is this ready for review and merge into upcoming release 3.7.19 ?

@cholmcc
Copy link
Copy Markdown
Contributor Author

cholmcc commented Dec 13, 2025

@cholmcc - is this ready for review and merge into upcoming release 3.7.19 ?

I believe so.

@uckelman uckelman modified the milestones: 3.7.19, 3.7.20 Dec 30, 2025
@uckelman uckelman modified the milestones: 3.7.20, 3.7.21 Feb 6, 2026
Instead of using the map centre, which is limited by the view port, use
the previously user requested map centre - i.e.,
`Map#getPreferredCenter`.  This will ensure that more pieces are seen
when cycling through pieces.

Note that the algorithm is still broken in so far at it never will visit
_all_ pieces selected by the selection criteria.

To make the algorithm visit _all_ pieces, it would have to keep some
state information between invocations.
@cholmcc cholmcc force-pushed the cholmcc_move_camera branch from 1299b84 to 72dd0e9 Compare February 9, 2026 21:55
@cholmcc cholmcc closed this Mar 28, 2026
@cholmcc cholmcc deleted the cholmcc_move_camera branch April 20, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants