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

Support property anim, based on timeline #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

qlli
Copy link
Contributor

@qlli qlli commented Oct 30, 2024

Add timeline and property animation (tweener animation)

timelineMgr.go Outdated Show resolved Hide resolved
internal/timeline/timeline.go Outdated Show resolved Hide resolved
internal/timeline/interval.go Outdated Show resolved Hide resolved
internal/timeline/timeline.go Outdated Show resolved Hide resolved
r.fadeOut.Step(min)
}

goto CHECK_FADE_OUT
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not use goto.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In most cases, the use of goto should be avoided. The exception is when it is the only clear and concise way to handle control flow. By ensuring that all cases ultimately check for a fade-out condition, the control flow remains clear and understandable.

internal/timeline/tweener.go Outdated Show resolved Hide resolved
internal/timeline/tweener.go Outdated Show resolved Hide resolved
return nil
}

func (t *Tweener) From() ITweener {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a clone function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a clone function. It's a reverse version of t.

@qlli qlli force-pushed the propAnim branch 2 times, most recently from 25b7e8f to 78d4186 Compare October 30, 2024 07:03
internal/timeline/timelineGroup.go Outdated Show resolved Hide resolved
internal/timeline/tweener.go Show resolved Hide resolved
timelineMgr.go Outdated Show resolved Hide resolved
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.

3 participants