Skip to content

Commit

Permalink
fix: use ASCII to represent event types to avoid slowing down the deb…
Browse files Browse the repository at this point in the history
…ugger

fixes #84
  • Loading branch information
derkork committed Feb 25, 2024
1 parent f8ce0df commit 15e3e59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/godot_state_charts/utilities/debugger_history.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ func add_history_entry(frame:int, text:String):

## Adds a transition to the history list.
func add_transition(frame:int, name:String, from:String, to:String):
add_history_entry(frame, "↪️ Transition: %s from %s to %s" % [name, from, to])
add_history_entry(frame, "[»] Transition: %s from %s to %s" % [name, from, to])


## Adds an event to the history list.
func add_event(frame:int, event:StringName):
add_history_entry(frame, " Event received: %s" % event)
add_history_entry(frame, "[!] Event received: %s" % event)


## Adds a state entered event to the history list.
func add_state_entered(frame:int, name:StringName):
add_history_entry(frame, "🟢 Enter: %s" % name)
add_history_entry(frame, "[>] Enter: %s" % name)


## Adds a state exited event to the history list.
func add_state_exited(frame:int, name:StringName):
add_history_entry(frame, "🔴 Exit: %s" % name)
add_history_entry(frame, "[<] Exit: %s" % name)


## Clears the history.
Expand Down

0 comments on commit 15e3e59

Please sign in to comment.