diff --git a/CREDITS b/CREDITS index de76eb9..d5270db 100644 --- a/CREDITS +++ b/CREDITS @@ -16,5 +16,6 @@ Modèles 3D : - https://www.cgtrader.com Ressources 2D : + - https://alexmeub.com/projects/windows-98-icons/ -- https://linkvertise.com/725291/aOTJ96770113859 \ No newline at end of file +- https://linkvertise.com/725291/aOTJ96770113859- https://polyhaven.com/models diff --git a/default_bus_layout.tres b/default_bus_layout.tres new file mode 100644 index 0000000..56f2af2 --- /dev/null +++ b/default_bus_layout.tres @@ -0,0 +1,15 @@ +[gd_resource type="AudioBusLayout" format=3 uid="uid://bsopibysl0tjf"] + +[resource] +bus/1/name = &"SFX" +bus/1/solo = false +bus/1/mute = false +bus/1/bypass_fx = false +bus/1/volume_db = 0.0 +bus/1/send = &"Master" +bus/2/name = &"Music" +bus/2/solo = false +bus/2/mute = false +bus/2/bypass_fx = false +bus/2/volume_db = 0.0 +bus/2/send = &"Master" diff --git a/models/menu/icones/Help.png b/models/menu/icones/Help.png new file mode 100644 index 0000000..0bc240d --- /dev/null +++ b/models/menu/icones/Help.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:639fa540f6affd2fd80483af8235ca324bb076f3a35fae663eef4216fd2cea86 +size 751 diff --git a/models/menu/icones/Help.png.import b/models/menu/icones/Help.png.import new file mode 100644 index 0000000..de8d35a --- /dev/null +++ b/models/menu/icones/Help.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bx3exdw66656r" +path="res://.godot/imported/Help.png-f3c420e10d127643588f88d2b5b32fe2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://models/menu/icones/Help.png" +dest_files=["res://.godot/imported/Help.png-f3c420e10d127643588f88d2b5b32fe2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/models/menu/icones/Infinite.png b/models/menu/icones/Infinite.png new file mode 100644 index 0000000..731708b --- /dev/null +++ b/models/menu/icones/Infinite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5621a0b0861198d04978055e5e1c6e0ad6b8104cc00f77f3f6f7bc7734b99f25 +size 964 diff --git a/models/menu/icones/Infinite.png.import b/models/menu/icones/Infinite.png.import new file mode 100644 index 0000000..7bf8aa2 --- /dev/null +++ b/models/menu/icones/Infinite.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dpnvh4lt28eb" +path="res://.godot/imported/Infinite.png-fc6c031def70ea9eb6ae67a8f918ea09.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://models/menu/icones/Infinite.png" +dest_files=["res://.godot/imported/Infinite.png-fc6c031def70ea9eb6ae67a8f918ea09.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/models/menu/icones/Options.png b/models/menu/icones/Options.png new file mode 100644 index 0000000..cb5e405 --- /dev/null +++ b/models/menu/icones/Options.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67e25098318b411fc8e3cf9838b9ba23c04c451d36ffdda186911fd13d880706 +size 865 diff --git a/models/menu/icones/Options.png.import b/models/menu/icones/Options.png.import new file mode 100644 index 0000000..cbc3b79 --- /dev/null +++ b/models/menu/icones/Options.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://f1rkaxvylydr" +path="res://.godot/imported/Options.png-173df3e6ddb7027df1fcbc1063825c03.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://models/menu/icones/Options.png" +dest_files=["res://.godot/imported/Options.png-173df3e6ddb7027df1fcbc1063825c03.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/models/menu/icones/Sound.png b/models/menu/icones/Sound.png new file mode 100644 index 0000000..a8001e5 --- /dev/null +++ b/models/menu/icones/Sound.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7386877ea4d40b277314a1c0f8eac1fb2316eb292fff363b5d8185a3e10896d +size 973 diff --git a/models/menu/icones/Sound.png.import b/models/menu/icones/Sound.png.import new file mode 100644 index 0000000..5b62a3d --- /dev/null +++ b/models/menu/icones/Sound.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://penooc7d5lba" +path="res://.godot/imported/Sound.png-2789d1ab0d32d7cbd52a097bed3dd345.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://models/menu/icones/Sound.png" +dest_files=["res://.godot/imported/Sound.png-2789d1ab0d32d7cbd52a097bed3dd345.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/models/menu/icones/User.png b/models/menu/icones/User.png new file mode 100644 index 0000000..8d17771 --- /dev/null +++ b/models/menu/icones/User.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c97d15d3d2ec5c4aa42aa211bcb84c98b7e9b6000c3f8dff733f9166d17319e +size 831 diff --git a/models/menu/icones/User.png.import b/models/menu/icones/User.png.import new file mode 100644 index 0000000..4020e50 --- /dev/null +++ b/models/menu/icones/User.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dj2ksd67cmwfg" +path="res://.godot/imported/User.png-38f251ea7919ecbc9781f107f8b42f18.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://models/menu/icones/User.png" +dest_files=["res://.godot/imported/User.png-38f251ea7919ecbc9781f107f8b42f18.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/ressources/assets/HotBots/HotBotsAround.png.import b/ressources/assets/HotBots/HotBotsAround.png.import new file mode 100644 index 0000000..0ca25ce --- /dev/null +++ b/ressources/assets/HotBots/HotBotsAround.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cmtwstnuggl05" +path="res://.godot/imported/HotBotsAround.png-ffa216f20e7acf1877ddbb3b62466419.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/HotBots/HotBotsAround.png" +dest_files=["res://.godot/imported/HotBotsAround.png-ffa216f20e7acf1877ddbb3b62466419.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/ressources/assets/Operation/Operation.png.import b/ressources/assets/Operation/Operation.png.import new file mode 100644 index 0000000..bb454db --- /dev/null +++ b/ressources/assets/Operation/Operation.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://goinpjd4qxgd" +path="res://.godot/imported/Operation.png-2cb088eb58be1fa616fe277f40563eb4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/Operation/Operation.png" +dest_files=["res://.godot/imported/Operation.png-2cb088eb58be1fa616fe277f40563eb4.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/ressources/sounds/menu/miaou.mp3 b/ressources/sounds/menu/miaou.mp3 new file mode 100644 index 0000000..bd1e40f Binary files /dev/null and b/ressources/sounds/menu/miaou.mp3 differ diff --git a/ressources/sounds/menu/miaou.mp3.import b/ressources/sounds/menu/miaou.mp3.import new file mode 100644 index 0000000..96ecda8 --- /dev/null +++ b/ressources/sounds/menu/miaou.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://b6r8lvskuu228" +path="res://.godot/imported/miaou.mp3-14011d42bc74dc84a6a6273c0e7c06a2.mp3str" + +[deps] + +source_file="res://ressources/sounds/menu/miaou.mp3" +dest_files=["res://.godot/imported/miaou.mp3-14011d42bc74dc84a6a6273c0e7c06a2.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/scenes/game/oldscreen.gdshader b/scenes/game/oldscreen.gdshader new file mode 100644 index 0000000..b4c7089 --- /dev/null +++ b/scenes/game/oldscreen.gdshader @@ -0,0 +1,23 @@ +shader_type canvas_item; + +uniform float SCREEN_HEIGHT = 240.0; + +void vertex() { + // Called for every vertex the material is visible on. +} + +void fragment() { + // Called for every pixel the material is visible on. + int y_index = int(UV.y * SCREEN_HEIGHT); + if(y_index % 2 == 0){ + COLOR.a = 0.05; + } + else { + COLOR.a = 0.0; + } +} + +//void light() { + // Called for every pixel for every light affecting the CanvasItem. + // Uncomment to replace the default light processing function with this one. +//} diff --git a/scenes/game/windows/Ads.tscn b/scenes/game/windows/Ads.tscn index e857010..88360d5 100644 --- a/scenes/game/windows/Ads.tscn +++ b/scenes/game/windows/Ads.tscn @@ -19,11 +19,11 @@ border_color = Color(0.686275, 0.662745, 0.619608, 1) offsets = PackedFloat32Array(0, 0.396624) colors = PackedColorArray(0, 0, 0.501961, 1, 1, 1, 1, 1) -[sub_resource type="GradientTexture1D" id="GradientTexture1D_n5gkc"] +[sub_resource type="GradientTexture1D" id="GradientTexture1D_pb0qd"] gradient = SubResource("Gradient_qyjym") [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_54rle"] -texture = SubResource("GradientTexture1D_n5gkc") +texture = SubResource("GradientTexture1D_pb0qd") texture_margin_left = 3.27016 texture_margin_top = 4.41471 texture_margin_right = 0.654032 diff --git a/scenes/game/windows/windows.tscn b/scenes/game/windows/windows.tscn new file mode 100644 index 0000000..aec2917 --- /dev/null +++ b/scenes/game/windows/windows.tscn @@ -0,0 +1,6 @@ +[gd_scene format=3 uid="uid://6c3elje3j430"] + +[node name="Window" type="Window"] +title = "lllllll" +position = Vector2i(0, 36) +size = Vector2i(500, 400) diff --git a/scenes/menu/Options.gd b/scenes/menu/Options.gd new file mode 100644 index 0000000..0990d9d --- /dev/null +++ b/scenes/menu/Options.gd @@ -0,0 +1,89 @@ +extends Node2D + +var muted = false +var muted_SFX = false +var muted_Music = false +var muted_Master = false + +# Called when the node enters the scene tree for the first time. +func _ready(): + $VBoxContainer/SFX_node/Mute_SFX/unchecked/checked.set_visible(false) + $VBoxContainer/Music/Mute_Music/unchecked/checked.set_visible(false) + $VBoxContainer/Master2/Mute_Master/unchecked/checked.set_visible(false) + $VBoxContainer/Node2D/Full_src/unchecked/checked.set_visible(false) + pass # Replace with function body. +func _change_volume(bus, value): + AudioServer.set_bus_volume_db(AudioServer.get_bus_index(bus),value) + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +#Slider +#SFX +func _on_h_slider_value_changed(value): + _change_volume("SFX", value) + pass # Replace with function body. +#Music +func _on_h_slider_2_value_changed(value): + _change_volume("Music", value) + pass # Replace with function body. +#Master +func _on_h_slider_3_value_changed(value): + _change_volume("Master", value) + pass # Replace with function body. + + +func _on_button_pressed(): + $test.play() + pass # Replace with function body. + +func _on_button_sfx_pressed(): + $VBoxContainer/SFX_node/miaou.play() + pass # Replace with function body. + +func _on_button_music_pressed(): + $VBoxContainer/Music/Music.play() + pass # Replace with function body. + + +func _on_mute_sfx_pressed(): + muted_SFX = !muted_SFX + if (muted_SFX): + _change_volume("SFX", -80) + $VBoxContainer/SFX_node/Mute_SFX/unchecked/checked.set_visible(true) + else: + _change_volume("SFX", $VBoxContainer/SFX_node/HSlider.value) + $VBoxContainer/SFX_node/Mute_SFX/unchecked/checked.set_visible(false) + pass # Replace with function body. + +func _on_mute_music_pressed(): + muted_Music = !muted_Music + if (muted_Music): + _change_volume("Music", -80) + $VBoxContainer/Music/Mute_Music/unchecked/checked.set_visible(true) + else: + _change_volume("Music", $VBoxContainer/Music/HSlider2.value) + $VBoxContainer/Music/Mute_Music/unchecked/checked.set_visible(false) + pass # Replace with function body. + + +func _on_mute_master_pressed(): + muted_Master = !muted_Master + if (muted_Master): + _change_volume("Master", -80) + $VBoxContainer/Master2/Mute_Master/unchecked/checked.set_visible(true) + else: + _change_volume("Master", $VBoxContainer/Master2/HSlider3.value) + $VBoxContainer/Master2/Mute_Master/unchecked/checked.set_visible(false) + +var full = false +func _on_full_src_pressed(): + full = !full + if (full): + $VBoxContainer/Node2D/Full_src/unchecked/checked.set_visible(true) + DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN) + else: + $VBoxContainer/Node2D/Full_src/unchecked/checked.set_visible(false) + DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) + pass # Replace with function body. diff --git a/scenes/menu/Options.tscn b/scenes/menu/Options.tscn index 3c9bc62..0206bbe 100644 --- a/scenes/menu/Options.tscn +++ b/scenes/menu/Options.tscn @@ -1,3 +1,242 @@ -[gd_scene format=3 uid="uid://dqo1qk6m6stq4"] +[gd_scene load_steps=11 format=3 uid="uid://dqo1qk6m6stq4"] + +[ext_resource type="Script" path="res://scenes/menu/Options.gd" id="1_tx7kc"] +[ext_resource type="AudioStream" uid="uid://c5fgxh51yhon8" path="res://ressources/sounds/menu/Microsoft Windows 98 Startup Sound .mp3" id="2_5ip4v"] +[ext_resource type="Texture2D" uid="uid://bbya0vp0ejqa3" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Slider_Handle.png" id="2_p7hne"] +[ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="3_4rmnw"] +[ext_resource type="Texture2D" uid="uid://jllu46doutf8" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Toggle_Inactive.png" id="4_eh3gv"] +[ext_resource type="Texture2D" uid="uid://4te31qkwkrkc" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Toggle_Selected.png" id="5_3ikpl"] +[ext_resource type="AudioStream" uid="uid://msnondptwiya" path="res://ressources/sounds/menu/miaou.mp3" id="7_r1icc"] + +[sub_resource type="StyleBoxLine" id="StyleBoxLine_l4bn6"] +content_margin_left = 0.0 +content_margin_top = 0.0 +content_margin_right = 0.0 +color = Color(0.505882, 0.505882, 0.505882, 1) +thickness = 10 + +[sub_resource type="StyleBoxLine" id="StyleBoxLine_up0cd"] +content_margin_left = 0.0 +content_margin_top = 0.0 +content_margin_right = 0.0 +color = Color(0.505882, 0.505882, 0.505882, 1) +thickness = 10 + +[sub_resource type="StyleBoxLine" id="StyleBoxLine_i5gt4"] +content_margin_left = 0.0 +content_margin_top = 0.0 +content_margin_right = 0.0 +color = Color(0.505882, 0.505882, 0.505882, 1) +thickness = 10 [node name="Options" type="Node2D"] +script = ExtResource("1_tx7kc") + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +offset_left = 4.0 +offset_top = -20.0 +offset_right = 44.0 +offset_bottom = 20.0 + +[node name="SFX_node" type="Node2D" parent="VBoxContainer"] +position = Vector2(237, 235) + +[node name="Mute_SFX" type="Button" parent="VBoxContainer/SFX_node"] +offset_left = 448.0 +offset_top = 53.0 +offset_right = 468.0 +offset_bottom = 73.0 + +[node name="unchecked" type="TextureRect" parent="VBoxContainer/SFX_node/Mute_SFX"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("4_eh3gv") + +[node name="checked" type="TextureRect" parent="VBoxContainer/SFX_node/Mute_SFX/unchecked"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("5_3ikpl") + +[node name="SFX label" type="Label" parent="VBoxContainer/SFX_node"] +offset_left = -44.0 +offset_top = 50.0 +offset_right = -4.0 +offset_bottom = 73.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "SFX" + +[node name="HSlider" type="HSlider" parent="VBoxContainer/SFX_node"] +offset_left = 29.0 +offset_top = 38.0 +offset_right = 425.0 +offset_bottom = 88.0 +theme_override_icons/grabber = ExtResource("2_p7hne") +theme_override_icons/grabber_highlight = ExtResource("2_p7hne") +theme_override_styles/slider = SubResource("StyleBoxLine_l4bn6") +min_value = -80.0 +max_value = 0.0 + +[node name="miaou" type="AudioStreamPlayer2D" parent="VBoxContainer/SFX_node"] +stream = ExtResource("7_r1icc") +volume_db = 20.282 +bus = &"SFX" + +[node name="Button_SFX" type="Button" parent="VBoxContainer/SFX_node"] +offset_left = 485.0 +offset_top = 50.0 +offset_right = 524.0 +offset_bottom = 76.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "Test" + +[node name="Music" type="Node2D" parent="VBoxContainer"] +position = Vector2(251, 173) + +[node name="Mute_Music" type="Button" parent="VBoxContainer/Music"] +offset_left = 434.0 +offset_top = 54.0 +offset_right = 454.0 +offset_bottom = 74.0 + +[node name="unchecked" type="TextureRect" parent="VBoxContainer/Music/Mute_Music"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("4_eh3gv") + +[node name="checked" type="TextureRect" parent="VBoxContainer/Music/Mute_Music/unchecked"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("5_3ikpl") + +[node name="Music label" type="Label" parent="VBoxContainer/Music"] +offset_left = -58.0 +offset_top = 51.0 +offset_right = -12.0 +offset_bottom = 74.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "Music" + +[node name="HSlider2" type="HSlider" parent="VBoxContainer/Music"] +offset_left = 15.0 +offset_top = 39.0 +offset_right = 411.0 +offset_bottom = 89.0 +theme_override_icons/grabber = ExtResource("2_p7hne") +theme_override_icons/grabber_highlight = ExtResource("2_p7hne") +theme_override_styles/slider = SubResource("StyleBoxLine_up0cd") +min_value = -80.0 +max_value = 0.0 + +[node name="Music" type="AudioStreamPlayer2D" parent="VBoxContainer/Music"] +stream = ExtResource("2_5ip4v") +bus = &"Music" + +[node name="Button_Music" type="Button" parent="VBoxContainer/Music"] +offset_left = 471.0 +offset_top = 52.0 +offset_right = 510.0 +offset_bottom = 78.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "Test" + +[node name="Master2" type="Node2D" parent="VBoxContainer"] +position = Vector2(237, 114) + +[node name="Mute_Master" type="Button" parent="VBoxContainer/Master2"] +offset_left = 448.0 +offset_top = 55.0 +offset_right = 468.0 +offset_bottom = 75.0 + +[node name="unchecked" type="TextureRect" parent="VBoxContainer/Master2/Mute_Master"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("4_eh3gv") + +[node name="checked" type="TextureRect" parent="VBoxContainer/Master2/Mute_Master/unchecked"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("5_3ikpl") + +[node name="Master label" type="Label" parent="VBoxContainer/Master2"] +offset_left = -43.0 +offset_top = 51.0 +offset_right = 12.0 +offset_bottom = 74.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "Master" + +[node name="HSlider3" type="HSlider" parent="VBoxContainer/Master2"] +offset_left = 29.0 +offset_top = 40.0 +offset_right = 425.0 +offset_bottom = 90.0 +theme_override_icons/grabber = ExtResource("2_p7hne") +theme_override_icons/grabber_highlight = ExtResource("2_p7hne") +theme_override_styles/slider = SubResource("StyleBoxLine_i5gt4") +min_value = -80.0 +max_value = 0.0 + +[node name="Button" type="Button" parent="VBoxContainer/Master2"] +offset_left = 486.0 +offset_top = 52.0 +offset_right = 525.0 +offset_bottom = 78.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "Test" + +[node name="Node2D" type="Node2D" parent="VBoxContainer"] +position = Vector2(237, 334) + +[node name="Full_src" type="Button" parent="VBoxContainer/Node2D"] +offset_left = 449.0 +offset_top = 55.0 +offset_right = 469.0 +offset_bottom = 75.0 + +[node name="unchecked" type="TextureRect" parent="VBoxContainer/Node2D/Full_src"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("4_eh3gv") + +[node name="checked" type="TextureRect" parent="VBoxContainer/Node2D/Full_src/unchecked"] +layout_mode = 0 +offset_right = 20.0 +offset_bottom = 20.0 +texture = ExtResource("5_3ikpl") + +[node name="Fullscreen" type="Label" parent="VBoxContainer/Node2D"] +offset_left = -43.0 +offset_top = 51.0 +offset_right = 12.0 +offset_bottom = 74.0 +theme_override_fonts/font = ExtResource("3_4rmnw") +theme_override_font_sizes/font_size = 20 +text = "Fullscreen" + +[node name="test" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("2_5ip4v") + +[connection signal="pressed" from="VBoxContainer/SFX_node/Mute_SFX" to="." method="_on_mute_sfx_pressed"] +[connection signal="value_changed" from="VBoxContainer/SFX_node/HSlider" to="." method="_on_h_slider_value_changed"] +[connection signal="pressed" from="VBoxContainer/SFX_node/Button_SFX" to="." method="_on_button_sfx_pressed"] +[connection signal="pressed" from="VBoxContainer/Music/Mute_Music" to="." method="_on_mute_music_pressed"] +[connection signal="value_changed" from="VBoxContainer/Music/HSlider2" to="." method="_on_h_slider_2_value_changed"] +[connection signal="pressed" from="VBoxContainer/Music/Button_Music" to="." method="_on_button_music_pressed"] +[connection signal="pressed" from="VBoxContainer/Master2/Mute_Master" to="." method="_on_mute_master_pressed"] +[connection signal="value_changed" from="VBoxContainer/Master2/HSlider3" to="." method="_on_h_slider_3_value_changed"] +[connection signal="pressed" from="VBoxContainer/Master2/Button" to="." method="_on_button_pressed"] +[connection signal="pressed" from="VBoxContainer/Node2D/Full_src" to="." method="_on_full_src_pressed"] diff --git a/scenes/menu/image_menu.tscn b/scenes/menu/image_menu.tscn index 22afcbb..0a5e29f 100644 --- a/scenes/menu/image_menu.tscn +++ b/scenes/menu/image_menu.tscn @@ -1,7 +1,6 @@ -[gd_scene load_steps=9 format=3 uid="uid://cgdlh6iv2j7we"] +[gd_scene load_steps=8 format=3 uid="uid://cgdlh6iv2j7we"] -[ext_resource type="Texture2D" uid="uid://bnd12xnq12mv3" path="res://models/menu/welcome.png" id="1_tgn7l"] -[ext_resource type="Texture2D" path="res://models/menu/Capture d’écran du 2024-01-27 17-48-43.png" id="2_076k5"] +[ext_resource type="Texture2D" uid="uid://dokls1btlk3hc" path="res://models/menu/welcome.png" id="1_tgn7l"] [sub_resource type="Gradient" id="Gradient_pacrk"] offsets = PackedFloat32Array(0.684524, 1) @@ -60,7 +59,6 @@ offset_left = 14.0 offset_top = 1076.0 offset_right = 1577.0 offset_bottom = 1966.0 -texture = ExtResource("2_076k5") [node name="horizontal line" type="TextureRect" parent="."] offset_top = 105.0 diff --git a/scenes/menu/menu.gd b/scenes/menu/menu.gd index 37b59db..79433a1 100644 --- a/scenes/menu/menu.gd +++ b/scenes/menu/menu.gd @@ -3,6 +3,7 @@ extends Node2D # Called when the node enters the scene tree for the first time. func _ready(): + $Menu/Options/Rules.set_visible(false) Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) pass # Replace with function body. @@ -24,5 +25,10 @@ func _on_infinite_start_pressed(): pass # Replace with function body. func _on_options_pressed(): - #get_tree().change_scene_to_file("") + $Menu/Options/Rules.set_visible(true) + pass # Replace with function body. + + +func _on_close_pressed(): + $Menu/Options/Rules.set_visible(false) pass # Replace with function body. diff --git a/scenes/menu/menu.tscn b/scenes/menu/menu.tscn index 383f623..ccc1860 100644 --- a/scenes/menu/menu.tscn +++ b/scenes/menu/menu.tscn @@ -1,16 +1,76 @@ -[gd_scene load_steps=6 format=3 uid="uid://do6hgdpuwfsmf"] +[gd_scene load_steps=16 format=3 uid="uid://do6hgdpuwfsmf"] [ext_resource type="PackedScene" uid="uid://cgdlh6iv2j7we" path="res://scenes/menu/image_menu.tscn" id="1_f4wvw"] [ext_resource type="Script" path="res://scenes/menu/menu.gd" id="1_y4d58"] -[ext_resource type="Texture2D" uid="uid://dayle54j3fk2g" path="res://models/menu/power_off.png" id="2_4yhxu"] -[ext_resource type="Texture2D" uid="uid://esj5tuyxt4n4" path="res://models/menu/PDP.png" id="3_a6fh8"] +[ext_resource type="Texture2D" uid="uid://dayle54j3fk2g" path="res://models/menu/power_off.png" id="3_4ev8s"] [ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="3_coatq"] +[ext_resource type="Texture2D" uid="uid://dj2ksd67cmwfg" path="res://models/menu/icones/User.png" id="3_kh055"] +[ext_resource type="Texture2D" uid="uid://dpnvh4lt28eb" path="res://models/menu/icones/Infinite.png" id="5_bnbfr"] +[ext_resource type="Texture2D" uid="uid://f1rkaxvylydr" path="res://models/menu/icones/Options.png" id="6_1ofa3"] +[ext_resource type="PackedScene" uid="uid://d0o3thrvt3ecx" path="res://scenes/menu/rules.tscn" id="7_bv273"] +[ext_resource type="Texture2D" uid="uid://c012k8qiyjn4a" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button.png" id="8_igvbm"] +[ext_resource type="Texture2D" uid="uid://rryuulwvlsqi" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Inactive.png" id="9_npqtf"] +[ext_resource type="Texture2D" uid="uid://ca0n6csxw7yd7" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Pressed.png" id="10_vrql1"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mulaw"] +texture = ExtResource("8_igvbm") +texture_margin_left = 2.0 +texture_margin_top = 2.0 +texture_margin_right = 2.0 +texture_margin_bottom = 2.0 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_sbxpa"] +texture = ExtResource("9_npqtf") +texture_margin_left = 2.0 +texture_margin_top = 2.0 +texture_margin_right = 2.0 +texture_margin_bottom = 2.0 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_m56ur"] +texture = ExtResource("10_vrql1") +texture_margin_left = 2.0 +texture_margin_top = 2.0 +texture_margin_right = 2.0 +texture_margin_bottom = 2.0 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_tt12n"] +texture = ExtResource("8_igvbm") +texture_margin_left = 2.0 +texture_margin_top = 2.0 +texture_margin_right = 2.0 +texture_margin_bottom = 2.0 [node name="Menu" type="Node2D"] script = ExtResource("1_y4d58") [node name="image_menu" parent="." instance=ExtResource("1_f4wvw")] +[node name="Power off" type="Button" parent="."] +offset_left = 46.0 +offset_top = 828.0 +offset_right = 183.0 +offset_bottom = 858.0 +theme_type_variation = &"FlatButton" + +[node name="p_off" type="TextureRect" parent="Power off"] +layout_mode = 0 +offset_left = 6.0 +offset_top = -3.0 +offset_right = 43.0 +offset_bottom = 32.0 +texture = ExtResource("3_4ev8s") +expand_mode = 1 + +[node name="Label" type="Label" parent="Power off"] +layout_mode = 0 +offset_left = 49.0 +offset_top = 2.0 +offset_right = 138.0 +offset_bottom = 28.0 +theme_override_fonts/font = ExtResource("3_coatq") +theme_override_font_sizes/font_size = 24 +text = "Power off" + [node name="Menu" type="VBoxContainer" parent="."] offset_left = 915.0 offset_top = 313.0 @@ -18,7 +78,6 @@ offset_right = 1163.0 offset_bottom = 433.0 scale = Vector2(1.83, 1.83) theme_override_constants/separation = 29 -alignment = 1 [node name="NormalStart" type="Button" parent="Menu"] layout_mode = 2 @@ -31,9 +90,17 @@ offset_left = 1.0929 offset_top = -5.46448 offset_right = 41.0929 offset_bottom = 34.5355 -texture = ExtResource("3_a6fh8") +texture = ExtResource("3_kh055") expand_mode = 1 +[node name="Panel" type="Panel" parent="Menu/NormalStart/pdp1"] +show_behind_parent = true +layout_mode = 0 +offset_left = -1.0 +offset_top = -1.0 +offset_right = 41.0 +offset_bottom = 41.0 + [node name="Label" type="Label" parent="Menu/NormalStart"] layout_mode = 0 offset_left = 49.0 @@ -54,9 +121,17 @@ layout_mode = 0 offset_top = -4.26229 offset_right = 40.0 offset_bottom = 35.7377 -texture = ExtResource("3_a6fh8") +texture = ExtResource("5_bnbfr") expand_mode = 1 +[node name="Panel" type="Panel" parent="Menu/InfiniteStart/pdp2"] +show_behind_parent = true +layout_mode = 0 +offset_left = -1.0 +offset_top = -1.0 +offset_right = 41.0 +offset_bottom = 41.0 + [node name="Label" type="Label" parent="Menu/InfiniteStart"] layout_mode = 0 offset_left = 49.0 @@ -79,9 +154,17 @@ offset_left = 1.0929 offset_top = -4.69944 offset_right = 41.0929 offset_bottom = 35.3006 -texture = ExtResource("3_a6fh8") +texture = ExtResource("6_1ofa3") expand_mode = 1 +[node name="Panel" type="Panel" parent="Menu/Options/pdp3"] +show_behind_parent = true +layout_mode = 0 +offset_left = -1.0 +offset_top = -1.0 +offset_right = 41.0 +offset_bottom = 41.0 + [node name="Label" type="Label" parent="Menu/Options"] layout_mode = 0 offset_left = 49.0 @@ -92,33 +175,31 @@ theme_override_fonts/font = ExtResource("3_coatq") theme_override_font_sizes/font_size = 24 text = "Options" -[node name="Power off" type="Button" parent="."] -offset_left = 46.0 -offset_top = 828.0 -offset_right = 183.0 -offset_bottom = 858.0 -theme_type_variation = &"FlatButton" +[node name="Rules" parent="Menu/Options" instance=ExtResource("7_bv273")] +position = Vector2(-286.885, -221.093) -[node name="p_off" type="TextureRect" parent="Power off"] -layout_mode = 0 -offset_left = 6.0 -offset_top = -3.0 -offset_right = 43.0 -offset_bottom = 32.0 -texture = ExtResource("2_4yhxu") -expand_mode = 1 - -[node name="Label" type="Label" parent="Power off"] -layout_mode = 0 -offset_left = 49.0 -offset_top = 2.0 -offset_right = 138.0 -offset_bottom = 28.0 +[node name="close" type="Button" parent="Menu/Options/Rules"] +anchors_preset = 1 +anchor_left = 1.0 +anchor_right = 1.0 +offset_left = 786.885 +offset_top = 13.115 +offset_right = 820.885 +offset_bottom = 49.115 +grow_horizontal = 0 +theme_override_colors/font_color = Color(0, 0, 0.0392157, 1) theme_override_fonts/font = ExtResource("3_coatq") -theme_override_font_sizes/font_size = 24 -text = "Power off" +theme_override_font_sizes/font_size = 20 +theme_override_styles/normal = SubResource("StyleBoxTexture_mulaw") +theme_override_styles/hover = SubResource("StyleBoxTexture_sbxpa") +theme_override_styles/pressed = SubResource("StyleBoxTexture_m56ur") +theme_override_styles/focus = SubResource("StyleBoxTexture_tt12n") +text = "X" +icon_alignment = 1 +expand_icon = true +[connection signal="pressed" from="Power off" to="." method="_on_power_off_pressed"] [connection signal="pressed" from="Menu/NormalStart" to="." method="_on_normal_start_pressed"] [connection signal="pressed" from="Menu/InfiniteStart" to="." method="_on_infinite_start_pressed"] [connection signal="pressed" from="Menu/Options" to="." method="_on_options_pressed"] -[connection signal="pressed" from="Power off" to="." method="_on_power_off_pressed"] +[connection signal="pressed" from="Menu/Options/Rules/close" to="." method="_on_close_pressed"] diff --git a/scenes/menu/rules.gd b/scenes/menu/rules.gd new file mode 100644 index 0000000..74794b7 --- /dev/null +++ b/scenes/menu/rules.gd @@ -0,0 +1,32 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + $Node2D/Node2D/valid_options.set_visible(false) + $Node2D/Op/Help_panel/valid_help.set_visible(true) + $Node2D/Node2D/Options.set_visible(false) + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_button_hlp_pressed(): + $Node2D/Node2D/valid_options.set_visible(false) + $Node2D/Op/Help_panel/valid_help.set_visible(true) + $Node2D/Node2D/Options.set_visible(false) + pass # Replace with function body. + + +func _on_button_opt_pressed(): + $Node2D/Node2D/valid_options.set_visible(true) + $Node2D/Op/Help_panel/valid_help.set_visible(false) + $Node2D/Node2D/Options.set_visible(true) + pass # Replace with function body. + +func _on_power_off_pressed(): + get_tree().change_scene_to_file("res://scenes/menu/menu.tscn") + diff --git a/scenes/menu/rules.tscn b/scenes/menu/rules.tscn new file mode 100644 index 0000000..3c2e246 --- /dev/null +++ b/scenes/menu/rules.tscn @@ -0,0 +1,287 @@ +[gd_scene load_steps=12 format=3 uid="uid://d0o3thrvt3ecx"] + +[ext_resource type="Texture2D" uid="uid://bx3exdw66656r" path="res://models/menu/icones/Help.png" id="1_5241r"] +[ext_resource type="Script" path="res://scenes/menu/rules.gd" id="1_dl8bd"] +[ext_resource type="Texture2D" uid="uid://f1rkaxvylydr" path="res://models/menu/icones/Options.png" id="2_3g6ce"] +[ext_resource type="PackedScene" uid="uid://dqo1qk6m6stq4" path="res://scenes/menu/Options.tscn" id="3_ulvqu"] +[ext_resource type="Shader" path="res://shaders/oldscreen.gdshader" id="3_x82uj"] +[ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="4_mm1sy"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dxk8k"] +bg_color = Color(0.831373, 0.815686, 0.784314, 1) +border_width_left = 5 +border_width_top = 5 +border_width_right = 5 +border_width_bottom = 5 +border_color = Color(0.686275, 0.662745, 0.619608, 1) + +[sub_resource type="Gradient" id="Gradient_ytfaa"] +offsets = PackedFloat32Array(0, 0.396624) +colors = PackedColorArray(0, 0, 0.501961, 1, 1, 1, 1, 1) + +[sub_resource type="GradientTexture1D" id="GradientTexture1D_u7ijh"] +gradient = SubResource("Gradient_ytfaa") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_cb0n2"] +texture = SubResource("GradientTexture1D_u7ijh") +texture_margin_left = 3.27016 +texture_margin_top = 4.41471 +texture_margin_right = 0.654032 +region_rect = Rect2(0, -1.264, 45.529, 24.719) + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_ix0wl"] +shader = ExtResource("3_x82uj") +shader_parameter/SCREEN_HEIGHT = 240.0 + +[node name="Rules" type="Node2D"] +position = Vector2(580, 274) +scale = Vector2(0.5, 0.5) +script = ExtResource("1_dl8bd") + +[node name="ColorRect" type="ColorRect" parent="."] +offset_left = -1212.0 +offset_top = -614.0 +offset_right = 2080.0 +offset_bottom = 1290.0 +color = Color(0.388235, 0.388235, 0.388235, 0.639216) + +[node name="Base" type="Panel" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 5.0 +offset_top = 4.0 +offset_right = 840.0 +offset_bottom = 647.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_dxk8k") + +[node name="Node2D" type="Node2D" parent="."] + +[node name="Op" type="Node2D" parent="Node2D"] + +[node name="Help_panel" type="Panel" parent="Node2D/Op"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 106.0 +offset_top = 118.0 +offset_right = 786.0 +offset_bottom = 591.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_dxk8k") + +[node name="valid_help" type="Panel" parent="Node2D/Op/Help_panel"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -77.0 +offset_top = 8.0 +offset_right = -676.0 +offset_bottom = -387.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_dxk8k") + +[node name="Rect_visu2" type="ColorRect" parent="Node2D/Op/Help_panel"] +layout_mode = 0 +offset_left = 5.0 +offset_top = 233.0 +offset_right = 675.0 +offset_bottom = 468.0 +color = Color(0.388235, 0.388235, 0.388235, 0.419608) + +[node name="rules_normal" type="Label" parent="Node2D/Op/Help_panel/Rect_visu2"] +layout_mode = 0 +offset_left = 2.0 +offset_top = 9.0 +offset_right = 1276.0 +offset_bottom = 243.0 +theme_override_fonts/font = ExtResource("4_mm1sy") +theme_override_font_sizes/font_size = 21 +text = "Mode Infini : + + Objectif : Survivre aussi longtemps que possible en fermant des publicités de plus + en plus fréquentes et complexes. + Départ : Le joueur commence avec 10 publicités à fermer dans un délai de 45 secondes. + Augmentation de la difficulté : Si le joueur parvient à fermer toutes les publicités dans + le délai imparti, le nombre de publicités augmente de 5 à chaque nouvelle série. + Limite de temps : Le joueur a 45 secondes pour fermer toutes les publicités. Si le joueur + n'arrive pas à fermer toutes les publicités dans le temps imparti, le jeu se + termine." + +[node name="rules_normal2" type="Label" parent="Node2D/Op/Help_panel/Rect_visu2"] +layout_mode = 0 +offset_left = 2.0 +offset_top = 9.0 +offset_right = 1276.0 +offset_bottom = 243.0 +theme_override_fonts/font = ExtResource("4_mm1sy") +theme_override_font_sizes/font_size = 21 +text = "Mode Infini : + + Objectif : Survivre aussi longtemps que possible en fermant des publicités de plus + en plus fréquentes et complexes. + Départ : Le joueur commence avec 10 publicités à fermer dans un délai de 45 secondes. + Augmentation de la difficulté : Si le joueur parvient à fermer toutes les publicités dans + le délai imparti, le nombre de publicités augmente de 5 à chaque nouvelle série. + Limite de temps : Le joueur a 45 secondes pour fermer toutes les publicités. Si le joueur + n'arrive pas à fermer toutes les publicités dans le temps imparti, le jeu se + termine." + +[node name="Help icon" type="TextureRect" parent="Node2D/Op/Help_panel"] +layout_mode = 0 +offset_left = -72.0 +offset_top = 13.0 +offset_right = -1.0 +offset_bottom = 81.0 +texture = ExtResource("1_5241r") + +[node name="Button_hlp" type="Button" parent="Node2D/Op/Help_panel/Help icon"] +layout_mode = 0 +offset_right = 72.0 +offset_bottom = 69.0 +focus_mode = 0 +flat = true + +[node name="Rect_visu" type="ColorRect" parent="Node2D/Op/Help_panel"] +layout_mode = 0 +offset_left = 5.0 +offset_top = 5.0 +offset_right = 675.0 +offset_bottom = 222.0 +color = Color(0.388235, 0.388235, 0.388235, 0.419608) + +[node name="rules_normal" type="Label" parent="Node2D/Op/Help_panel/Rect_visu"] +layout_mode = 0 +offset_left = 2.0 +offset_top = 9.0 +offset_right = 767.0 +offset_bottom = 214.0 +theme_override_fonts/font = ExtResource("4_mm1sy") +theme_override_font_sizes/font_size = 21 +text = "Mode Normal : + + Objectif : Fermer toutes les publicités avant la fin du temps imparti. + Niveaux : + Niveau 1 : 45 secondes pour fermer 10 les publicités. + Niveau 2 : 45 secondes pour fermer 15 plus rapidement et avec plus de difficulté. + Niveau 3 : 45 secondes pour affronter le défi ultime de la publicité en ligne: 25 pubs. + Mini-jeux : Chaque publicité ouvre un mini-jeu que le joueur doit terminer pour la fermer." + +[node name="Node2D" type="Node2D" parent="Node2D"] + +[node name="valid_options" type="Panel" parent="Node2D/Node2D"] +visible = false +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 29.0 +offset_top = 203.0 +offset_right = 111.0 +offset_bottom = 281.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_dxk8k") + +[node name="options icon" type="TextureRect" parent="Node2D/Node2D"] +offset_left = 35.0 +offset_top = 208.0 +offset_right = 106.0 +offset_bottom = 276.0 +texture = ExtResource("2_3g6ce") + +[node name="Button_opt" type="Button" parent="Node2D/Node2D/options icon"] +layout_mode = 0 +offset_right = 72.0 +offset_bottom = 70.0 +focus_mode = 0 +flat = true + +[node name="Options" type="Panel" parent="Node2D/Node2D"] +visible = false +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 106.0 +offset_top = 117.0 +offset_right = 784.0 +offset_bottom = 592.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_dxk8k") + +[node name="All_options" type="ColorRect" parent="Node2D/Node2D/Options"] +layout_mode = 0 +offset_left = 23.0 +offset_top = 85.0 +offset_right = 663.0 +offset_bottom = 271.0 +color = Color(0.388235, 0.388235, 0.388235, 0.419608) + +[node name="Rect_visu" type="ColorRect" parent="Node2D/Node2D/Options/All_options"] +layout_mode = 0 +offset_left = 1.0 +offset_top = 227.0 +offset_right = 641.0 +offset_bottom = 284.0 +color = Color(0.388235, 0.388235, 0.388235, 0.419608) + +[node name="Options" parent="Node2D/Node2D/Options/All_options" instance=ExtResource("3_ulvqu")] +position = Vector2(-148, -121) + +[node name="Top" type="Panel" parent="."] +anchors_preset = 10 +anchor_right = 1.0 +offset_left = 9.0 +offset_top = 8.0 +offset_right = 835.0 +offset_bottom = 60.0 +grow_horizontal = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_cb0n2") + +[node name="color top" type="ColorRect" parent="Top"] +visible = false +material = SubResource("ShaderMaterial_ix0wl") +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 2.0 +offset_top = -3.0 +offset_right = 2.0 +offset_bottom = 582.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Power off" type="Button" parent="."] +offset_left = 34.0 +offset_top = 606.0 +offset_right = 171.0 +offset_bottom = 636.0 +theme_type_variation = &"FlatButton" + +[node name="p_off" type="TextureRect" parent="Power off"] +layout_mode = 0 +offset_left = 6.0 +offset_top = -3.0 +offset_right = 43.0 +offset_bottom = 32.0 +expand_mode = 1 + +[node name="Label" type="Label" parent="Power off"] +layout_mode = 0 +offset_left = 49.0 +offset_top = 2.0 +offset_right = 138.0 +offset_bottom = 28.0 +theme_override_fonts/font = ExtResource("4_mm1sy") +theme_override_font_sizes/font_size = 24 +text = "Menu" + +[connection signal="pressed" from="Node2D/Op/Help_panel/Help icon/Button_hlp" to="." method="_on_button_hlp_pressed"] +[connection signal="pressed" from="Node2D/Node2D/options icon/Button_opt" to="." method="_on_button_opt_pressed"] +[connection signal="pressed" from="Power off" to="." method="_on_power_off_pressed"]