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

On UI Button Hover New Command #1049

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

breadnone
Copy link
Contributor

@breadnone breadnone commented Feb 16, 2022

Description

UI button mouse cursor state change. Some users asked this feature on discord to easily change cursor icon when hovered over a button.

What is the current behavior?

We don't have this command yet.

What is the new behavior?

  • When mouse hovered a button, the cursor icon/texture will change based on the assigned texture2d.
  • User can assign different Texture2d as their mouse cursor to different buttons (multiple cursor).
  • Standard cursor mode, hotspot etc..
  • Custom default cursor slot provided for when the game already uses custom mouse texture for fallback.
  • Optional AddListener to execute block.

Example video:

PHpdKrfnNS.mp4

Important Notes

  • My change require modifcations or additions to documentation
  • It compares GetInstanceID instead of object's name to avoid same name conflicts.

Other information

  • The new command will be in UI/OnMouseCursorHoverButton

Edit: Edited description and typo

@breadnone
Copy link
Contributor Author

I kinda think the AddListener isn't necessary. Just share your thoughts on this...

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.

1 participant