From 68afe1dce8e1cf5737c2043b419ecb610e89e70d Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Thu, 27 Mar 2025 10:07:45 -0400 Subject: [PATCH] Removing unnecessary comments --- save_load/autoloads/save_game_manager.gd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/save_load/autoloads/save_game_manager.gd b/save_load/autoloads/save_game_manager.gd index 86d1274..d99053d 100644 --- a/save_load/autoloads/save_game_manager.gd +++ b/save_load/autoloads/save_game_manager.gd @@ -20,12 +20,11 @@ signal close_save_list_ui signal toggle_save_icon_generation(toggled: bool) ## Enable/Disable the generation of a screenshot during save for the save icon. +var _enable_save_icon_generation: bool = true var _game_data_resource: SaveGameDataResource = SaveGameDataResource.new() var _save_icon_size: Vector2i = Vector2i(896, 504) ## If Vector2.ZERO, uses the user's resolution var _save_level_data_component: SaveLevelDataComponent ## Contains the save paths and filenames -var _enable_save_icon_generation: bool = true - func _ready() -> void: quick_load.connect(quick_load_game) @@ -184,10 +183,7 @@ func _take_save_screenshot(save_game_file_path: String) -> void: if !_enable_save_icon_generation: return var _icon_filepath: String = save_game_file_path.replace(".tres", ".png") - - # TODO: Hide the UI before taking the screenshot var _icon: Image = get_viewport().get_texture().get_image() - # TODO: Show the UI after taking the screenshot if _save_icon_size != Vector2i.ZERO: _icon.resize(_save_icon_size.x, _save_icon_size.y)