diff --git a/src/scenes/menu/Menu.tscn b/src/scenes/menu/Menu.tscn index a8af7f0..c314ecd 100644 --- a/src/scenes/menu/Menu.tscn +++ b/src/scenes/menu/Menu.tscn @@ -1,13 +1,21 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://src/scenes/menu/menu.gd" type="Script" id=1] +[ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=2] [ext_resource path="res://res/themes/default.tres" type="Theme" id=3] +[ext_resource path="res://src/scenes/menu/button/button_outline.png" type="Texture" id=4] [node name="Menu" type="Node"] script = ExtResource( 1 ) [node name="View" type="Node2D" parent="."] +[node name="Background" type="Sprite" parent="View"] +texture = ExtResource( 2 ) +centered = false +region_enabled = true +region_rect = Rect2( 0, 0, 320, 180 ) + [node name="UI" type="Control" parent="."] margin_right = 160.0 margin_bottom = 90.0 @@ -19,6 +27,17 @@ margin_right = 140.0 margin_bottom = 60.0 theme = ExtResource( 3 ) text = "Play" +flat = true + +[node name="Button_Outline" type="NinePatchRect" parent="UI/PlayButton"] +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="SettingsButton" type="Button" parent="UI"] margin_left = 20.0 @@ -27,6 +46,17 @@ 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 @@ -35,6 +65,17 @@ margin_right = 140.0 margin_bottom = 160.0 theme = ExtResource( 3 ) text = "Exit" +flat = true + +[node name="Button_Outline" type="NinePatchRect" parent="UI/ExitButton"] +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="Label" type="Label" parent="UI"] margin_left = 212.0 diff --git a/src/scenes/menu/background/background.png b/src/scenes/menu/background/background.png new file mode 100644 index 0000000..33ab882 Binary files /dev/null and b/src/scenes/menu/background/background.png differ diff --git a/src/scenes/menu/background/background.png.import b/src/scenes/menu/background/background.png.import new file mode 100644 index 0000000..37b5908 --- /dev/null +++ b/src/scenes/menu/background/background.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/background.png-ebca5d93cc16882530af3ae8f4b2c1b7.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/menu/background/background.png" +dest_files=[ "res://.import/background.png-ebca5d93cc16882530af3ae8f4b2c1b7.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=1 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/scenes/menu/button/button_outline.png b/src/scenes/menu/button/button_outline.png new file mode 100644 index 0000000..3ae24cf Binary files /dev/null and b/src/scenes/menu/button/button_outline.png differ diff --git a/src/scenes/menu/button/button_outline.png.import b/src/scenes/menu/button/button_outline.png.import new file mode 100644 index 0000000..b58f8c0 --- /dev/null +++ b/src/scenes/menu/button/button_outline.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/button_outline.png-77c63f9f20743f87408afd074242b2ba.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/menu/button/button_outline.png" +dest_files=[ "res://.import/button_outline.png-77c63f9f20743f87408afd074242b2ba.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0