-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Rename Timer::{percent,percent_left}
to Timer::{fraction,fraction_remaining}
#10442
Rename Timer::{percent,percent_left}
to Timer::{fraction,fraction_remaining}
#10442
Conversation
While we're renaming, why not name it |
Timer::{percent,percent_left}
to Timer::{fraction,fraction_left}
Timer::{percent,percent_left}
to Timer::{fraction,fraction_remaining}
0.12 release just added Should that be included in this PR or should it be another one? |
I would prefer in this PR 👍 |
#10448 will rename |
…remaining}` (bevyengine#10442) # Objective Fixes bevyengine#10439 `Timer::percent()` and `Timer::percent_left()` return values in the range of 0.0 to 1.0, even though their names contain "percent". These functions should be renamed for clarity. ## Solution - Rename `Timer::percent()` to `Timer::fraction()` - Rename `Timer::percent_left()` to `Timer::fraction_remaining()` --- ## Changelog ### Changed - Renamed `Timer::percent()` to `Timer::fraction()` - Renamed `Timer::percent_left()` to `Timer::fraction_remaining()` ## Migration Guide - `Timer::percent()` has been renamed to `Timer::fraction()` - `Timer::percent_left()` has been renamed to `Timer::fraction_remaining()`
Objective
Fixes #10439
Timer::percent()
andTimer::percent_left()
return values in the range of 0.0 to 1.0, even though their names contain "percent".These functions should be renamed for clarity.
Solution
Timer::percent()
toTimer::fraction()
Timer::percent_left()
toTimer::fraction_remaining()
Changelog
Changed
Timer::percent()
toTimer::fraction()
Timer::percent_left()
toTimer::fraction_remaining()
Migration Guide
Timer::percent()
has been renamed toTimer::fraction()
Timer::percent_left()
has been renamed toTimer::fraction_remaining()