X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=client_prototype.py;h=8200a5bd9226703a1efcd49667f7481f0e8fa6f8;hb=7922809b8c20873eb360d825bd2c58d5ceee9a19;hp=31d66f085c70cfd7d6a434d7a65bbffaa8969968;hpb=4efbaf6e0a5936d2bdeaf495db1b49ca9a3724c9;p=plomrogue diff --git a/client_prototype.py b/client_prototype.py index 31d66f0..8200a5b 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -127,6 +127,19 @@ def draw_screen(): if (y_in_screen < screen_size[0] and x_in_screen < screen_size[1]): stdscr.addch(y_in_screen, x_in_screen, cell) + for i in range(2): + if (offset[i] > 0): + pos_1 = win["start"][i] + for j in range(win["size"][int(i == 0)]): + pos_2 = win["start"][int(i == 0)] + j + x, y = (pos_2, pos_1) if i == 0 else (pos_1, pos_2) + stdscr.addch(y, x, '^' if 0 == i else '<') + if (size[i] > offset[i] + win["size"][i]): + pos_1 = win["start"][i] + win["size"][i] - 1 + for j in range(win["size"][int(i == 0)]): + pos_2 = win["start"][int(i == 0)] + j + x, y = (pos_2, pos_1) if i == 0 else (pos_1, pos_2) + stdscr.addch(y, x, 'v' if 0 == i else '>') stdscr.clear() draw_window_border_lines()