Skip to content

Commit

Permalink
fix: recognize "maximum lines" setting in state chart debugger
Browse files Browse the repository at this point in the history
fixes #26
  • Loading branch information
derkork committed Aug 22, 2023
1 parent 5ed2824 commit 435ac9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.

Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion addons/godot_state_charts/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 435ac9f

Please sign in to comment.