diff --git a/src/modlunky2/ui/levels/custom_levels/custom_level_editor.py b/src/modlunky2/ui/levels/custom_levels/custom_level_editor.py index 9192d3b1..38877849 100644 --- a/src/modlunky2/ui/levels/custom_levels/custom_level_editor.py +++ b/src/modlunky2/ui/levels/custom_levels/custom_level_editor.py @@ -73,7 +73,9 @@ def __init__( self.tool = CANVAS_MODE.DRAW image_path = BASE_DIR / "static/images/help.png" - self.error_image = ImageTk.PhotoImage(Image.open(image_path).resize((self.zoom_level, self.zoom_level))) + self.error_image = ImageTk.PhotoImage( + Image.open(image_path).resize((self.zoom_level, self.zoom_level)) + ) self.save_needed = False @@ -561,7 +563,10 @@ def draw_layer(canvas_index, tile_codes): self.zoom_level, ) else: - logger.warning("Tile code %s found in room, but does not map to a valid tile code.", tilecode) + logger.warning( + "Tile code %s found in room, but does not map to a valid tile code.", + tilecode, + ) tile_image = self.error_image x_offset, y_offset = 0, 0 self.canvas.replace_tile_at( @@ -901,7 +906,9 @@ def fill_to_size_with_tile(tile_matrix, tile, width, height): def update_zoom(self, zoom): self.zoom_level = zoom image_path = BASE_DIR / "static/images/help.png" - self.error_image = ImageTk.PhotoImage(Image.open(image_path).resize((zoom, zoom))) + self.error_image = ImageTk.PhotoImage( + Image.open(image_path).resize((zoom, zoom)) + ) if self.lvl: for tile in self.tile_palette_ref_in_use: tile_name = tile.name diff --git a/src/modlunky2/ui/levels/vanilla_levels/multi_room/multi_room_editor_tab.py b/src/modlunky2/ui/levels/vanilla_levels/multi_room/multi_room_editor_tab.py index 844efb78..878f0574 100644 --- a/src/modlunky2/ui/levels/vanilla_levels/multi_room/multi_room_editor_tab.py +++ b/src/modlunky2/ui/levels/vanilla_levels/multi_room/multi_room_editor_tab.py @@ -291,7 +291,9 @@ def __set_zoom(self, zoom): self.canvas.set_zoom(zoom) self.tile_image_map = {} image_path = BASE_DIR / "static/images/help.png" - self.error_image = ImageTk.PhotoImage(Image.open(image_path).resize((zoom, zoom))) + self.error_image = ImageTk.PhotoImage( + Image.open(image_path).resize((zoom, zoom)) + ) self.redraw() def __get_chunk_for_template_draw_item( @@ -957,7 +959,10 @@ def draw_chunk(canvas_index, chunk_start_x, chunk_start_y, tile_codes): self.zoom_level, ) else: - logger.warning("Tile code %s found in room, but does not map to a valid tile code.", tilecode) + logger.warning( + "Tile code %s found in room, but does not map to a valid tile code.", + tilecode, + ) tile_image = self.error_image x_offset, y_offset = 0, 0 self.canvas.replace_tile_at( diff --git a/src/modlunky2/ui/levels/vanilla_levels/vanilla_level_editor.py b/src/modlunky2/ui/levels/vanilla_levels/vanilla_level_editor.py index 5e6fe0fe..44e437e7 100644 --- a/src/modlunky2/ui/levels/vanilla_levels/vanilla_level_editor.py +++ b/src/modlunky2/ui/levels/vanilla_levels/vanilla_level_editor.py @@ -926,7 +926,10 @@ def room_select(self): # Loads room when click if not parent node. tile.name, ) else: - logger.warning("Tile code %s found in room, but does not map to a valid tile code.", tile_code) + logger.warning( + "Tile code %s found in room, but does not map to a valid tile code.", + tile_code, + ) tile_image = self.error_image x_coord, y_coord = 0, 0 self.canvas.replace_tile_at(