Anri/AdBlockNot
Archived
1
0
Fork 0

Fenetre video + changement lumière

This commit is contained in:
2-1-1-2 2024-01-28 18:59:09 +01:00
parent 470a5c9f20
commit 7dbd914f28
7 changed files with 348 additions and 6 deletions

BIN
ressources/assets/SiteLegal/SiteLegal.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cg5bfy0m5rb1a"
path="res://.godot/imported/SiteLegal.png-58363c3a192c730aa8e632d041ed543d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ressources/assets/SiteLegal/SiteLegal.png"
dest_files=["res://.godot/imported/SiteLegal.png-58363c3a192c730aa8e632d041ed543d.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

@ -169,7 +169,7 @@ size = Vector3(10, 10, 0.1)
[node name="OmniLight3D" type="OmniLight3D" parent="."] [node name="OmniLight3D" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.09898, -0.0586737) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.09898, -0.0586737)
light_color = Color(0.996078, 1, 0.909804, 1) light_color = Color(0.317647, 1, 0.909804, 1)
light_energy = 3.415 light_energy = 3.415
omni_range = 9.134 omni_range = 9.134
omni_attenuation = 1.36604 omni_attenuation = 1.36604
@ -185,7 +185,25 @@ surface_material_override/0 = SubResource("StandardMaterial3D_vs38h")
[node name="SpotLight3D" type="SpotLight3D" parent="CeillingLight"] [node name="SpotLight3D" type="SpotLight3D" parent="CeillingLight"]
transform = Transform3D(1, 0, 0, 0, -0.0303117, 0.999541, 0, -0.999541, -0.0303117, 0.409277, 0, 0.370178) transform = Transform3D(1, 0, 0, 0, -0.0303117, 0.999541, 0, -0.999541, -0.0303117, 0.409277, 0, 0.370178)
light_color = Color(0.992157, 0.960784, 0.929412, 1) light_color = Color(0.992157, 0.419608, 0.929412, 1)
light_energy = 6.283
shadow_enabled = true
spot_range = 14.66
spot_angle = 78.93
spot_angle_attenuation = 0.406126
[node name="SpotLight3D2" type="SpotLight3D" parent="CeillingLight"]
transform = Transform3D(1, 0, 0, 0, -0.223046, 0.974808, 0, -0.974808, -0.223046, 0.409277, 1.01593, -1.52549)
light_color = Color(0.623529, 0.67451, 0.862745, 1)
light_energy = 6.283
shadow_enabled = true
spot_range = 14.66
spot_angle = 78.93
spot_angle_attenuation = 0.406126
[node name="SpotLight3D3" type="SpotLight3D" parent="CeillingLight"]
transform = Transform3D(1, 0, 0, 0, -0.223046, 0.974808, 0, -0.974808, -0.223046, 0.409277, 1.01593, -1.52549)
light_color = Color(0.772549, 0.678431, 0.360784, 1)
light_energy = 6.283 light_energy = 6.283
shadow_enabled = true shadow_enabled = true
spot_range = 14.66 spot_range = 14.66

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://ur6erv76d2of"] [gd_scene load_steps=13 format=3 uid="uid://ur6erv76d2of"]
[ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="1_7ecbr"] [ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="1_7ecbr"]
[ext_resource type="Script" path="res://scripts/game.gd" id="1_orxmr"] [ext_resource type="Script" path="res://scripts/game.gd" id="1_orxmr"]
@ -6,6 +6,7 @@
[ext_resource type="Texture2D" uid="uid://ca0n6csxw7yd7" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Pressed.png" id="3_eb8po"] [ext_resource type="Texture2D" uid="uid://ca0n6csxw7yd7" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Pressed.png" id="3_eb8po"]
[ext_resource type="Texture2D" uid="uid://c1s8gaui8k13h" path="res://models/RetroWindowsGUI/Flag.png" id="4_medxy"] [ext_resource type="Texture2D" uid="uid://c1s8gaui8k13h" path="res://models/RetroWindowsGUI/Flag.png" id="4_medxy"]
[ext_resource type="Shader" path="res://shaders/oldscreen.gdshader" id="6_7ta02"] [ext_resource type="Shader" path="res://shaders/oldscreen.gdshader" id="6_7ta02"]
[ext_resource type="PackedScene" uid="uid://b4ujwtugvmurm" path="res://scenes/game/windows/Video_page.tscn" id="7_3mlyk"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_se4f0"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_se4f0"]
bg_color = Color(0.764706, 0.764706, 0.764706, 1) bg_color = Color(0.764706, 0.764706, 0.764706, 1)
@ -102,3 +103,10 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
[node name="VideoPage" parent="." instance=ExtResource("7_3mlyk")]
layout_mode = 1
offset_left = 96.0
offset_top = 89.0
offset_right = -450.0
offset_bottom = -104.0

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_pb0qd"] [sub_resource type="GradientTexture1D" id="GradientTexture1D_iuy3e"]
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_pb0qd") texture = SubResource("GradientTexture1D_iuy3e")
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,137 @@
[gd_scene load_steps=17 format=3 uid="uid://dy8v15118gup3"]
[ext_resource type="Script" path="res://scripts/ads.gd" id="1_85awo"]
[ext_resource type="Shader" path="res://shaders/oldscreen.gdshader" id="2_ut81o"]
[ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="3_ahcsb"]
[ext_resource type="Texture2D" uid="uid://c012k8qiyjn4a" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button.png" id="4_w4o11"]
[ext_resource type="Texture2D" uid="uid://rryuulwvlsqi" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Inactive.png" id="5_rp8ei"]
[ext_resource type="Texture2D" uid="uid://ca0n6csxw7yd7" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Pressed.png" id="6_62pog"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_16my3"]
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_qyjym"]
offsets = PackedFloat32Array(0, 0.396624)
colors = PackedColorArray(0, 0, 0.501961, 1, 1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_pb0qd"]
gradient = SubResource("Gradient_qyjym")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_54rle"]
texture = SubResource("GradientTexture1D_pb0qd")
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_y28d3"]
shader = ExtResource("2_ut81o")
shader_parameter/SCREEN_HEIGHT = 240.0
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8aptj"]
texture = ExtResource("4_w4o11")
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_dlla7"]
texture = ExtResource("5_rp8ei")
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_jwtvu"]
texture = ExtResource("6_62pog")
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_0cval"]
texture = ExtResource("5_rp8ei")
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_mmcpo"]
texture = ExtResource("4_w4o11")
texture_margin_left = 2.0
texture_margin_top = 2.0
texture_margin_right = 2.0
texture_margin_bottom = 2.0
[node name="Windows" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -1100.0
offset_bottom = -500.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_85awo")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_16my3")
[node name="Panel2" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 10.0
offset_top = 8.0
offset_right = -9.0
offset_bottom = 54.0
grow_horizontal = 2
theme_override_styles/panel = SubResource("StyleBoxTexture_54rle")
[node name="ColorRect2" type="ColorRect" parent="Panel2"]
material = SubResource("ShaderMaterial_y28d3")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -10.0
offset_top = -8.0
offset_right = -10.0
offset_bottom = 346.0
grow_horizontal = 2
grow_vertical = 2
[node name="Button" type="Button" parent="Panel2"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -38.0
offset_top = 6.0
offset_right = -4.0
offset_bottom = 42.0
grow_horizontal = 0
theme_override_colors/font_color = Color(0, 0, 0.0392157, 1)
theme_override_fonts/font = ExtResource("3_ahcsb")
theme_override_font_sizes/font_size = 20
theme_override_styles/normal = SubResource("StyleBoxTexture_8aptj")
theme_override_styles/hover = SubResource("StyleBoxTexture_dlla7")
theme_override_styles/pressed = SubResource("StyleBoxTexture_jwtvu")
theme_override_styles/disabled = SubResource("StyleBoxTexture_0cval")
theme_override_styles/focus = SubResource("StyleBoxTexture_mmcpo")
text = "X"
icon_alignment = 1
expand_icon = true
[connection signal="pressed" from="Panel2/Button" to="." method="_on_button_pressed"]

View file

@ -1,9 +1,151 @@
[gd_scene format=3 uid="uid://b4ujwtugvmurm"] [gd_scene load_steps=18 format=3 uid="uid://b4ujwtugvmurm"]
[ext_resource type="Texture2D" uid="uid://cg5bfy0m5rb1a" path="res://ressources/assets/SiteLegal/SiteLegal.png" id="1_icxi0"]
[ext_resource type="Shader" path="res://shaders/oldscreen.gdshader" id="2_lxc76"]
[ext_resource type="FontFile" uid="uid://dwgslonlru0ck" path="res://ressources/Battlenet.ttf" id="3_alh26"]
[ext_resource type="Texture2D" uid="uid://c012k8qiyjn4a" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button.png" id="4_ifnyt"]
[ext_resource type="Texture2D" uid="uid://rryuulwvlsqi" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Inactive.png" id="5_m5cao"]
[ext_resource type="Texture2D" uid="uid://ca0n6csxw7yd7" path="res://models/RetroWindowsGUI/RetroWindowsGUI/Windows_Button_Pressed.png" id="6_8xpiv"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_krw8x"]
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="StyleBoxTexture" id="StyleBoxTexture_stjr4"]
texture = ExtResource("1_icxi0")
[sub_resource type="Gradient" id="Gradient_dsyee"]
offsets = PackedFloat32Array(0, 0.396624)
colors = PackedColorArray(0, 0, 0.501961, 1, 1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_pb0qd"]
gradient = SubResource("Gradient_dsyee")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_xycn1"]
texture = SubResource("GradientTexture1D_pb0qd")
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_ax8i7"]
shader = ExtResource("2_lxc76")
shader_parameter/SCREEN_HEIGHT = 240.0
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_664vk"]
texture = ExtResource("4_ifnyt")
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_2mvw8"]
texture = ExtResource("5_m5cao")
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_3una0"]
texture = ExtResource("6_8xpiv")
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_b80yv"]
texture = ExtResource("5_m5cao")
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_j0kqh"]
texture = ExtResource("4_ifnyt")
texture_margin_left = 2.0
texture_margin_top = 2.0
texture_margin_right = 2.0
texture_margin_bottom = 2.0
[node name="VideoPage" type="Control"] [node name="VideoPage" type="Control"]
layout_mode = 3 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
offset_right = -703.0
offset_bottom = -351.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_krw8x")
[node name="Panel" type="Panel" parent="Panel"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 11.0
offset_top = -488.0
offset_right = -8.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxTexture_stjr4")
[node name="Panel2" type="Panel" parent="Panel"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 10.0
offset_top = 8.0
offset_right = -9.0
offset_bottom = 54.0
grow_horizontal = 2
theme_override_styles/panel = SubResource("StyleBoxTexture_xycn1")
[node name="ColorRect2" type="ColorRect" parent="Panel/Panel2"]
material = SubResource("ShaderMaterial_ax8i7")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -10.0
offset_top = -8.0
offset_right = 9.0
offset_bottom = 488.0
grow_horizontal = 2
grow_vertical = 2
[node name="Button" type="Button" parent="Panel/Panel2"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -38.0
offset_top = 6.0
offset_right = -4.0
offset_bottom = 42.0
grow_horizontal = 0
theme_override_colors/font_color = Color(0, 0, 0.0392157, 1)
theme_override_fonts/font = ExtResource("3_alh26")
theme_override_font_sizes/font_size = 20
theme_override_styles/normal = SubResource("StyleBoxTexture_664vk")
theme_override_styles/hover = SubResource("StyleBoxTexture_2mvw8")
theme_override_styles/pressed = SubResource("StyleBoxTexture_3una0")
theme_override_styles/disabled = SubResource("StyleBoxTexture_b80yv")
theme_override_styles/focus = SubResource("StyleBoxTexture_j0kqh")
text = "X"
icon_alignment = 1
expand_icon = true