From 435ac9fc19aad1b7ad24f0dabfb5937726b8cc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Thom=C3=A4?= Date: Tue, 22 Aug 2023 19:36:11 +0200 Subject: [PATCH] fix: recognize "maximum lines" setting in state chart debugger fixes #26 --- CHANGES.md | 8 ++++---- addons/godot_state_charts/plugin.cfg | 2 +- .../godot_state_charts/utilities/state_chart_debugger.gd | 2 +- .../utilities/state_chart_debugger.tscn | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b860b16..5978a94 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.2] - 2023-08-22 +### Fixed +- The state chart debugger now again properly recognizes the "Maximum Lines" setting ([#26](https://github.com/derkork/godot-statecharts/issues/26)). + ## [0.4.1] - 2023-08-21 ### Fixed @@ -22,11 +26,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - State changes by transitions with zero delay are now always happening in the same frame in which they were triggered. Before, state changes were delayed until the next frame. Because this could significantly delay complex state chains, this behavior was changed ([#21](https://github.com/derkork/godot-statecharts/issues/21)). Since this necessitated some other internal changes as well, there is no option to restore the old behaviour without introducing a lot of internal complexity. If for some reason you really need to delay a state change by one frame, you can use a transition with a very short delay (e.g. 0.0001 seconds). ### Added - - A new demo was added for showing the exact flow of events when changing states. It is located at `godot_state_charts_examples/order_of_events`. A section explaining this demo was added to the [documentation](manual/manual.md#order-of-events). ### Improved - - The state chart debugger now shows the frame number instead of the time when a change happened. This makes it easier to see the exact timing of events. It also now shows an entry when the state chart receives an event and when a transition is about to be triggered. @@ -36,7 +38,6 @@ It also now shows an entry when the state chart receives an event and when a tra ## [0.3.1] - 2023-05-03 ### Fixed - - The _Animation Name_ property of the _Animation Player State_ is now heeded ([#15](https://github.com/derkork/godot-statecharts/issues/15)). - All icons are now 16x16 pixels in size like the built-in Godot icons. ([#12](https://github.com/derkork/godot-statecharts/issues/12)) - The version number is now correctly displayed in the editor. @@ -89,7 +90,6 @@ It also now shows an entry when the state chart receives an event and when a tra - When transitioning directly to a state nested below a compound state, the initial state of the compound state will no longer be entered and immediately exited again ([#1](https://github.com/derkork/godot-statecharts/issues/1)). - ## [0.0.2] - 2023-03-31 ### Fixed - Moved theme file which is used by the demo projects to the correct location. diff --git a/addons/godot_state_charts/plugin.cfg b/addons/godot_state_charts/plugin.cfg index e2feffb..5cf0266 100644 --- a/addons/godot_state_charts/plugin.cfg +++ b/addons/godot_state_charts/plugin.cfg @@ -3,5 +3,5 @@ name="Godot State Charts" description="A simple, yet powerful state charts library for Godot" author="Jan Thomä & Contributors" -version="0.4.1" +version="0.4.2" script="godot_state_charts.gd" diff --git a/addons/godot_state_charts/utilities/state_chart_debugger.gd b/addons/godot_state_charts/utilities/state_chart_debugger.gd index 9c4a3f1..92c5325 100644 --- a/addons/godot_state_charts/utilities/state_chart_debugger.gd +++ b/addons/godot_state_charts/utilities/state_chart_debugger.gd @@ -56,7 +56,7 @@ func _ready(): process_mode = Node.PROCESS_MODE_ALWAYS # initialize the buffer - _buffer = RingBuffer.new() + _buffer = RingBuffer.new(maximum_lines) %CopyToClipboardButton.pressed.connect(func (): DisplayServer.clipboard_set(_history_edit.text)) %ClearButton.pressed.connect(_clear_history) diff --git a/addons/godot_state_charts/utilities/state_chart_debugger.tscn b/addons/godot_state_charts/utilities/state_chart_debugger.tscn index 3ae23c2..f55f64d 100644 --- a/addons/godot_state_charts/utilities/state_chart_debugger.tscn +++ b/addons/godot_state_charts/utilities/state_chart_debugger.tscn @@ -14,7 +14,6 @@ script = ExtResource("1_i74os") layout_mode = 2 [node name="StateChart" type="MarginContainer" parent="TabContainer"] -visible = false layout_mode = 2 theme_override_constants/margin_left = 5 theme_override_constants/margin_top = 5 @@ -58,6 +57,7 @@ layout_mode = 2 text = "Copy to Clipboard" [node name="Settings" type="MarginContainer" parent="TabContainer"] +visible = false layout_mode = 2 theme_override_constants/margin_left = 5 theme_override_constants/margin_top = 5