Skip to content

Commit

Permalink
Merge pull request #143 from AnidemDex/fix_debugger_script
Browse files Browse the repository at this point in the history
Fix debugger script which was not updated with #141
  • Loading branch information
AnidemDex authored Mar 23, 2024
2 parents 8a4cf34 + 31f1b03 commit 61250aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions debugger/blockflow_debugger.gd
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
@tool
extends EditorDebuggerPlugin

const DConst = preload("res://addons/blockflow/debugger/debugger_constants.gd")
const Constants = preload("res://addons/blockflow/debugger/constants.gd")
const DebuggerTab = preload("res://addons/blockflow/debugger/debugger_tab.gd")

var editor_plugin:EditorPlugin
var debugger_tab := DebuggerTab.new()

func _has_capture(capture: String) -> bool:
return capture == DConst.DEBUGGER_PREFIX
return capture == Constants.DEBUGGER_PREFIX

func _capture(message: String, data: Array, session_id: int) -> bool:
match message:
DConst.DEBUGGER_REGISTER_PROCESSOR:
Constants.DEBUGGER_REGISTER_PROCESSOR:
debugger_tab.register_processor(data[0])
return true
DConst.DEBUGGER_UNREGISTER_PROCESSOR:
Constants.DEBUGGER_UNREGISTER_PROCESSOR:
debugger_tab.unregister_processor(data[0])
return true
DConst.DEBUGGER_PROCESSOR_PROCESSING_COLLECTION:
Constants.DEBUGGER_PROCESSOR_PROCESSING_COLLECTION:
debugger_tab.processor_processing_collection(data[0], data[1])
return true
DConst.DEBUGGER_PROCESSOR_PROCESSING_COMMAND:
Constants.DEBUGGER_PROCESSOR_PROCESSING_COMMAND:
debugger_tab.processor_processing_command(data[0], data[1])
return true

Expand Down

0 comments on commit 61250aa

Please sign in to comment.