wgge 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/game/GameRenderer.js +3 -6
- package/package.json +1 -1
- package/style/basic/game.less +12 -16
package/game/GameRenderer.js
CHANGED
|
@@ -83,12 +83,9 @@ export default class GameRenderer extends DomRenderer {
|
|
|
83
83
|
if (isLoading) {
|
|
84
84
|
if (!this.loading) {
|
|
85
85
|
this.loading = DOMHelper.createElement(this.loadingLayer, 'div', 'loading-overlay');
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
const label1 = DOMHelper.createElement(content, 'h2', 'loading-title');
|
|
90
|
-
this.label2 = DOMHelper.createElement(content, 'div', 'center');
|
|
91
|
-
const progressWrapper = DOMHelper.createElement(content, 'div', 'progress-wrapper mt-2');
|
|
86
|
+
const inner = DOMHelper.createElement(this.loading, 'div', 'loading-overlay-inner');
|
|
87
|
+
this.label2 = DOMHelper.createElement(inner, 'div', 'center');
|
|
88
|
+
const progressWrapper = DOMHelper.createElement(inner, 'div', 'progress-wrapper mt-2');
|
|
92
89
|
this.loadingProgress = DOMHelper.createElement(progressWrapper, 'div', 'stretch');
|
|
93
90
|
}
|
|
94
91
|
const portion = this.game.assets.sessionFinishedLoaders.get() / this.game.assets.sessionTotalLoaders.get();
|
package/package.json
CHANGED
package/style/basic/game.less
CHANGED
|
@@ -94,25 +94,21 @@ h1, h2, h3, h4 {
|
|
|
94
94
|
justify-content: center;
|
|
95
95
|
z-index: 9999;
|
|
96
96
|
pointer-events: none;
|
|
97
|
-
background-
|
|
98
|
-
|
|
99
|
-
background-position: center center;
|
|
100
|
-
|
|
101
|
-
color: @white;
|
|
97
|
+
background-color: @black;
|
|
98
|
+
color: @light-gray;
|
|
102
99
|
|
|
103
|
-
|
|
104
|
-
border-radius: @m-2;
|
|
105
|
-
}
|
|
100
|
+
.loading-overlay-inner {
|
|
106
101
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
.progress-wrapper {
|
|
103
|
+
border-width: 1px;
|
|
104
|
+
padding: 1px;
|
|
105
|
+
border-style: solid;
|
|
106
|
+
border-color: @white;
|
|
112
107
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
div {
|
|
109
|
+
height: @m-2;
|
|
110
|
+
background-color: @white;
|
|
111
|
+
}
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
}
|