mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
Pushing what I have of the debug menu so I don't forget. TODO: Pulldown keypress, command processing.
This commit is contained in:
parent
1e8a21d427
commit
07340d2fe6
4
godot_ship/main.tres
Normal file
4
godot_ship/main.tres
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gd_resource type="Theme" format=2]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
resource_name = "Main Theme"
|
@ -1,8 +1,35 @@
|
|||||||
[gd_scene format=2]
|
[gd_scene load_steps=3 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]
|
||||||
|
|
||||||
[node name="Debug" type="Control"]
|
[node name="Debug" type="Control"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
theme = ExtResource( 1 )
|
||||||
|
script = ExtResource( 2 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
custom_constants/separation = 2
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="TextEdit" type="TextEdit" parent="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"]
|
||||||
|
margin_top = 146.0
|
||||||
|
margin_right = 640.0
|
||||||
|
margin_bottom = 170.0
|
||||||
|
text = ">"
|
||||||
|
caret_blink = true
|
||||||
|
16
godot_ship/script/debug/debug_menu.gd
Normal file
16
godot_ship/script/debug/debug_menu.gd
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
extends Control
|
||||||
|
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a = 2
|
||||||
|
# var b = "text"
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta):
|
||||||
|
# pass
|
Loading…
Reference in New Issue
Block a user