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

Slider drag events #46

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Zingabopp
Copy link
Contributor

Exposes DragStarted and DragReleased events for GenericSliderSetting.
Added BSML Properties to GenericSliderSetting:

  • updateDuringDrag: If true, changes to the value will raise events while being dragged (default, previous behavior). If false, events for value change will only be raised after the slider is released.
  • onDragStarted and onDragStartedEvent raised/emitted when the slider is grabbed.
  • onDragReleased and dragReleasedEvent raised/emitted when slider is released.

I wanted to do a TypeHandler for DragHelper itself so it could be easily attached to any component, but it needs to be attached to the same GameObject as the base game component so BSML doesn't pick it up. I left the DragHelperHandler in there (commented out) if you can find a way around it.

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