Files
puzzle-quest/scenes/main.tscn
T

109 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-05-08 15:12:37 +02:00
[gd_scene load_steps=4 format=2]
2021-05-08 12:49:27 +02:00
2021-05-08 13:16:13 +02:00
[ext_resource path="res://scenes/main.gd" type="Script" id=1]
2021-05-08 15:12:37 +02:00
[ext_resource path="res://icon.png" type="Texture" id=2]
2021-05-08 13:16:13 +02:00
[sub_resource type="GDScript" id=1]
script/source = "extends LinkButton
2021-05-08 13:22:37 +02:00
# Quit the game with properly exit code
"
2021-05-08 13:16:13 +02:00
[node name="Main" type="Node"]
script = ExtResource( 1 )
2021-05-08 12:49:27 +02:00
2021-05-08 15:12:37 +02:00
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 1024.0
margin_bottom = 600.0
color = Color( 0.156863, 0.00392157, 0.0156863, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
2021-05-08 12:49:27 +02:00
[node name="Grid" type="GridContainer" parent="."]
margin_left = -1.33484
margin_right = 1022.67
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}
2021-05-08 15:12:37 +02:00
[node name="Menu" type="Panel" parent="Grid"]
[node name="Banner" type="Panel" parent="Grid/Menu"]
margin_right = 150.0
margin_bottom = 150.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="Grid/Menu/Banner"]
margin_right = 150.0
margin_bottom = 150.0
color = Color( 0.992157, 0.705882, 0, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" type="Label" parent="Grid/Menu/Banner/ColorRect"]
margin_right = 150.0
margin_bottom = 150.0
text = "Loki
"
2021-05-08 12:49:27 +02:00
align = 1
2021-05-08 15:12:37 +02:00
valign = 2
__meta__ = {
"_edit_use_anchors_": false
}
2021-05-08 12:49:27 +02:00
2021-05-08 15:12:37 +02:00
[node name="TextureRect" type="TextureRect" parent="Grid/Menu/Banner/ColorRect/Title"]
margin_left = 48.0
margin_right = 176.0
margin_bottom = 128.0
rect_scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Action" type="Panel" parent="Grid/Menu"]
margin_top = 150.0
margin_right = 150.0
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="New" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 30.0
margin_right = 150.0
margin_bottom = 44.0
2021-05-08 12:49:27 +02:00
text = "Nouveau"
2021-05-08 15:12:37 +02:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-05-08 12:49:27 +02:00
2021-05-08 15:12:37 +02:00
[node name="Continue" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 70.0
2021-05-08 12:49:27 +02:00
margin_right = 151.0
2021-05-08 15:12:37 +02:00
margin_bottom = 74.0
2021-05-08 13:44:51 +02:00
disabled = true
2021-05-08 12:49:27 +02:00
text = "Reprendre"
2021-05-08 15:12:37 +02:00
[node name="About" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 110.0
2021-05-08 12:49:27 +02:00
margin_right = 151.0
2021-05-08 15:12:37 +02:00
margin_bottom = 80.0
2021-05-08 12:49:27 +02:00
text = "Credit"
2021-05-08 15:12:37 +02:00
[node name="Quit" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 400.0
2021-05-08 12:49:27 +02:00
margin_right = 151.0
2021-05-08 15:12:37 +02:00
margin_bottom = 98.0
2021-05-08 12:49:27 +02:00
text = "Quitter"
2021-05-08 13:16:13 +02:00
script = SubResource( 1 )
2021-05-08 15:12:37 +02:00
[connection signal="pressed" from="Grid/Menu/Action/New" to="." method="_on_New_pressed"]
[connection signal="pressed" from="Grid/Menu/Action/About" to="." method="_on_About_pressed"]
[connection signal="pressed" from="Grid/Menu/Action/Quit" to="." method="_on_Quit_pressed"]