From 50db973705a6a2c147d2656cfca908af1e0459b0 Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Mon, 2 Oct 2023 19:06:00 +0400 Subject: [PATCH] menu --- res/themes/default.tres | 1 + src/scenes/menu/Menu.tscn | 36 +++++++----------- src/scenes/menu/background/main_menu.png | Bin 0 -> 9336 bytes .../menu/background/main_menu.png.import | 35 +++++++++++++++++ 4 files changed, 49 insertions(+), 23 deletions(-) create mode 100644 src/scenes/menu/background/main_menu.png create mode 100644 src/scenes/menu/background/main_menu.png.import diff --git a/res/themes/default.tres b/res/themes/default.tres index f806a20..41f81a2 100644 --- a/res/themes/default.tres +++ b/res/themes/default.tres @@ -3,6 +3,7 @@ [ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1] [sub_resource type="DynamicFont" id=1] +size = 8 font_data = ExtResource( 1 ) [resource] diff --git a/src/scenes/menu/Menu.tscn b/src/scenes/menu/Menu.tscn index 8bab30d..917c8d3 100644 --- a/src/scenes/menu/Menu.tscn +++ b/src/scenes/menu/Menu.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=7 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://src/scenes/menu/background/main_menu.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] [ext_resource path="res://res/sounds/menu/click.wav" type="AudioStream" id=5] @@ -35,17 +35,17 @@ margin_right = 160.0 margin_bottom = 90.0 [node name="PlayButton" type="Button" parent="UI"] -margin_left = 20.0 -margin_top = 40.0 -margin_right = 140.0 -margin_bottom = 80.0 +margin_left = 138.0 +margin_top = 45.0 +margin_right = 218.0 +margin_bottom = 72.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 +margin_right = 80.0 +margin_bottom = 27.0 rect_clip_content = true texture = ExtResource( 4 ) patch_margin_left = 2 @@ -60,17 +60,17 @@ stream = ExtResource( 5 ) stream = ExtResource( 6 ) [node name="ExitButton" type="Button" parent="UI"] -margin_left = 20.0 -margin_top = 100.0 -margin_right = 140.0 -margin_bottom = 140.0 +margin_left = 122.0 +margin_top = 90.0 +margin_right = 202.0 +margin_bottom = 117.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 +margin_right = 80.0 +margin_bottom = 27.0 rect_clip_content = true texture = ExtResource( 4 ) patch_margin_left = 2 @@ -84,16 +84,6 @@ stream = ExtResource( 5 ) [node name="AudioHovering" type="AudioStreamPlayer" parent="UI/ExitButton"] stream = ExtResource( 6 ) -[node name="Label" type="Label" parent="UI"] -margin_left = 192.0 -margin_top = 56.0 -margin_right = 300.0 -margin_bottom = 125.0 -theme = ExtResource( 3 ) -text = "Manskage -iLunaiLuna -JustDzhi" - [connection signal="mouse_entered" from="UI/PlayButton" to="." method="_on_PlayButton_mouse_entered"] [connection signal="mouse_exited" from="UI/PlayButton" to="." method="_on_PlayButton_mouse_exited"] [connection signal="pressed" from="UI/PlayButton" to="." method="game_start"] diff --git a/src/scenes/menu/background/main_menu.png b/src/scenes/menu/background/main_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..d3b185e0ef6b7c10d2d8a89bbd9fab463282c2f2 GIT binary patch literal 9336 zcmcgw2|QG7+n1=wQi`I~P?R)gA7)BLLfQAFEMpcknB|$pT1hHWBqgCjk$uUMY*CVA zPg%;SkirxS$wR&~lzN{pZ_oR_-~0LfoH^&duIqm-_qE*ToHjMq6Bm^e6%Y^*->tQ8Pgd5&Uf%eFN##Nz2xH5`HN zLR9mnG5~G?ft|a(892N9JGibEykiXaL>Q_%)x1T|vpC6X!nzD%NpudyZG z*By@`DDK_`+Ubo20H{PZ4&+Vsps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g2JS>J zk_gmLLGz>{2TG42dVWSOs_5oT^Mw;+;)HUm(l>^bdH*P3T*6u|cG6^&OkkYv-0w2_5pvuXZ(=1z0iT zo}0~JkKHzPri+whDlpDgyd|rs7!HG%2fSExkrr}UZ!eZDM~OUE7ioS~T9pLRdX=+> z=kk&s6RPYacfobYqR$c49vKT337`B0~^fhUbjCbf}roV zh8|kE>{sv86>cBj>NydNhLJPmmOcY_VUBiYbk*w~%h*TTY*bTD+Pw)&vU7z+^*K*H zbL|_QNN>z|)0c1Gf=y^GY;bAqml#5p36AhFIw!sy^zrF=ORtwIh$+o*9h2CY+%qKg zDaqQ=*-ZEn`s+YmWp=qu5_W3RkE0#iu&pMBTU;?%PykNcwC9y!yKPKte;~;_34X5J zz%Xbp*sUY!R#{A?9VcJP9%-7654EPMu@tzt%zkO|5|aYj)Kn&!muG0ixmNaQ^2@#M zR7g~PSH?bR+nBz_*KIEk-Y{Pkk)C?8ueS41L2Lgqc_U|pL%q}p+CUo-7iHwJG-H+O zX3uEd=x%Apn77vtxEN6^9%Zz0tjV#<7x5#NBG%a?`8aoMf_iIxWX0Og7!XSvfr+y*uaWKu+n2bZaaaI%u;;+v`Bo ziO_AYtgH{zUKcEO+s7M&$qFTu2(Ae?m5Oz0eJS1$v+w;&Z1Fwo;|J@_WT8;`YQYEa zc)*8^(M85d9qISWEaKdHoA+LF8#p(UdWTfb)VQbDeNQSsp~HIomrnwy2tnwAE2 zWNE+jb$1nGgWOJYmW5oo>d0{fr(|xlk&4@SF)Zsj7iEx3I4S z8M$rlC)+PjD@iO2nf9wqE0gA&j&iF{(~eXTU=5zWLh#O%r*F z!KKL$yFQt(z7xJT&&)5n;Be+$yv%$CXUNSgy|lP=_cp;lHTaAB_ZjPCX*(bPACBrk A+W-In literal 0 HcmV?d00001 diff --git a/src/scenes/menu/background/main_menu.png.import b/src/scenes/menu/background/main_menu.png.import new file mode 100644 index 0000000..c348d2c --- /dev/null +++ b/src/scenes/menu/background/main_menu.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/main_menu.png-de2bf9e679f8b63409cdc558ee8ea050.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/menu/background/main_menu.png" +dest_files=[ "res://.import/main_menu.png-de2bf9e679f8b63409cdc558ee8ea050.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