Customize fast menu main
This commit is contained in:
+73
-22
@@ -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://scenes/main.gd" type="Script" id=1]
|
||||||
|
[ext_resource path="res://icon.png" type="Texture" id=2]
|
||||||
|
|
||||||
[sub_resource type="GDScript" id=1]
|
[sub_resource type="GDScript" id=1]
|
||||||
script/source = "extends LinkButton
|
script/source = "extends LinkButton
|
||||||
@@ -11,6 +12,14 @@ script/source = "extends LinkButton
|
|||||||
[node name="Main" type="Node"]
|
[node name="Main" type="Node"]
|
||||||
script = ExtResource( 1 )
|
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="."]
|
[node name="Grid" type="GridContainer" parent="."]
|
||||||
margin_left = -1.33484
|
margin_left = -1.33484
|
||||||
margin_right = 1022.67
|
margin_right = 1022.67
|
||||||
@@ -19,39 +28,81 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Title" type="Label" parent="Grid"]
|
[node name="Menu" type="Panel" parent="Grid"]
|
||||||
margin_right = 151.0
|
|
||||||
margin_bottom = 14.0
|
[node name="Banner" type="Panel" parent="Grid/Menu"]
|
||||||
text = "Athena - Hidden Object"
|
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
|
align = 1
|
||||||
valign = 1
|
valign = 2
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="New" type="LinkButton" parent="Grid"]
|
[node name="TextureRect" type="TextureRect" parent="Grid/Menu/Banner/ColorRect/Title"]
|
||||||
margin_top = 18.0
|
margin_left = 48.0
|
||||||
margin_right = 151.0
|
margin_right = 176.0
|
||||||
margin_bottom = 32.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"
|
text = "Nouveau"
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="Continue" type="LinkButton" parent="Grid"]
|
[node name="Continue" type="LinkButton" parent="Grid/Menu/Action"]
|
||||||
margin_top = 36.0
|
margin_top = 70.0
|
||||||
margin_right = 151.0
|
margin_right = 151.0
|
||||||
margin_bottom = 50.0
|
margin_bottom = 74.0
|
||||||
disabled = true
|
disabled = true
|
||||||
text = "Reprendre"
|
text = "Reprendre"
|
||||||
|
|
||||||
[node name="About" type="LinkButton" parent="Grid"]
|
[node name="About" type="LinkButton" parent="Grid/Menu/Action"]
|
||||||
margin_top = 54.0
|
margin_top = 110.0
|
||||||
margin_right = 151.0
|
margin_right = 151.0
|
||||||
margin_bottom = 68.0
|
margin_bottom = 80.0
|
||||||
text = "Credit"
|
text = "Credit"
|
||||||
|
|
||||||
[node name="Quit" type="LinkButton" parent="Grid"]
|
[node name="Quit" type="LinkButton" parent="Grid/Menu/Action"]
|
||||||
margin_top = 72.0
|
margin_top = 400.0
|
||||||
margin_right = 151.0
|
margin_right = 151.0
|
||||||
margin_bottom = 86.0
|
margin_bottom = 98.0
|
||||||
text = "Quitter"
|
text = "Quitter"
|
||||||
script = SubResource( 1 )
|
script = SubResource( 1 )
|
||||||
|
|
||||||
[connection signal="pressed" from="Grid/New" to="." method="_on_New_pressed"]
|
[connection signal="pressed" from="Grid/Menu/Action/New" to="." method="_on_New_pressed"]
|
||||||
[connection signal="pressed" from="Grid/About" to="." method="_on_About_pressed"]
|
[connection signal="pressed" from="Grid/Menu/Action/About" to="." method="_on_About_pressed"]
|
||||||
[connection signal="pressed" from="Grid/Quit" to="." method="_on_Quit_pressed"]
|
[connection signal="pressed" from="Grid/Menu/Action/Quit" to="." method="_on_Quit_pressed"]
|
||||||
|
|||||||
Reference in New Issue
Block a user