X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=client_prototype.py;h=2ed03fd645dc46c0357e97e910f6362be0a3d444;hb=5655c2df487da073f830bfd891c887e8adea3a2f;hp=2340bfed6dbaf8e1b3614ee02b6cbe56026ef3a8;hpb=2746c58eafa13e770bbd3447b63bca28ea9f36bc;p=plomrogue diff --git a/client_prototype.py b/client_prototype.py index 2340bfe..2ed03fd 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -127,8 +127,8 @@ def draw_screen(): and x_in_screen < screen_size[1]): stdscr.addch(y_in_screen, x_in_screen, cell) def draw_scroll_hints(): - def draw_scroll_string(hint_number): - hint = ' ' + str(hint_number + 1) + ' more ' + unit + ' ' + def draw_scroll_string(n_lines_outside): + hint = ' ' + str(n_lines_outside + 1) + ' more ' + unit + ' ' if len(hint) <= win["size"][ni]: non_hint_space = win["size"][ni] - len(hint) hint_offset = int(non_hint_space / 2)