local game btn ok
This commit is contained in:
parent
94d263993d
commit
b3151d4b28
1 changed files with 1 additions and 2 deletions
|
|
@ -232,13 +232,12 @@ function pongClient(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
queueBtn.innerText = QueueState.Iddle;
|
queueBtn.innerText = QueueState.Iddle;
|
||||||
currentGame = null;
|
|
||||||
render(DEFAULT_POSITIONS);
|
render(DEFAULT_POSITIONS);
|
||||||
|
currentGame = null;
|
||||||
batLeft.style.backgroundColor = DEFAULT_COLOR;
|
batLeft.style.backgroundColor = DEFAULT_COLOR;
|
||||||
batRight.style.backgroundColor = DEFAULT_COLOR;
|
batRight.style.backgroundColor = DEFAULT_COLOR;
|
||||||
|
|
||||||
socket.on('updateInformation', (e) => {
|
socket.on('updateInformation', (e) => {
|
||||||
showInfo(`UpdateInformation: t=${e.totalUser};q=${e.inQueue};g=${e.totalGames}`);
|
|
||||||
queue_infos.innerText = `${e.totalUser}👤 ${e.inQueue}⏳ ${e.totalGames}▮•▮`;
|
queue_infos.innerText = `${e.totalUser}👤 ${e.inQueue}⏳ ${e.totalGames}▮•▮`;
|
||||||
});
|
});
|
||||||
socket.on('queueEvent', (e) => showInfo(`QueueEvent: ${e}`));
|
socket.on('queueEvent', (e) => showInfo(`QueueEvent: ${e}`));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue