home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure rough feature parity between clients.
[plomrogue2-experiments]
/
new2
/
rogue_chat_nocanvas_monochrome.html
diff --git
a/new2/rogue_chat_nocanvas_monochrome.html
b/new2/rogue_chat_nocanvas_monochrome.html
index bb1ecdaeedb13de65bb93ff2b2bf9dd950bf40f9..f513ad9f39a311fa86dc56d369ca4fa33536abd0 100644
(file)
--- a/
new2/rogue_chat_nocanvas_monochrome.html
+++ b/
new2/rogue_chat_nocanvas_monochrome.html
@@
-201,6
+201,7
@@
let server = {
} else if (tokens[0] === 'LOGIN_OK') {
this.send(['GET_GAMESTATE']);
tui.log_help();
} else if (tokens[0] === 'LOGIN_OK') {
this.send(['GET_GAMESTATE']);
tui.log_help();
+ // TODO wait for game state for this switch, use intermediary mode?
tui.switch_mode(mode_play);
} else if (tokens[0] === 'PORTAL') {
let position = parser.parse_yx(tokens[1]);
tui.switch_mode(mode_play);
} else if (tokens[0] === 'PORTAL') {
let position = parser.parse_yx(tokens[1]);
@@
-591,7
+592,7
@@
tui.inputEl.addEventListener('input', (event) => {
}, false);
tui.inputEl.addEventListener('keydown', (event) => {
if (event.key == 'Enter') {
}, false);
tui.inputEl.addEventListener('keydown', (event) => {
if (event.key == 'Enter') {
- event.preventDefault();
+
event.preventDefault();
}
if (tui.mode == mode_login && event.key == 'Enter') {
server.send(['LOGIN', tui.inputEl.value]);
}
if (tui.mode == mode_login && event.key == 'Enter') {
server.send(['LOGIN', tui.inputEl.value]);