1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

Implement debug console drop-down (no commands just yet) and fix UI keybinds.

This commit is contained in:
2021-10-19 22:14:30 -05:00
committed by John
parent f420fd9c38
commit 544b5f41ea
5 changed files with 94 additions and 12 deletions

View File

@@ -6,28 +6,36 @@
[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__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
[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
anchor_bottom = 1.0
margin_bottom = -180.0
custom_constants/separation = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextEdit" type="TextEdit" parent="VBoxContainer"]
[node name="TextEdit" type="TextEdit" parent="debug_canvas/VBoxContainer"]
margin_right = 640.0
margin_bottom = 144.0
rect_min_size = Vector2( 0, 144 )
text = "Turn 0
Player 1: 0 ships, 0 hits, 0 misses"
[node name="LineEdit" type="LineEdit" parent="VBoxContainer"]
[node name="LineEdit" type="LineEdit" parent="debug_canvas/VBoxContainer"]
margin_top = 146.0
margin_right = 640.0
margin_bottom = 170.0

View File

@@ -1,8 +1,21 @@
[gd_scene format=2]
[gd_scene load_steps=5 format=2]
[node name="Control" type="Control"]
[ext_resource path="res://scenes/Debug Menu.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/Gameplay.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/Title Screen.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/Options.tscn" type="PackedScene" id=4]
[node name="Root" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title Screen" parent="." instance=ExtResource( 3 )]
[node name="Game" parent="." instance=ExtResource( 2 )]
[node name="Options" parent="." instance=ExtResource( 4 )]
[node name="Debug Menu" parent="." instance=ExtResource( 1 )]

View File

@@ -0,0 +1,6 @@
[gd_scene format=2]
[node name="Control" type="Control"]
__meta__ = {
"_edit_use_anchors_": false
}