diff options
| author | troido <troido@protonmail.com> | 2018-09-09 14:52:59 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-09 14:52:59 +0200 |
| commit | 9fe119a95b4cd8ab23ea30db9a72645063da264f (patch) | |
| tree | 82c4ee67fb43cfb31a475ae598ac3abf902b307e /asciifarm/client/display/display.py | |
| parent | 5bd11fd1914ea6744852b78047b207e521a304f1 (diff) | |
switchable menus are now somewhat usable and presentable
Diffstat (limited to 'asciifarm/client/display/display.py')
| -rw-r--r-- | asciifarm/client/display/display.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/asciifarm/client/display/display.py b/asciifarm/client/display/display.py index 1d5f542..0660bb9 100644 --- a/asciifarm/client/display/display.py +++ b/asciifarm/client/display/display.py @@ -63,20 +63,19 @@ class Display: self.addWidget(Inventory("Inventory"), "inventory") self.addWidget(Inventory("Ground"), "ground") self.addWidget(Inventory("Equipment"), "equipment") - self.addWidget(Messages(), "msg") - self.addWidget(TextInput(), "textinput") - switcher = Switcher([self.widgets["ground"], self.widgets["inventory"]], 1) + switcher = Switcher([self.widgets["ground"], self.widgets["inventory"], self.widgets["equipment"]], 1) self.addWidget(switcher, "switch") + self.addWidget(Messages(), "msg") + self.addWidget(TextInput(), "textinput") self.forced = False - self.update() def addWidget(self, w, name, winname=None): if not winname: winname = name - widget = Widget(w) + widget = Widget(w, name) self.widgets[name] = widget widget.setWin(winname, self.screen) |
