mirror of
https://github.com/Yadciel1/2048-Shooter.git
synced 2024-11-12 17:11:18 +01:00
49 lines
1.0 KiB
Plaintext
49 lines
1.0 KiB
Plaintext
[gd_scene load_steps=2 format=2]
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
script/source = "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
|
|
|
|
|
|
func _on_Button_pressed():
|
|
get_tree().change_scene(\"res://Game.tscn\")
|
|
pass # Replace with function body.
|
|
"
|
|
|
|
[node name="Control" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = SubResource( 1 )
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -20.0
|
|
margin_top = -20.0
|
|
margin_right = 20.0
|
|
margin_bottom = 20.0
|
|
|
|
[node name="Button" type="Button" parent="VBoxContainer"]
|
|
margin_right = 57.0
|
|
margin_bottom = 20.0
|
|
text = "Restart"
|
|
icon_align = 1
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_Button_pressed"]
|