Skip to content

fix: revealer animation folding#119

Merged
NathanLovato merged 2 commits into
GDQuest:mainfrom
allkhor:fix_revealer_animation
Jan 5, 2022
Merged

fix: revealer animation folding#119
NathanLovato merged 2 commits into
GDQuest:mainfrom
allkhor:fix_revealer_animation

Conversation

@allkhor

@allkhor allkhor commented Jan 5, 2022

Copy link
Copy Markdown
Contributor

Please check if the PR fulfills these requirements:

  • The commit message follows our guidelines.
  • For bug fixes and features:
    • You tested the changes.

Related issue (if applicable): #
#104

Also fix folding if animation disabled.

Comment thread ui/components/Revealer.gd Outdated
Comment on lines +144 to +145
func _animate_height(property: String, from: float) -> void:
_tween.interpolate_property(self, property, from, _height, ANIM_DURATION)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I´d rather not have functions with only one instruction. Here, it mostly requires you to jump somewhere else in the file to understand how the code works - you're not reusing enough code to justify the indirection. I'll change this and merge shortly.

@NathanLovato NathanLovato linked an issue Jan 5, 2022 that may be closed by this pull request
@NathanLovato
NathanLovato merged commit b86d4ca into GDQuest:main Jan 5, 2022
@NathanLovato

Copy link
Copy Markdown
Contributor

Thanks, that's a great fix!

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.

Hint not folding, only the hint text is hidden

2 participants