Skip to content

Move dialogue mouse-cursor handling to MouseManager#2087

Merged
manuq merged 1 commit intomainfrom
wjt/move-dialogue-mouse-cursor-handling-to-mousemanager
Mar 26, 2026
Merged

Move dialogue mouse-cursor handling to MouseManager#2087
manuq merged 1 commit intomainfrom
wjt/move-dialogue-mouse-cursor-handling-to-mousemanager

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Mar 26, 2026

Move dialogue mouse-cursor handling to MouseManager

In commit b86ea32, logic was added to
the dialogue balloon script to change the mouse cursor to a pointer when
dialogue is shown, and back to the reticule/cross when it finishes.

Move this logic to MouseManager, so that the code that adjusts the mouse
cursor is all in one place. This also brings balloon.gd closer to the
example script of which it is a copy, which helps when comparing to
newer versions of the example balloon to bring more functionality
forwards.

In commit b86ea32, logic was added to
the dialogue balloon script to change the mouse cursor to a pointer when
dialogue is shown, and back to the reticule/cross when it finishes.

Move this logic to MouseManager, so that the code that adjusts the mouse
cursor is all in one place. This also brings balloon.gd closer to the
example script of which it is a copy, which helps when comparing to
newer versions of the example balloon to bring more functionality
forwards.
@wjt wjt requested a review from a team as a code owner March 26, 2026 08:18
@github-actions
Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/move-dialogue-mouse-cursor-handling-to-mousemanager/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Copy link
Copy Markdown
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better, thanks for improving it.

@manuq manuq merged commit c85c4c6 into main Mar 26, 2026
6 checks passed
@manuq manuq deleted the wjt/move-dialogue-mouse-cursor-handling-to-mousemanager branch March 26, 2026 11:51
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.

2 participants