mirror of
https://forge.murkfall.net/bluesaxman/deckard-and-company.git
synced 2026-03-13 08:54:20 -06:00
added auto view, automatic switch to what is actively changing
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
window.server = "wss://test.murkfall.net:42024/";
|
||||
window.gameState = {};
|
||||
window.gameState.log = "";
|
||||
window.gameState.users = [];
|
||||
window.gameState.decks = [];
|
||||
window.gameState.pools = [];
|
||||
@@ -141,6 +142,14 @@ function startGameSession() {
|
||||
if ("join" == message.request) { window.gameSession.send('{"action":"join"}'); }
|
||||
if ("update" == message.request) { window.gameSession.send('{"action":"update"}'); }
|
||||
}
|
||||
if (message.push) {
|
||||
window.gameSession.log += "<p>"+message.user+": "+message.action+"</p>";
|
||||
if ("draw" == message.action) { window.UI.menu.decks.button.checked = true; }
|
||||
if ("play" == message.action) { window.UI.menu.pools.button.checked = true; }
|
||||
if ("muligan" == message.action) { window.UI.menu.decks.button.checked = true; }
|
||||
if ("clear" == message.action) { window.UI.menu.decks.button.checked = true; }
|
||||
updateEvent();
|
||||
}
|
||||
if (message.users) { window.gameState.users = message.users; updateEvent(); }
|
||||
if (message.decks) { window.gameState.decks = message.decks; updateEvent(); }
|
||||
if (message.pools) { window.gameState.pools = message.pools; updateEvent(); }
|
||||
|
||||
Reference in New Issue
Block a user