Ajout de l'intégration twitch

This commit is contained in:
2026-06-23 23:38:20 +02:00
parent 4f93f7acaf
commit fcf8bfaa45
12 changed files with 305 additions and 16 deletions

View File

@@ -3,7 +3,9 @@
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="1_4ph5l"]
[ext_resource type="Script" uid="uid://cwmp2une7hobe" path="res://stages/title_screen/scripts/title_screen.gd" id="1_6yuhi"]
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/icons/bolt.svg" id="3_6yuhi"]
[ext_resource type="Texture2D" uid="uid://cvvnrj8wi3f3r" path="res://common/icons/brand-twitch.svg" id="3_gn4uv"]
[ext_resource type="Texture2D" uid="uid://3813d8ld7vt2" path="res://stages/title_screen/assets/textures/Logo-demo.png" id="3_lwj2x"]
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="4_ofiho"]
[ext_resource type="Texture2D" uid="uid://bewr0t1wi8pff" path="res://common/icons/rotate.svg" id="5_6yuhi"]
[ext_resource type="PackedScene" uid="uid://cm5b7w7j6527f" path="res://stages/title_screen/planet_3d.tscn" id="5_7a1qq"]
[ext_resource type="Texture2D" uid="uid://cixd5j8yqpavg" path="res://common/icons/settings.svg" id="6_3aitq"]
@@ -23,6 +25,47 @@
[sub_resource type="ViewportTexture" id="ViewportTexture_6yuhi"]
viewport_path = NodePath("SubViewport")
[sub_resource type="LabelSettings" id="LabelSettings_1xafb"]
font = ExtResource("4_ofiho")
font_size = 18
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_g4v7s"]
[sub_resource type="Animation" id="Animation_5icsl"]
length = 0.001
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("HSeparator:theme_override_constants/separation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0),
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_0vds4"]
resource_name = "bounce"
loop_mode = 1
tracks/0/type = "bezier"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("HSeparator:theme_override_constants/separation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"handle_modes": PackedInt32Array(0, 3, 0),
"points": PackedFloat32Array(0, -0.25, 0, 0.43333334, 0.0279046, 10, -0.18480387, 0, 0.18480387, 0, 0, -0.5333333, -0.073566735, 0, 0),
"times": PackedFloat32Array(0, 0.46666667, 1)
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0j8fm"]
_data = {
&"RESET": SubResource("Animation_5icsl"),
&"bounce": SubResource("Animation_0vds4")
}
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rf16a"]
bg_color = Color(1, 0, 0.43137255, 1)
border_width_left = 10
@@ -64,7 +107,7 @@ shader = ExtResource("8_pjo5j")
shader_parameter/strength = 5.00000023424012
shader_parameter/mix_percentage = 0.3
[sub_resource type="FastNoiseLite" id="FastNoiseLite_lwj2x"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_0e8rs"]
frequency = 1.0
[sub_resource type="Animation" id="Animation_gn4uv"]
@@ -299,6 +342,37 @@ size_flags_horizontal = 8
size_flags_vertical = 0
text = "Version"
[node name="TwitchContainer" type="VBoxContainer" parent="MarginContainer" unique_id=1193568878]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 8
theme_override_constants/separation = 0
[node name="TwitchInfo" type="HBoxContainer" parent="MarginContainer/TwitchContainer" unique_id=1516020408]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 8
alignment = 2
[node name="TextureRect" type="TextureRect" parent="MarginContainer/TwitchContainer/TwitchInfo" unique_id=1757288448]
modulate = Color(0.54509807, 0.1764706, 1, 1)
layout_mode = 2
texture = ExtResource("3_gn4uv")
[node name="Label" type="Label" parent="MarginContainer/TwitchContainer/TwitchInfo" unique_id=1597620585]
layout_mode = 2
text = "TWITCH_INTEGRATION_IN_THE_SETTINGS"
label_settings = SubResource("LabelSettings_1xafb")
[node name="HSeparator" type="HSeparator" parent="MarginContainer/TwitchContainer" unique_id=1913605901]
layout_mode = 2
theme_override_constants/separation = 0
theme_override_styles/separator = SubResource("StyleBoxEmpty_g4v7s")
[node name="AnimationPlayer" type="AnimationPlayer" parent="MarginContainer/TwitchContainer" unique_id=1532371629]
libraries/ = SubResource("AnimationLibrary_0j8fm")
autoplay = &"bounce"
[node name="GridContainer" type="HBoxContainer" parent="MarginContainer" unique_id=975183276]
layout_mode = 2
alignment = 1
@@ -452,7 +526,7 @@ size = Vector2i(1980, 1080)
[node name="Planet3d" parent="SubViewport" unique_id=926789923 instance=ExtResource("5_7a1qq")]
unique_name_in_owner = true
noise = SubResource("FastNoiseLite_lwj2x")
noise = SubResource("FastNoiseLite_0e8rs")
[node name="Camera3D" type="Camera3D" parent="SubViewport" unique_id=806252928]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.369979, 0, 64.323425)