Files
GDevelop/GDJS/Runtime/cocos-renderers/loadingscreen-cocos-renderer.ts
Florian Rival 7f6388c6f5 Make the loading screen customizable (#2814)
* 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
2021-07-19 19:52:25 +01:00

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.
}