Skip to content

Commit

Permalink
chore: storing version and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
StraToN committed Aug 13, 2024
1 parent 011ce71 commit b5e88e2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
10 changes: 5 additions & 5 deletions addons/escoria-core/game/esc_logger.gd
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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()


Expand All @@ -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

0 comments on commit b5e88e2

Please sign in to comment.