Replaced jQuery with Vanilla JavaScript: Eliminated jQuery dependency, rewriting all JavaScript functions in pure JavaScript for optimized performance.
Enhanced CSS Design: Updated the progress bar with a modernized look, including rounded corners, improved color scheme, and a softer shadow effect.
Positioned Progress Bar at Bottom Center: Maintained the original dimensions but aligned the bar at the bottom center of the screen for a consistent look and feel.
Default Visibility Set to display: none: Ensured the progress bar is hidden by default (#mina set to display: none), appearing only when activated through exports.
Created startUI Export: Added an export function to start the progress bar with customizable time (in milliseconds) and display text.
Created setProgress Export: Added an export function to set the progress bar to a specific percentage (0-100%) on demand.
Updated fxmanifest.lua:
Registered startUI and setProgress as exports to make them easily accessible from other scripts.
Included ui_page and files to load index.html for UI rendering.
Added Documentation for Installation and Usage: Created a concise guide explaining setup, installation, and examples of how to use both startUI and setProgress exports.
Detailed Changelog: Documented every change and feature added during the entire update process, covering all major and minor improvements.
Fixed Progress Bar Visibility Bug: Corrected the issue where the progress bar remained visible after completion; it now automatically hides once finished.
Changelog
Version 2.0.0
display: none
: Ensured the progress bar is hidden by default (#mina
set todisplay: none
), appearing only when activated through exports.startUI
Export: Added an export function to start the progress bar with customizable time (in milliseconds) and display text.setProgress
Export: Added an export function to set the progress bar to a specific percentage (0-100%) on demand.fxmanifest.lua
:startUI
andsetProgress
as exports to make them easily accessible from other scripts.ui_page
andfiles
to loadindex.html
for UI rendering.startUI
andsetProgress
exports.