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

Smooth life drain #40

Merged
merged 6 commits into from
Oct 10, 2019
Merged

Smooth life drain #40

merged 6 commits into from
Oct 10, 2019

Conversation

Yutsuten
Copy link
Owner

@Yutsuten Yutsuten commented Sep 15, 2019

Resolves #39

Seems that QProgressBar does not accept float values, so I had to increase the max value and keep each drain removing 1 unit. I increased the drain frequency to 10 times/sec and increased the max life by 10.

With this, the automatically generated text inside the bar does not show the value in seconds anymore, so I'll have to fix this with some workaround.

Also there are problems when restoring the current life when changing decks.

The objective is to keep everything working the same as it is in the last released version, but make the life be smoothly drained.

There are still some bugs to be fixed though...
@Yutsuten Yutsuten added the enhancement Improve an existing feature label Sep 15, 2019
@Yutsuten Yutsuten self-assigned this Sep 15, 2019
@Yutsuten
Copy link
Owner Author

Yutsuten commented Oct 6, 2019

Feels good now, will test locally these changes for some days to be sure that nothing is broken.

@Yutsuten Yutsuten changed the title [WIP] Smooth life drain Smooth life drain Oct 10, 2019
@Yutsuten Yutsuten merged commit a62cad9 into master Oct 10, 2019
@Yutsuten Yutsuten deleted the smooth-drain branch October 10, 2019 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Smooth Bar Animation
1 participant