adds basic menu functionnality
This commit is contained in:
25
Menu.tscn
25
Menu.tscn
@@ -10,7 +10,10 @@ size = 60
|
||||
use_filter = true
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="Menu" type="CanvasLayer"]
|
||||
[node name="Menu" type="Control"]
|
||||
margin_right = 1920.0
|
||||
margin_bottom = 1080.0
|
||||
mouse_filter = 1
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
@@ -39,23 +42,29 @@ margin_top = -76.9716
|
||||
margin_right = 9.42896
|
||||
margin_bottom = 129.028
|
||||
rect_scale = Vector2( 2, 2 )
|
||||
mouse_default_cursor_shape = 9
|
||||
|
||||
[node name="Jouer" type="Label" parent="Main"]
|
||||
margin_right = 149.0
|
||||
margin_bottom = 66.0
|
||||
mouse_filter = 0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_colors/font_color_shadow = Color( 0.454902, 0.219608, 0.0901961, 1 )
|
||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/font_color_shadow = Color( 0.823529, 0.517647, 0.0823529, 1 )
|
||||
custom_constants/shadow_offset_x = 2
|
||||
custom_constants/shadow_offset_y = 3
|
||||
text = "Jouer"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="Options" type="Label" parent="Main"]
|
||||
margin_top = 70.0
|
||||
margin_right = 149.0
|
||||
margin_bottom = 136.0
|
||||
mouse_filter = 0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_colors/font_color_shadow = Color( 0.454902, 0.219608, 0.0901961, 1 )
|
||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/font_color_shadow = Color( 0.823529, 0.517647, 0.0823529, 1 )
|
||||
custom_constants/shadow_offset_x = 2
|
||||
custom_constants/shadow_offset_y = 3
|
||||
text = "Options"
|
||||
@@ -65,8 +74,10 @@ align = 1
|
||||
margin_top = 140.0
|
||||
margin_right = 149.0
|
||||
margin_bottom = 206.0
|
||||
mouse_filter = 0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
custom_colors/font_color_shadow = Color( 0.454902, 0.219608, 0.0901961, 1 )
|
||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/font_color_shadow = Color( 0.823529, 0.517647, 0.0823529, 1 )
|
||||
custom_constants/shadow_offset_x = 2
|
||||
custom_constants/shadow_offset_y = 3
|
||||
text = "Quitter"
|
||||
@@ -81,3 +92,9 @@ margin_left = -20.0
|
||||
margin_top = -20.0
|
||||
margin_right = 20.0
|
||||
margin_bottom = 20.0
|
||||
[connection signal="mouse_entered" from="Main/Jouer" to="." method="_on_Jouer_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Main/Jouer" to="." method="_on_Jouer_mouse_exited"]
|
||||
[connection signal="mouse_entered" from="Main/Options" to="." method="_on_Options_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Main/Options" to="." method="_on_Options_mouse_exited"]
|
||||
[connection signal="mouse_entered" from="Main/Quitter" to="." method="_on_Quitter_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Main/Quitter" to="." method="_on_Quitter_mouse_exited"]
|
||||
|
||||
Reference in New Issue
Block a user