Customize fast menu main

This commit is contained in:
VAILLANT Jeremy
2021-05-08 15:12:37 +02:00
parent 062b2189c1
commit ce10988747
+73 -22
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://scenes/main.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[sub_resource type="GDScript" id=1]
script/source = "extends LinkButton
@@ -11,6 +12,14 @@ script/source = "extends LinkButton
[node name="Main" type="Node"]
script = ExtResource( 1 )
[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
}
[node name="Grid" type="GridContainer" parent="."]
margin_left = -1.33484
margin_right = 1022.67
@@ -19,39 +28,81 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="Title" type="Label" parent="Grid"]
margin_right = 151.0
margin_bottom = 14.0
text = "Athena - Hidden Object"
[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
"
align = 1
valign = 1
valign = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="New" type="LinkButton" parent="Grid"]
margin_top = 18.0
margin_right = 151.0
margin_bottom = 32.0
[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
text = "Nouveau"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Continue" type="LinkButton" parent="Grid"]
margin_top = 36.0
[node name="Continue" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 70.0
margin_right = 151.0
margin_bottom = 50.0
margin_bottom = 74.0
disabled = true
text = "Reprendre"
[node name="About" type="LinkButton" parent="Grid"]
margin_top = 54.0
[node name="About" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 110.0
margin_right = 151.0
margin_bottom = 68.0
margin_bottom = 80.0
text = "Credit"
[node name="Quit" type="LinkButton" parent="Grid"]
margin_top = 72.0
[node name="Quit" type="LinkButton" parent="Grid/Menu/Action"]
margin_top = 400.0
margin_right = 151.0
margin_bottom = 86.0
margin_bottom = 98.0
text = "Quitter"
script = SubResource( 1 )
[connection signal="pressed" from="Grid/New" to="." method="_on_New_pressed"]
[connection signal="pressed" from="Grid/About" to="." method="_on_About_pressed"]
[connection signal="pressed" from="Grid/Quit" to="." method="_on_Quit_pressed"]
[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"]