Closed noblemaster closed 1 year ago
I put together an idea for the loading bar: https://codepen.io/noblemaster/pen/qBMORQO
app.js
is loaded. It's hard to tell how long it exactly takes, so a slower progressing bar is probably sufficient (user see that things are still progressing).assets
that are loaded. The value is updated withing TeaApplication
I updated it with a progress bar. The progress bar goes to 25% when loading the app.js
and then shows the correct progress till 100% when loading the assets.
Although it's just a simple progress bar at the moment, we could add configuration options for the CSS
part in TeaBuildConfiguration
as follows:
CSS
part?I added the libGDX
logo to the loading bar.
I wasn't so sure where to add it during the build. It's now copied with the scripts, but that should probably be changed. Also, it could be made customizable, so someone could have the logo disabled or supply their own in the build configuration file.
This is a simple loading indicator using a CSS-spinner.
app.js
starts being loaded until after all theassets
have completed loading.app.js
to the end of theindex.html
, otherwise, the loading indicator won't show until later.#loading-indicator
can be customized. It could also show an image or loading bar with progress that could be updated viaTeaApplication
etc. To e.g. show a progress bar, one could for example add and update a CSS property for width or so (not in there yet).TeaApplication
, the loading indicator is removed once everything has loaded.