Refactored show menu so that it will be able to accept sense

This commit is contained in:
2019-11-20 23:24:16 +01:00
parent 1f038e177a
commit bcd8d3ced9
4 changed files with 26 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ class Model:
#runtime info
self.menu_location = (0, 0)
self.menu_shown = False
self.menu_target = None
# modal handling
self.modal = lambda: []
@@ -25,7 +25,7 @@ class Model:
self.modal_reset()
def reset(self):
self.menu_shown = False
self.menu_target = None
self.modal_shown = False
def modal_reset(self):