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

onMouseOver event #4319

Merged
merged 6 commits into from
Nov 3, 2023
Merged

onMouseOver event #4319

merged 6 commits into from
Nov 3, 2023

Conversation

Jmr3366
Copy link
Contributor

@Jmr3366 Jmr3366 commented Oct 4, 2023

Identify the Bug or Feature request

#720 - onMouseOver event request

Description of the Change

When the pointer moves over a token on the token layer, any library token with a macro named onMouseOver will execute.

Possible Drawbacks

For any pre-existing library tokens with a macro named onMouseOver, this could cause unintended macro execution and/or unexpected results.

Documentation Notes

Any time the mouse cursor moves over a token, the onMouseOver macro will execute if found on a library token.

Release Notes

Examples:

Create a macro on an existing or new library token, named onMouseOver.
Within this macro place:
[h: broadcast(macro.args,"self")]

When you move the mouse cursor over a token this will be output to chat
tokenid,token pixel X,token pixel Y,shift key state,control key state
When you move the mouse cursor OFF a token this will output to chat
tokenid,exit


This change is Reviewable

Copy link
Collaborator

@thelsing thelsing left a comment

Choose a reason for hiding this comment

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

The comments for #4318 apply here to.

@Jmr3366 Jmr3366 requested a review from thelsing October 15, 2023 00:45
@cwisniew cwisniew added the feature Adding functionality that adds value label Oct 19, 2023
@cwisniew cwisniew added this pull request to the merge queue Nov 3, 2023
Merged via the queue into RPTools:develop with commit c396936 Nov 3, 2023
4 checks passed
@Jmr3366 Jmr3366 deleted the onMouseOver-new branch February 15, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants