Prechádzať zdrojové kódy

bug fix and no breaking changes

Raanan Weber 10 rokov pred
rodič
commit
eb1a97458f
2 zmenil súbory, kde vykonal 21 pridanie a 3 odobranie
  1. 12 2
      src/babylon.engine.js
  2. 9 1
      src/babylon.engine.ts

+ 12 - 2
src/babylon.engine.js

@@ -1862,12 +1862,22 @@ var BABYLON;
             get: function () {
                 return this._loadingScreen;
             },
+            set: function (loadingScreen) {
+                this._loadingScreen = loadingScreen;
+            },
+            enumerable: true,
+            configurable: true
+        });
+        Object.defineProperty(Engine.prototype, "loadingUIText", {
+            set: function (text) {
+                this._loadingScreen.loadingUIText = text;
+            },
             enumerable: true,
             configurable: true
         });
         Object.defineProperty(Engine.prototype, "loadingUIBackgroundColor", {
-            set: function (loadingScreen) {
-                this._loadingScreen = loadingScreen;
+            set: function (color) {
+                this._loadingScreen.loadingUIBackgroundColor = color;
             },
             enumerable: true,
             configurable: true

+ 9 - 1
src/babylon.engine.ts

@@ -2215,9 +2215,17 @@
             return this._loadingScreen;
         }
 
-        public set loadingUIBackgroundColor(loadingScreen: ILoadingScreen) {
+        public set loadingScreen(loadingScreen: ILoadingScreen) {
             this._loadingScreen = loadingScreen;
         }
+        
+        public set loadingUIText(text: string) {
+            this._loadingScreen.loadingUIText = text;
+        }
+
+        public set loadingUIBackgroundColor(color: string) {
+            this._loadingScreen.loadingUIBackgroundColor = color;
+        }
 
         // FPS
         public getFps(): number {