123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import { IsWindowObjectExist } from "../../Misc/domManagement.js";
- import { AbstractEngine } from "../abstractEngine.js";
- AbstractEngine.prototype.displayLoadingUI = function () {
- if (!IsWindowObjectExist()) {
- return;
- }
- const loadingScreen = this.loadingScreen;
- if (loadingScreen) {
- loadingScreen.displayLoadingUI();
- }
- };
- AbstractEngine.prototype.hideLoadingUI = function () {
- if (!IsWindowObjectExist()) {
- return;
- }
- const loadingScreen = this._loadingScreen;
- if (loadingScreen) {
- loadingScreen.hideLoadingUI();
- }
- };
- Object.defineProperty(AbstractEngine.prototype, "loadingScreen", {
- get: function () {
- if (!this._loadingScreen && this._renderingCanvas) {
- this._loadingScreen = AbstractEngine.DefaultLoadingScreenFactory(this._renderingCanvas);
- }
- return this._loadingScreen;
- },
- set: function (value) {
- this._loadingScreen = value;
- },
- enumerable: true,
- configurable: true,
- });
- Object.defineProperty(AbstractEngine.prototype, "loadingUIText", {
- set: function (value) {
- this.loadingScreen.loadingUIText = value;
- },
- enumerable: true,
- configurable: true,
- });
- Object.defineProperty(AbstractEngine.prototype, "loadingUIBackgroundColor", {
- set: function (value) {
- this.loadingScreen.loadingUIBackgroundColor = value;
- },
- enumerable: true,
- configurable: true,
- });
- //# sourceMappingURL=abstractEngine.loadingScreen.js.map
|