X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=client%2Fwindow_management.py;h=9d787375fae78b383e9dd219f9227495f7c93389;hb=refs%2Fheads%2F7drl2016;hp=a896b0207e39bb970db07572145dbf07ae69f6b0;hpb=32c8b0d55c091b10ba683621d7881ef57ce8a88a;p=plomrogue diff --git a/client/window_management.py b/client/window_management.py index a896b02..9d78737 100644 --- a/client/window_management.py +++ b/client/window_management.py @@ -18,10 +18,11 @@ screen_size = [0,0] class Window: - def __init__(self, title, draw_function, size): + def __init__(self, title, draw_function, size, draw_scroll_hints): self.title = title self.draw = types.MethodType(draw_function, self) self.size = size + self.draw_scroll_hints = draw_scroll_hints def set_windows(): @@ -99,7 +100,8 @@ def set_windows(): windows = [] for config in windows_config: size = size_window(config["config"]) - window = Window(config["title"], config["func"], size) + window = Window(config["title"], config["func"], size, + config["scroll_hints"]) windows.append(window) place_window(window) redraw_windows = True @@ -217,7 +219,8 @@ def draw_screen(): for win in windows: offset, winmap_size, winmap = win.draw() draw_winmap() - draw_scroll_hints() + if win.draw_scroll_hints: + draw_scroll_hints() stdscr.erase() draw_window_border_lines()