Linting
This commit is contained in:
parent
d241bc8234
commit
1366e6a54d
|
@ -23,7 +23,7 @@ class DisplayManager:
|
||||||
self.mainmenudisplay, self.settingsmenudisplay]
|
self.mainmenudisplay, self.settingsmenudisplay]
|
||||||
self.update_game_components()
|
self.update_game_components()
|
||||||
|
|
||||||
def handle_display_action(self, action:DisplayActions) -> None:
|
def handle_display_action(self, action: DisplayActions) -> None:
|
||||||
if action == DisplayActions.REFRESH:
|
if action == DisplayActions.REFRESH:
|
||||||
self.refresh()
|
self.refresh()
|
||||||
elif action == DisplayActions.UPDATE:
|
elif action == DisplayActions.UPDATE:
|
||||||
|
|
|
@ -3,10 +3,12 @@ from typing import Optional
|
||||||
|
|
||||||
from dungeonbattle.settings import Settings
|
from dungeonbattle.settings import Settings
|
||||||
|
|
||||||
|
|
||||||
class DisplayActions(Enum):
|
class DisplayActions(Enum):
|
||||||
REFRESH = auto()
|
REFRESH = auto()
|
||||||
UPDATE = auto()
|
UPDATE = auto()
|
||||||
|
|
||||||
|
|
||||||
class GameMode(Enum):
|
class GameMode(Enum):
|
||||||
MAINMENU = auto()
|
MAINMENU = auto()
|
||||||
PLAY = auto()
|
PLAY = auto()
|
||||||
|
|
Loading…
Reference in New Issue