Refactored show menu so that it will be able to accept sense
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user