mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00

* Allow to choose the style of the GDevelop logo (light, dark, colored or plain) * Allow to choose the background color and an optional background image * Allow to choose the size of the progress bar (with a minimum and maximum size) * Allow to choose the duration of the fade in animations and the minimum time the loading screen is shown * Use the **new preview button in the game properties** dialog to run a preview with the loading screen shown
22 lines
501 B
TypeScript
22 lines
501 B
TypeScript
/*
|
|
* GDevelop JS Platform
|
|
* Copyright 2013-2016 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
|
|
* This project is released under the MIT License.
|
|
*/
|
|
namespace gdjs {
|
|
export class LoadingScreenCocosRenderer {
|
|
setPercent(percent) {
|
|
console.log('Loading ' + percent + '%');
|
|
}
|
|
|
|
unload() {
|
|
return Promise.resolve();
|
|
}
|
|
}
|
|
|
|
// Nothing to do
|
|
gdjs.LoadingScreenRenderer = gdjs.LoadingScreenCocosRenderer;
|
|
|
|
//Register the class to let the engine use it.
|
|
}
|