From 16404c7f5d83a8b899a886dc4d4f28a7ec905f30 Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Sun, 1 Oct 2023 20:12:38 +0400 Subject: [PATCH] small changes in menu --- src/scenes/game/Game.tscn | 1 + src/scenes/menu/Menu.tscn | 47 +++++++++++++++++---------------------- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index 6c3c926..be708e4 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -92,6 +92,7 @@ position = Vector2( 509, 100 ) position = Vector2( 160, 90 ) amount = 9 lifetime = 3.0 +preprocess = 3.0 emission_shape = 2 emission_rect_extents = Vector2( 160, 60 ) gravity = Vector2( 0, -5 ) diff --git a/src/scenes/menu/Menu.tscn b/src/scenes/menu/Menu.tscn index c314ecd..543afe6 100644 --- a/src/scenes/menu/Menu.tscn +++ b/src/scenes/menu/Menu.tscn @@ -16,15 +16,27 @@ centered = false region_enabled = true region_rect = Rect2( 0, 0, 320, 180 ) +[node name="CPUParticles2D" type="CPUParticles2D" parent="View"] +position = Vector2( 160, 90 ) +amount = 18 +lifetime = 3.0 +preprocess = 3.0 +emission_shape = 2 +emission_rect_extents = Vector2( 160, 60 ) +gravity = Vector2( 0, -5 ) +radial_accel = 4.0 +radial_accel_random = 1.0 +color = Color( 0.133333, 0.133333, 0.137255, 1 ) + [node name="UI" type="Control" parent="."] margin_right = 160.0 margin_bottom = 90.0 [node name="PlayButton" type="Button" parent="UI"] margin_left = 20.0 -margin_top = 20.0 +margin_top = 40.0 margin_right = 140.0 -margin_bottom = 60.0 +margin_bottom = 80.0 theme = ExtResource( 3 ) text = "Play" flat = true @@ -39,30 +51,11 @@ patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 -[node name="SettingsButton" type="Button" parent="UI"] -margin_left = 20.0 -margin_top = 70.0 -margin_right = 140.0 -margin_bottom = 110.0 -theme = ExtResource( 3 ) -text = "Settings" -flat = true - -[node name="Button_Outline" type="NinePatchRect" parent="UI/SettingsButton"] -margin_right = 120.0 -margin_bottom = 40.0 -rect_clip_content = true -texture = ExtResource( 4 ) -patch_margin_left = 2 -patch_margin_top = 2 -patch_margin_right = 2 -patch_margin_bottom = 2 - [node name="ExitButton" type="Button" parent="UI"] margin_left = 20.0 -margin_top = 120.0 +margin_top = 100.0 margin_right = 140.0 -margin_bottom = 160.0 +margin_bottom = 140.0 theme = ExtResource( 3 ) text = "Exit" flat = true @@ -78,10 +71,10 @@ patch_margin_right = 2 patch_margin_bottom = 2 [node name="Label" type="Label" parent="UI"] -margin_left = 212.0 -margin_top = 111.0 -margin_right = 320.0 -margin_bottom = 180.0 +margin_left = 192.0 +margin_top = 56.0 +margin_right = 300.0 +margin_bottom = 125.0 theme = ExtResource( 3 ) text = "Manskage iLunaiLuna