X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=new%2Fexample_client.py;h=5fc3063da146b2a4be1a26e47bc7f61169de903d;hp=44b0993dbff05d4705946518dee944025192b318;hb=1ed87907733a1d3f3646c4b1a94fb17e3cff500f;hpb=5ab9dc6129bb816b040a13cfdad833a0526b0f90 diff --git a/new/example_client.py b/new/example_client.py index 44b0993..5fc3063 100755 --- a/new/example_client.py +++ b/new/example_client.py @@ -412,6 +412,8 @@ class MapWidget(Widget): chars_with_attrs += [(c, curses.color_pair(2))] elif c in {'x', 'X', '#'}: chars_with_attrs += [(c, curses.color_pair(3))] + elif c == '?': + chars_with_attrs += [(c, curses.color_pair(5))] else: chars_with_attrs += [c] return chars_with_attrs @@ -584,6 +586,7 @@ class TUI: curses.init_pair(2, curses.COLOR_BLACK, curses.COLOR_GREEN) curses.init_pair(3, curses.COLOR_BLACK, curses.COLOR_BLUE) curses.init_pair(4, curses.COLOR_BLACK, curses.COLOR_YELLOW) + curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE) # Basic curses initialization work. setup_screen(stdscr)