Anri/AdBlockNot
Archived
1
0
Fork 0

Merge remote-tracking branch 'origin/conflit'

This commit is contained in:
Mylloon 2024-01-28 16:49:08 +01:00
commit 47a4f4a4bb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
26 changed files with 1089 additions and 40 deletions

View file

@ -16,5 +16,6 @@ Modèles 3D :
- https://www.cgtrader.com - https://www.cgtrader.com
Ressources 2D : Ressources 2D :
- https://alexmeub.com/projects/windows-98-icons/ - https://alexmeub.com/projects/windows-98-icons/
- https://linkvertise.com/725291/aOTJ96770113859 - https://linkvertise.com/725291/aOTJ96770113859- https://polyhaven.com/models

15
default_bus_layout.tres Normal file
View file

@ -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"

BIN
models/menu/icones/Help.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
models/menu/icones/Infinite.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
models/menu/icones/Options.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
models/menu/icones/Sound.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

BIN
models/menu/icones/User.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -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

View file

@ -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

View file

@ -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

Binary file not shown.

View file

@ -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

View file

@ -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.
//}

View file

@ -19,11 +19,11 @@ border_color = Color(0.686275, 0.662745, 0.619608, 1)
offsets = PackedFloat32Array(0, 0.396624) offsets = PackedFloat32Array(0, 0.396624)
colors = PackedColorArray(0, 0, 0.501961, 1, 1, 1, 1, 1) 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") gradient = SubResource("Gradient_qyjym")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_54rle"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_54rle"]
texture = SubResource("GradientTexture1D_n5gkc") texture = SubResource("GradientTexture1D_pb0qd")
texture_margin_left = 3.27016 texture_margin_left = 3.27016
texture_margin_top = 4.41471 texture_margin_top = 4.41471
texture_margin_right = 0.654032 texture_margin_right = 0.654032

View file

@ -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)

89
scenes/menu/Options.gd Normal file
View file

@ -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.

View file

@ -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"] [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"]

View file

@ -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" uid="uid://dokls1btlk3hc" 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"]
[sub_resource type="Gradient" id="Gradient_pacrk"] [sub_resource type="Gradient" id="Gradient_pacrk"]
offsets = PackedFloat32Array(0.684524, 1) offsets = PackedFloat32Array(0.684524, 1)
@ -60,7 +59,6 @@ offset_left = 14.0
offset_top = 1076.0 offset_top = 1076.0
offset_right = 1577.0 offset_right = 1577.0
offset_bottom = 1966.0 offset_bottom = 1966.0
texture = ExtResource("2_076k5")
[node name="horizontal line" type="TextureRect" parent="."] [node name="horizontal line" type="TextureRect" parent="."]
offset_top = 105.0 offset_top = 105.0

View file

@ -3,6 +3,7 @@ extends Node2D
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready(): func _ready():
$Menu/Options/Rules.set_visible(false)
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
pass # Replace with function body. pass # Replace with function body.
@ -24,5 +25,10 @@ func _on_infinite_start_pressed():
pass # Replace with function body. pass # Replace with function body.
func _on_options_pressed(): 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. pass # Replace with function body.

View file

@ -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="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="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://dayle54j3fk2g" path="res://models/menu/power_off.png" id="3_4ev8s"]
[ext_resource type="Texture2D" uid="uid://esj5tuyxt4n4" path="res://models/menu/PDP.png" id="3_a6fh8"]
[ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="3_coatq"] [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"] [node name="Menu" type="Node2D"]
script = ExtResource("1_y4d58") script = ExtResource("1_y4d58")
[node name="image_menu" parent="." instance=ExtResource("1_f4wvw")] [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="."] [node name="Menu" type="VBoxContainer" parent="."]
offset_left = 915.0 offset_left = 915.0
offset_top = 313.0 offset_top = 313.0
@ -18,7 +78,6 @@ offset_right = 1163.0
offset_bottom = 433.0 offset_bottom = 433.0
scale = Vector2(1.83, 1.83) scale = Vector2(1.83, 1.83)
theme_override_constants/separation = 29 theme_override_constants/separation = 29
alignment = 1
[node name="NormalStart" type="Button" parent="Menu"] [node name="NormalStart" type="Button" parent="Menu"]
layout_mode = 2 layout_mode = 2
@ -31,9 +90,17 @@ offset_left = 1.0929
offset_top = -5.46448 offset_top = -5.46448
offset_right = 41.0929 offset_right = 41.0929
offset_bottom = 34.5355 offset_bottom = 34.5355
texture = ExtResource("3_a6fh8") texture = ExtResource("3_kh055")
expand_mode = 1 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"] [node name="Label" type="Label" parent="Menu/NormalStart"]
layout_mode = 0 layout_mode = 0
offset_left = 49.0 offset_left = 49.0
@ -54,9 +121,17 @@ layout_mode = 0
offset_top = -4.26229 offset_top = -4.26229
offset_right = 40.0 offset_right = 40.0
offset_bottom = 35.7377 offset_bottom = 35.7377
texture = ExtResource("3_a6fh8") texture = ExtResource("5_bnbfr")
expand_mode = 1 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"] [node name="Label" type="Label" parent="Menu/InfiniteStart"]
layout_mode = 0 layout_mode = 0
offset_left = 49.0 offset_left = 49.0
@ -79,9 +154,17 @@ offset_left = 1.0929
offset_top = -4.69944 offset_top = -4.69944
offset_right = 41.0929 offset_right = 41.0929
offset_bottom = 35.3006 offset_bottom = 35.3006
texture = ExtResource("3_a6fh8") texture = ExtResource("6_1ofa3")
expand_mode = 1 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"] [node name="Label" type="Label" parent="Menu/Options"]
layout_mode = 0 layout_mode = 0
offset_left = 49.0 offset_left = 49.0
@ -92,33 +175,31 @@ theme_override_fonts/font = ExtResource("3_coatq")
theme_override_font_sizes/font_size = 24 theme_override_font_sizes/font_size = 24
text = "Options" text = "Options"
[node name="Power off" type="Button" parent="."] [node name="Rules" parent="Menu/Options" instance=ExtResource("7_bv273")]
offset_left = 46.0 position = Vector2(-286.885, -221.093)
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"] [node name="close" type="Button" parent="Menu/Options/Rules"]
layout_mode = 0 anchors_preset = 1
offset_left = 6.0 anchor_left = 1.0
offset_top = -3.0 anchor_right = 1.0
offset_right = 43.0 offset_left = 786.885
offset_bottom = 32.0 offset_top = 13.115
texture = ExtResource("2_4yhxu") offset_right = 820.885
expand_mode = 1 offset_bottom = 49.115
grow_horizontal = 0
[node name="Label" type="Label" parent="Power off"] theme_override_colors/font_color = Color(0, 0, 0.0392157, 1)
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_fonts/font = ExtResource("3_coatq")
theme_override_font_sizes/font_size = 24 theme_override_font_sizes/font_size = 20
text = "Power off" 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/NormalStart" to="." method="_on_normal_start_pressed"]
[connection signal="pressed" from="Menu/InfiniteStart" to="." method="_on_infinite_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="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"]

32
scenes/menu/rules.gd Normal file
View file

@ -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")

287
scenes/menu/rules.tscn Normal file
View file

@ -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"]