Page MenuHomeWildfire Games

Show progress bar when upgrading.
ClosedPublic

Authored by Freagarach on Nov 25 2019, 10:26 AM.

Details

Reviewers
Silier
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP23218: Show progress bar when upgrading entities
Summary

As suggested by @wowgetoffyourcellphone (D2371#101856) this patch shows a progress bar when upgrading an entity. The textures from "pack" are reused.

Test Plan

Verify this works as intended by upgrading an entity: Verify that the progress bar

  • appears when upgrading.
  • disappears when canceling upgrade or finishes upgrading.
  • updates on progress.

Event Timeline

Freagarach created this revision.Nov 25 2019, 10:26 AM
Owners added a subscriber: Restricted Owners Package.Nov 25 2019, 10:26 AM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/646/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1162/display/redirect

Silier added a subscriber: Silier.Nov 25 2019, 11:26 AM

Code looks good, feature should work as intended by reading the code.
I see usage mainly in that player does not have to select entity, he can just hover over it to see progress.
I would maybe consider to add option into the settings or somehow toogle between show always and show default.

I indeed considered that, but also "pack" does not have that option (probably because it is otherwise not visible whether the entity is packing or not). So I might indeed add an option for this.

Stan added a comment.EditedNov 25 2019, 11:54 AM

I guess pack could have a visual animation at some point too. Would be fun to have a unit reading IKEA instructions.

When I applied the patch, it failed to get pictures so i had to copy them manually.
Aside from that, looks good and works.

Stan added a comment.Nov 25 2019, 9:12 PM

Yeah binary files and moving never works.

Silier requested changes to this revision.Nov 26 2019, 7:50 AM

Since you just copy that textures, why just not to reuse the original directly?
If artists will want to add special texture for them, they will re-upload them anyway,

This revision now requires changes to proceed.Nov 26 2019, 7:50 AM
Freagarach requested review of this revision.Nov 26 2019, 8:31 AM

I didn't reuse the "pack"-image because someone who wants to change the textures also needs to touch the StatusBars.js then. Which is not bad for base game, but *is* bad for modders.

Silier accepted this revision.Nov 26 2019, 8:34 AM

good point

This revision is now accepted and ready to land.Nov 26 2019, 8:34 AM
Silier added a comment.Dec 7 2019, 2:42 PM

Thank you for patch.

Freagarach closed this revision.Dec 8 2019, 7:53 AM

Thanks for the review and the commit!