From d0ca8edcaa46aa62b151246a8a5298ad6d8f5ce9 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Sun, 24 Sep 2023 18:40:49 +0200 Subject: [PATCH] starting with the home buttons --- scenes/main_menu/MainMenu.tscn | 38 ++++++++++++++++++++----------- themes/default/Default_theme.tres | 16 ++++++------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/scenes/main_menu/MainMenu.tscn b/scenes/main_menu/MainMenu.tscn index 6729b09..761775c 100644 --- a/scenes/main_menu/MainMenu.tscn +++ b/scenes/main_menu/MainMenu.tscn @@ -24,7 +24,7 @@ grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 script = ExtResource("1_yx80n") -metadata/_edit_vertical_guides_ = [540.0, 93.0, 1023.0] +metadata/_edit_vertical_guides_ = [540.0, 62.0, 1020.0] [node name="Background" type="ColorRect" parent="."] material = SubResource("ShaderMaterial_v5r1v") @@ -101,10 +101,10 @@ size_flags_vertical = 4 layout_mode = 2 [node name="Button" parent="VBoxContainer/VSplitContainer/BottomCenterContainer/ToDoBtn" index="0"] -offset_left = -479.0 -offset_top = 148.0 -offset_right = 480.0 -offset_bottom = 298.0 +offset_left = -439.5 +offset_top = 97.0 +offset_right = -83.5 +offset_bottom = 388.0 text = "To-Do" [node name="CalendarBtn" parent="VBoxContainer/VSplitContainer/BottomCenterContainer" instance=ExtResource("4_71840")] @@ -114,10 +114,10 @@ layout_mode = 2 anchors_preset = 0 anchor_right = 0.0 anchor_bottom = 0.0 -offset_left = -479.0 -offset_top = 388.0 -offset_right = 480.0 -offset_bottom = 538.0 +offset_left = 79.0 +offset_top = 97.0 +offset_right = 434.0 +offset_bottom = 388.0 grow_horizontal = 1 grow_vertical = 1 text = "Calendar" @@ -126,10 +126,20 @@ text = "Calendar" layout_mode = 2 [node name="Button" parent="VBoxContainer/VSplitContainer/BottomCenterContainer/StoreBtn" index="0"] -offset_left = -479.0 -offset_top = 628.0 -offset_right = 480.0 -offset_bottom = 778.0 +offset_left = -439.5 +offset_top = 502.0 +offset_right = -83.5 +offset_bottom = 793.0 +text = "Store" + +[node name="StoreBtn2" parent="VBoxContainer/VSplitContainer/BottomCenterContainer" instance=ExtResource("4_71840")] +layout_mode = 2 + +[node name="Button" parent="VBoxContainer/VSplitContainer/BottomCenterContainer/StoreBtn2" index="0"] +offset_left = 79.5 +offset_top = 502.0 +offset_right = 435.5 +offset_bottom = 793.0 text = "Store" [node name="MenuButton" parent="." instance=ExtResource("5_qjr8j")] @@ -143,8 +153,10 @@ scale = Vector2(1.5, 1.5) [connection signal="pressed" from="VBoxContainer/VSplitContainer/BottomCenterContainer/ToDoBtn/Button" to="." method="_on_to_do_button_pressed"] [connection signal="pressed" from="VBoxContainer/VSplitContainer/BottomCenterContainer/CalendarBtn/Button" to="." method="_on_calendar_button_pressed"] [connection signal="pressed" from="VBoxContainer/VSplitContainer/BottomCenterContainer/StoreBtn/Button" to="." method="_on_store_button_pressed"] +[connection signal="pressed" from="VBoxContainer/VSplitContainer/BottomCenterContainer/StoreBtn2/Button" to="." method="_on_store_button_pressed"] [connection signal="scene_changed" from="MenuButton" to="." method="_on_menu_button_scene_changed"] [editable path="VBoxContainer/VSplitContainer/BottomCenterContainer/ToDoBtn"] [editable path="VBoxContainer/VSplitContainer/BottomCenterContainer/CalendarBtn"] [editable path="VBoxContainer/VSplitContainer/BottomCenterContainer/StoreBtn"] +[editable path="VBoxContainer/VSplitContainer/BottomCenterContainer/StoreBtn2"] diff --git a/themes/default/Default_theme.tres b/themes/default/Default_theme.tres index b436e32..6c5e589 100644 --- a/themes/default/Default_theme.tres +++ b/themes/default/Default_theme.tres @@ -6,20 +6,20 @@ bg_color = Color(0.286275, 0.647059, 0.8, 1) border_width_bottom = 10 border_color = Color(0.168627, 0.458824, 0.580392, 1) -corner_radius_top_left = 16 -corner_radius_top_right = 16 -corner_radius_bottom_right = 16 -corner_radius_bottom_left = 16 +corner_radius_top_left = 30 +corner_radius_top_right = 30 +corner_radius_bottom_right = 30 +corner_radius_bottom_left = 30 anti_aliasing = false [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bk2rt"] bg_color = Color(0.286275, 0.647059, 0.8, 1) border_width_bottom = 20 border_color = Color(0.168627, 0.458824, 0.580392, 1) -corner_radius_top_left = 16 -corner_radius_top_right = 16 -corner_radius_bottom_right = 16 -corner_radius_bottom_left = 16 +corner_radius_top_left = 30 +corner_radius_top_right = 30 +corner_radius_bottom_right = 30 +corner_radius_bottom_left = 30 anti_aliasing = false [resource] -- 2.30.2