Change usage of replay auto update function.
This commit is contained in:
parent
e739149d0c
commit
600a83d3e2
@ -437,7 +437,7 @@ const INTERFACE = {
|
||||
document.getElementById("indicator-turn").innerText = INTERFACE_DATA.Replay.turn + " / " + INTERFACE_DATA.Game.history.length;
|
||||
document.getElementById("turn-slider").setAttribute("max", INTERFACE_DATA.Game.history.length);
|
||||
|
||||
this.replay_update_auto();
|
||||
INTERFACE.replay_update_auto();
|
||||
} break;
|
||||
}
|
||||
|
||||
@ -1660,7 +1660,7 @@ const INTERFACE = {
|
||||
if(INTERFACE_DATA.Replay.auto) {
|
||||
setTimeout(INTERFACE.replay_auto, 1000);
|
||||
}
|
||||
this.replay_update_auto();
|
||||
INTERFACE.replay_update_auto();
|
||||
},
|
||||
replay_auto() {
|
||||
if(INTERFACE_DATA.Replay.auto) {
|
||||
@ -1671,11 +1671,11 @@ const INTERFACE = {
|
||||
INTERFACE_DATA.Replay.auto = false;
|
||||
}
|
||||
}
|
||||
this.replay_update_auto();
|
||||
INTERFACE.replay_update_auto();
|
||||
},
|
||||
replay_off() {
|
||||
INTERFACE_DATA.Replay.auto = false;
|
||||
this.replay_update_auto();
|
||||
INTERFACE.replay_update_auto();
|
||||
},
|
||||
replay_update_auto() {
|
||||
let b_auto = document.getElementById("button-auto");
|
||||
|
Loading…
x
Reference in New Issue
Block a user