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

[Core] Align naming and args of (SceneTree)Timer time scale methods #100752

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

AThousandShips
Copy link
Member

Renamed get_ignore_time_scale to is_ignoring_time_scale following general naming standards.

See conversation in:

Left the default argument as is, the Tween code is different in that regard

Doesn't break compatibility as it was introduced during 4.4

@tvenclovas96
Copy link
Contributor

I think this should include the SceneTreeTimer method, as arguably it's what caused the naming confusion in the first place.

@Mickeon
Copy link
Contributor

Mickeon commented Dec 23, 2024

That can't be done without breaking compatibility. It can be done here for Timer because it was just recently added in the dev builds.

@dsnopek
Copy link
Contributor

dsnopek commented Dec 23, 2024

That can't be done without breaking compatibility. It can be done here for Timer because it was just recently added in the dev builds.

This method on SceneTreeTimer isn't exposed, so we should be able to rename it without creating compatibility issues.

I'd also personally be in support of renaming it on SceneTreeTimer while we're at it.

@AThousandShips
Copy link
Member Author

Will get that done too! Thank you

@AThousandShips AThousandShips marked this pull request as draft December 23, 2024 13:36
@AThousandShips AThousandShips force-pushed the unify_timer_scale_naming branch from 3e094ae to 6bea00b Compare December 23, 2024 21:41
Renamed `get_ignore_time_scale` to `is_ignoring_time_scale` following general naming standards.
@AThousandShips AThousandShips force-pushed the unify_timer_scale_naming branch from 6bea00b to 8d1a3e2 Compare December 23, 2024 21:47
@AThousandShips AThousandShips marked this pull request as ready for review December 23, 2024 21:47
@AThousandShips AThousandShips changed the title [Core] Align naming and args of Timer time scale methods [Core] Align naming and args of (SceneTree)Timer time scale methods Dec 23, 2024
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Repiteo Repiteo merged commit 953db6e into godotengine:master Dec 30, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 30, 2024

Thanks!

@AThousandShips AThousandShips deleted the unify_timer_scale_naming branch December 30, 2024 15:22
@AThousandShips
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants