mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Make debug menu fully functional, flesh out command bus.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://main.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://script/debug/debug_menu.gd" type="Script" id=2]
|
||||
[ext_resource path="res://script/debug/In.gd" type="Script" id=3]
|
||||
[ext_resource path="res://script/debug/Out.gd" type="Script" id=4]
|
||||
|
||||
[node name="Debug" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -360.0
|
||||
margin_bottom = -360.0
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
@@ -16,8 +16,6 @@ __meta__ = {
|
||||
|
||||
[node name="debug_canvas" type="CanvasLayer" parent="."]
|
||||
layer = 69
|
||||
offset = Vector2( 0, -360 )
|
||||
transform = Transform2D( 1, 0, 0, 1, 0, -360 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="debug_canvas"]
|
||||
anchor_right = 1.0
|
||||
@@ -36,8 +34,10 @@ rect_min_size = Vector2( 0, 144 )
|
||||
readonly = true
|
||||
syntax_highlighting = true
|
||||
fold_gutter = true
|
||||
smooth_scrolling = true
|
||||
wrap_enabled = true
|
||||
minimap_draw = true
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="debug_canvas/VBoxContainer"]
|
||||
margin_top = 146.0
|
||||
@@ -46,5 +46,8 @@ margin_bottom = 170.0
|
||||
max_length = 256
|
||||
placeholder_text = "By your command."
|
||||
caret_blink = true
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[connection signal="clear_line" from="." to="debug_canvas/VBoxContainer/LineEdit" method="_on_Debug_clear_line"]
|
||||
[connection signal="print_text" from="." to="debug_canvas/VBoxContainer/TextEdit" method="_on_Debug_print_text"]
|
||||
[connection signal="text_entered" from="debug_canvas/VBoxContainer/LineEdit" to="." method="_on_LineEdit_text_entered"]
|
||||
|
||||
Reference in New Issue
Block a user