Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
READY / Needs testing (I don't know how to do this other than just making sure example works)
Description
This change does two things:
a. abstract class
NeuButton
inwhichNeuTextButton
andNeuIconButton
derives from.b. fix animated builder so that it's not rebuilding every frame (pass in the child)
a. change
offset
during animation so that the shadow looks stationary. this makes the effect that the button is moving relative to is background (previously, it was moving with the shadow.)b. Add a curve for
bounceInOut
so that the button has a greater "pop" effect (subjective and perhaps could be done via a parameter passed to the constructor instead).Old Button:
New Button:
Type of Change
putting "bug fix" because of the moving shadows.