Fixed typos
This commit is contained in:
		@@ -5,7 +5,7 @@ from dungeonbattle.display.menudisplay import MenuDisplay, MainMenuDisplay
 | 
			
		||||
from dungeonbattle.display.texturepack import TexturePack
 | 
			
		||||
from typing import Any
 | 
			
		||||
from dungeonbattle.game import Game, GameMode
 | 
			
		||||
from dungeonbattle.enums import DisplayAction
 | 
			
		||||
from dungeonbattle.enums import DisplayActions
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class DisplayManager:
 | 
			
		||||
@@ -22,12 +22,11 @@ class DisplayManager:
 | 
			
		||||
        self.displays = [self.statsdisplay, self.mapdisplay,
 | 
			
		||||
                         self.mainmenudisplay, self.settingsmenudisplay]
 | 
			
		||||
        self.update_game_components()
 | 
			
		||||
        self.settingsmenudisplay.update_menu(self.game.settings_menu)
 | 
			
		||||
 | 
			
		||||
    def handle_display_action(self, action:DisplayAction) -> None:
 | 
			
		||||
        if action == DisplayAction.REFRESH:
 | 
			
		||||
    def handle_display_action(self, action:DisplayActions) -> None:
 | 
			
		||||
        if action == DisplayActions.REFRESH:
 | 
			
		||||
            self.refresh()
 | 
			
		||||
        elif action == DisplayAction.UPDATE:
 | 
			
		||||
        elif action == DisplayActions.UPDATE:
 | 
			
		||||
            self.update_game_components()
 | 
			
		||||
 | 
			
		||||
    def update_game_components(self) -> None:
 | 
			
		||||
@@ -35,6 +34,7 @@ class DisplayManager:
 | 
			
		||||
            d.pack = TexturePack.get_pack(self.game.settings.TEXTURE_PACK)
 | 
			
		||||
        self.mapdisplay.update_map(self.game.map)
 | 
			
		||||
        self.statsdisplay.update_player(self.game.player)
 | 
			
		||||
        self.settingsmenudisplay.update_menu(self.game.settings_menu)
 | 
			
		||||
 | 
			
		||||
    def refresh(self) -> None:
 | 
			
		||||
        if self.game.state == GameMode.PLAY:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user