From a595b17ad67ad065a35e14f66773c2eaace0fa8c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 11 Dec 2020 07:42:03 +0100 Subject: [PATCH] Show player symbol in face pop-up. --- rogue_chat.html | 6 +++++- rogue_chat_curses.py | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rogue_chat.html b/rogue_chat.html index 23d1a57..0bb8c43 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1139,8 +1139,12 @@ let tui = { return; } const start_x = tui.window_width - 10; + let t_char = ' '; + if (t.thing_char) { + t_char = t.thing_char; + } function draw_body_part(body_part, end_y) { - terminal.write(end_y - 4, start_x, ' ________ '); + terminal.write(end_y - 4, start_x, ' _[ @' + t_char + ' ]_ '); terminal.write(end_y - 3, start_x, '| |'); terminal.write(end_y - 2, start_x, '| ' + body_part.slice(0, 6) + ' |'); terminal.write(end_y - 1, start_x, '| ' + body_part.slice(6, 12) + ' |'); diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index fdfc2bc..6bd662b 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -971,8 +971,11 @@ class TUI: return start_x = self.window_width - 10 + t_char = ' ' + if hasattr(t, 'thing_char'): + t_char = t.thing_char def draw_body_part(body_part, end_y): - safe_addstr(end_y - 4, start_x, ' ________ ') + safe_addstr(end_y - 4, start_x, ' _[ @' + t_char + ' ]_ ') safe_addstr(end_y - 3, start_x, '| |') safe_addstr(end_y - 2, start_x, '| ' + body_part[0:6] + ' |') safe_addstr(end_y - 1, start_x, '| ' + body_part[6:12] + ' |') -- 2.30.2