From b5e88e2d288395eb05a8c0ebb3904e06df4f7719 Mon Sep 17 00:00:00 2001 From: StraToN Date: Tue, 13 Aug 2024 06:38:14 +0000 Subject: [PATCH] chore: storing version and changelog --- CHANGELOG.md | 4 ++++ addons/escoria-core/game/esc_logger.gd | 10 +++++----- .../game/scenes/esc_prompt/esc_prompt_popup.gd | 8 ++++---- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21ae96bc4..3480d2091 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [4.0.0-alpha.264](https://github.com/godot-escoria/escoria-demo-game/compare/v0.0.0...v4.0.0-alpha.264) (2024-08-13) + + + ## [4.0.0-alpha.263](https://github.com/godot-escoria/escoria-demo-game/compare/v0.0.0...v4.0.0-alpha.263) (2024-06-24) diff --git a/addons/escoria-core/game/esc_logger.gd b/addons/escoria-core/game/esc_logger.gd index 808b93215..b401bb923 100644 --- a/addons/escoria-core/game/esc_logger.gd +++ b/addons/escoria-core/game/esc_logger.gd @@ -1,7 +1,7 @@ class ESCLoggerBase: # Perform emergency savegame signal perform_emergency_savegame - + # Sends the error or warning message in the signal signal error_message(message) @@ -23,17 +23,17 @@ class ESCLoggerBase: # Configured log level var _log_level: int - # If true, assert() functions will not be called, thus the program won't exit or error. + # If true, assert() functions will not be called, thus the program won't exit or error. # Resets to false after an assert() call was ignored once. var dont_assert: bool = false - + # Constructor func _init(): _log_level = _level_map[ESCProjectSettingsManager.get_setting( ESCProjectSettingsManager.LOG_LEVEL ).to_upper()] - + func formatted_message(context: String, msg: String, letter: String) -> String: @@ -180,7 +180,7 @@ class ESCLoggerFile extends ESCLoggerBase: if _log_level >= LOG_INFO: _log_to_file_message(context, msg, "I") .info_message(context, msg) - + # Warning log func warn(owner: Object, msg: String): if _log_level >= LOG_WARNING: diff --git a/addons/escoria-core/game/scenes/esc_prompt/esc_prompt_popup.gd b/addons/escoria-core/game/scenes/esc_prompt/esc_prompt_popup.gd index a87d1bbff..2004f82f0 100644 --- a/addons/escoria-core/game/scenes/esc_prompt/esc_prompt_popup.gd +++ b/addons/escoria-core/game/scenes/esc_prompt/esc_prompt_popup.gd @@ -51,9 +51,9 @@ func _on_command_text_entered(p_command_str : String): past_actions.text += "\n" past_actions.text += "# " + p_command_str past_actions.text += "\n" - + _historize_command(p_command_str) - + if p_command_str in ["history", "hist"]: for ch in commands_history: past_actions.text += ch + "\n" @@ -75,7 +75,7 @@ func _on_command_text_entered(p_command_str : String): while ret[1] != _print.get_command_name(): ret = yield(escoria.event_manager, "event_finished") past_actions.text += "Returned code: %d" % ret[0] - + past_actions.scroll_vertical = past_actions.get_line_count() @@ -94,4 +94,4 @@ func _historize_command(p_command: String) -> void: if commands_history.size() + 1 > COMMANDS_HISTORY_LENGTH: commands_history.remove(0) commands_history_current_id = COMMANDS_HISTORY_LENGTH - 1 - +