|
@@ -23,7 +23,6 @@
|
23
|
23
|
import { Viewport } from './viewport';
|
24
|
24
|
import { StatsPanel } from '../ui/stats-panel';
|
25
|
25
|
import { FullscreenButton } from '../ui/fullscreen-button';
|
26
|
|
-import { SupportWidget } from '../ui/support-widget';
|
27
|
26
|
import { Nullable, Utils } from '../utils/utils';
|
28
|
27
|
|
29
|
28
|
/** HUD container */
|
|
@@ -49,8 +48,6 @@ export class HUD
|
49
|
48
|
/** Fullscreen button */
|
50
|
49
|
#fullscreenButton: FullscreenButton;
|
51
|
50
|
|
52
|
|
- /** Support widget */
|
53
|
|
- #supportWidget: SupportWidget;
|
54
|
51
|
|
55
|
52
|
|
56
|
53
|
|
|
@@ -84,7 +81,6 @@ export class HUD
|
84
|
81
|
// create internal components
|
85
|
82
|
this.#statsPanel = new StatsPanel();
|
86
|
83
|
this.#fullscreenButton = new FullscreenButton(viewport);
|
87
|
|
- this.#supportWidget = new SupportWidget();
|
88
|
84
|
}
|
89
|
85
|
|
90
|
86
|
/**
|
|
@@ -134,7 +130,6 @@ export class HUD
|
134
|
130
|
const parent = this._internalContainer;
|
135
|
131
|
this.#statsPanel.init(parent, wantStatsPanel);
|
136
|
132
|
this.#fullscreenButton.init(parent, wantFullscreenButton);
|
137
|
|
- this.#supportWidget.init(parent);
|
138
|
133
|
|
139
|
134
|
for(const element of parent.children as any as HTMLElement[]) {
|
140
|
135
|
if(element.style.getPropertyValue('pointer-events') == '')
|
|
@@ -162,7 +157,6 @@ export class HUD
|
162
|
157
|
{
|
163
|
158
|
this._visible = false;
|
164
|
159
|
|
165
|
|
- this.#supportWidget.release();
|
166
|
160
|
this.#fullscreenButton.release();
|
167
|
161
|
this.#statsPanel.release();
|
168
|
162
|
|