From: Christian Heller Date: Fri, 11 Dec 2020 03:48:26 +0000 (+0100) Subject: Make CHATFACE trigger screen refresh. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/condition?a=commitdiff_plain;h=c4a74406fd9fc0f7d91ad428a9c28b5369e5c51a;p=plomrogue2 Make CHATFACE trigger screen refresh. --- diff --git a/rogue_chat.html b/rogue_chat.html index 5a55f3b..5e66398 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -541,6 +541,7 @@ let server = { tui.log_msg('# ' + tokens[1], 1); } else if (tokens[0] === 'CHATFACE') { tui.draw_face = tokens[1]; + tui.full_refresh(); } else if (tokens[0] === 'REPLY') { tui.log_msg('#MUSICPLAYER: ' + tokens[1], 1); } else if (tokens[0] === 'PLAYER_ID') { diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 7d2a3b1..2858892 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -202,6 +202,7 @@ cmd_CHAT.argtypes = 'string' def cmd_CHATFACE(game, thing_id): game.tui.draw_face = thing_id + game.tui.do_refresh = True cmd_CHATFACE.argtypes = 'int:pos' def cmd_PLAYER_ID(game, player_id):