Skip to content

Commit 60dc0df

Browse files
committed
Overhaul for Progress bars/WIP logging!
# Options changes: ## Settings - Added new DataFileDir path. - Used for determining location of the DB files - DB files used to define THP data (especially for usage of Thwimp for other games) - Audio checkbox - Enables audio - Custom audio for error and success - **Elevator Music** - Elevator Music checkbox - Plays **song.wav** from exe dir during long THP Encoding process - Less MsgBox - Disables most informational MsgBoxes during THP Encoding - Prevents interruption of progress - Full logs checkbox - Logs **everything** (including Process.Start cmdline calls) - Not yet implemented! - Save/Load Settings buttons - Loads/saves a Thwimp INI settings file to/from a directory - Loads/saves current settings ## Resources section - Various new buttons to Thwimp resources - Most launch a URL in the default browser - Buttons - Webpage - Launch EagleSoft Ltd. Thwimp webpage URL - About - About box - (Nothing changed) - MKWiiki article - Launch Thwimp MKWiiki article URL - Manual (Github) - Launch readme.md URL from Thwimp's Github repo - Latest Release - Launch Release URL from Thwimp's Github repo - Cmdline - Not yet implemented! - Will display the cmdline options in MsgBox - Save text into user-specified text file # Progress bars/logging - Added new Log group box - Logs - Text to a textbox - Displays icon to show last icon from any MsgBoxes - Controls - Cls button - Clears the log box, current and total progress bar groups - Set current/total progress bar progress to 0-1, progress to 0, and percentage text to 0.00% - Save button - Saves contents of the log box to a text log file - Default Log file named as "thwimp_date_time.log" - date = mmddyyyy - time = hhmmss (24-hour) - MsgBox() calls within app refactored to call Log_MsgBox() func - Wrapper function which logs title, message, and icon to the log group box - Added new Progress group box - Used for displaying progress of long processes (currently THP Encoding) - Progress Bar elements - Total progress - Log textbox - Progress bar - Label (progress as percentage) - Current progress - Log textbox - Progress bar - Label (progress as percentage) - Tweaked THP Encoding and its various co-subs/functions progress to log messages and progress to these bars - Created 3 new functions to handle progress bars - UpdateProg_Ttl - Update total progress bar stuff - Pre-defined wrapper call to UpdateProg - UpdateProg_Cur - Update current progress bar stuff - Pre-defined wrapper call to UpdateProg - UpdateProg - Meat for updating either type progress bar - Text logged to the progress bars is also dumped into the main log text box - Params - Bar type (total or current) - Set current progress value and total available progress on bar (via 2-item array) - Optional Message to log (with total and current progress timestamp) - Optional Logging type - Set text value - **OR** - Append text - Optional application sleeping (3 seconds) - Refactored THP Encoding to display and log progress # Misc/bugfixes - Fixed bug with Trunc Frame field in THP Encoder section not updating onChange of THP combo box # Todo (v1.2c) - Get Full Logging enabled - Refactor all cmdline Processes to use a new function (RunProcess() - Have RunProcess function intercept and log all stdoutput from processes if Full Logging flag set - Progres/Logging for THP Ripper and THP Viewer - THP Ripper - Log/progress for THP ripping process - THP Viewer - Log/progress for 4-step process for playback - Esp. audio-THPs such as title)
1 parent cd7a663 commit 60dc0df

File tree

12 files changed

+3407
-319
lines changed

12 files changed

+3407
-319
lines changed

Thwimp/Main.Designer.vb

Lines changed: 642 additions & 203 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Thwimp/Main.resx

Lines changed: 1352 additions & 4 deletions
Large diffs are not rendered by default.

Thwimp/Main.vb

Lines changed: 1355 additions & 112 deletions
Large diffs are not rendered by default.

Thwimp/My Project/Resources.Designer.vb

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Thwimp/My Project/Resources.resx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,16 @@
124124
<data name="EagleSoft" type="System.Resources.ResXFileRef, System.Windows.Forms">
125125
<value>..\Resources\EagleSoft.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
126126
</data>
127+
<data name="nullIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
128+
<value>..\Resources\nullIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
129+
</data>
130+
<data name="success" type="System.Resources.ResXFileRef, System.Windows.Forms">
131+
<value>..\Resources\success.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
132+
</data>
133+
<data name="THPTab" type="System.Resources.ResXFileRef, System.Windows.Forms">
134+
<value>..\Resources\mario_kart_wii_by_ariarts258_d41u6uw-fullview.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
135+
</data>
136+
<data name="_error" type="System.Resources.ResXFileRef, System.Windows.Forms">
137+
<value>..\Resources\error.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
138+
</data>
127139
</root>

Thwimp/Resources/MKWii_Menu.mp3

3.04 MB
Binary file not shown.

Thwimp/Resources/error.wav

258 KB
Binary file not shown.
77.4 KB
Loading

Thwimp/Resources/nullIcon.png

233 Bytes
Loading

Thwimp/Resources/song.wav

14.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)