File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,16 @@ class HudSpectateHandler {
12
12
toggleReplayControls : $ ( '#ToggleReplayControls' )
13
13
} ;
14
14
15
- /* TODO
16
15
constructor ( ) {
17
- $.RegisterForUnhandledEvent('MomentumSpectatorTargetChanged', (type: RunEntityType) =>
18
- this.onSpectatorChanged(type)
19
- );
16
+ // TEMP: Hide spectate panel since we don't distinguish between replays and spectate yet
17
+ this . panels . indicatorSpectating . visible = false ;
18
+
19
+ // $.RegisterForUnhandledEvent('MomentumSpectatorTargetChanged', (type: RunEntityType) =>
20
+ // this.onSpectatorChanged(type)
21
+ // );
20
22
}
21
23
22
- onSpectatorChanged(type: RunEntityType) {
24
+ /* onSpectatorChanged(type: RunEntityType) {
23
25
if (type !== RunEntityType.PLAYER) {
24
26
const isReplay = type === RunEntityType.REPLAY;
25
27
@@ -31,6 +33,5 @@ class HudSpectateHandler {
31
33
this.panels.toggleReplayControls.visible = isReplay;
32
34
this.panels.indicatorWatchingReplay.visible = isReplay;
33
35
}
34
- }
35
- */
36
+ }*/
36
37
}
You can’t perform that action at this time.
0 commit comments