cyberjunk / meridian59-dotnet

New 3D client and tools for Meridian 59
GNU General Public License v3.0
34 stars 35 forks source link

Show scanning/hashing and downloading differently in updater UI. #268

Closed skittles1 closed 6 years ago

skittles1 commented 6 years ago

Draft implementation of providing UI feedback on hashing process. Shows num_hashed/total_files and length_hashed/total_length in UI prior to download starting. I added a Thread.Sleep() in Worker in the hashing section so that we can see the hashing part of the UI in testing (otherwise it won't show up at all on my computer).

Added a bool to track the start of downloading in Patcher so that 'starting download' text can be displayed in the form (not sure if there's a better way to track that) and also prevented files from giving the 'downloaded file.ext' text in form if they weren't actually downloaded.

Removed extra form tick after loop - issue with progressbar text was due to requiring Text to be modified prior to the Value assignment.

skittles1 commented 6 years ago

I added a draft of the UpdateStage handling in the 2nd commit, still have a few more things I want to do and test (and still needs German strings for the status changes).