wgge 2.0.10 → 2.0.12

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.
@@ -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 paper = DOMHelper.createElement(this.loading, 'div');
87
- const inner = DOMHelper.createElement(paper, 'div', 'inner p-3');
88
- const content = DOMHelper.createElement(inner, 'div', 'm-3 p-3');
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');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgge",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Web GL Game Engine",
5
5
  "main": "index.js",
6
6
  "devDependencies": {
@@ -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-repeat: no-repeat;
98
- background-size: cover;
99
- background-position: center center;
100
-
97
+ background-color: @black;
101
98
  color: @white;
102
99
 
103
- div {
104
- border-radius: @m-2;
105
- }
100
+ .loading-overlay-inner {
106
101
 
107
- .progress-wrapper {
108
- border-width: 1px;
109
- padding: 1px;
110
- border-style: solid;
111
- border-color: @white;
102
+ .progress-wrapper {
103
+ border-width: 1px;
104
+ padding: 1px;
105
+ border-style: solid;
106
+ border-color: @white;
112
107
 
113
- div {
114
- height: @m-2;
115
- background-color: @white;
108
+ div {
109
+ height: @m-2;
110
+ background-color: @white;
111
+ }
116
112
  }
117
113
  }
118
114
  }