changement du scene manager, amélioration du cockpit et autres

* refonte du scene manager
* refonte du audio manager
* premier rework des plantes
* nettoyage des dossiers/fichiers
* renommage de planète en region
* fix des run
This commit is contained in:
2026-01-23 18:06:27 +01:00
parent 62b34473b6
commit 83d462f2f4
247 changed files with 2964 additions and 3159 deletions

View File

@@ -1,17 +1,19 @@
[gd_scene load_steps=6 format=3 uid="uid://yk78ubpu5ghq"]
[gd_scene load_steps=9 format=3 uid="uid://yk78ubpu5ghq"]
[ext_resource type="Script" uid="uid://2qomrdxbvxqa" path="res://gui/game/pass_day/scripts/pass_day.gd" id="1_0pm4g"]
[ext_resource type="Shader" uid="uid://cuni3ggtw2uuy" path="res://common/vfx/materials/shaders/blur.gdshader" id="1_v570a"]
[ext_resource type="Script" uid="uid://i7glvbe8pdr8" path="res://gui/game/pass_day/scripts/pass_day_background.gd" id="2_bhfpo"]
[ext_resource type="PackedScene" uid="uid://brfsapvj2quxm" path="res://gui/game/energy_info/energy_info.tscn" id="2_feyaf"]
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="4_0pm4g"]
[ext_resource type="Script" uid="uid://0dhj8sdpil7q" path="res://gui/tools/control_animation_player.gd" id="5_dqmg8"]
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="6_dqmg8"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_27lg1"]
shader = ExtResource("1_v570a")
shader_parameter/strength = 0.1
shader_parameter/mix_percentage = 0.0
shader_parameter/strength = 10.0
shader_parameter/mix_percentage = 0.8
[node name="PassDay" type="Control"]
visible = false
z_index = 100
layout_mode = 3
anchors_preset = 15
@@ -33,18 +35,36 @@ grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("2_bhfpo")
blur_strength = 0.1
blur_strength = 10.0
blur_mix_percentage = 0.8
[node name="EnergyPassDayInfo" parent="." instance=ExtResource("2_feyaf")]
[node name="PassDayInfo" type="VBoxContainer" parent="."]
unique_name_in_owner = true
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -37.5
offset_right = 0.0
offset_bottom = 37.5
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("4_0pm4g")
alignment = 1
[node name="PassDayInfoAnimationPlayer" type="Node" parent="PassDayInfo"]
unique_name_in_owner = true
script = ExtResource("5_dqmg8")
metadata/_custom_type_script = "uid://0dhj8sdpil7q"
[node name="EnergyPassDayInfo" parent="PassDayInfo" instance=ExtResource("2_feyaf")]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
[node name="ChargeCount" type="Label" parent="PassDayInfo"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
text = "%d_CHARGE_LEFT"
label_settings = ExtResource("6_dqmg8")
horizontal_alignment = 1
vertical_alignment = 1

View File

@@ -4,8 +4,8 @@ class_name PassDay
const BLUR_STRENGTH = 10
const BLUR_MIX_PERCENTAGE = 0.8
const TIME_BY_ENERGY = 0.7
const TIME_MARGIN = 0.5
const TIME_BY_ENERGY = 0.3
const TIME_MARGIN = 0.2
signal max_energy_reached()
signal animation_appeared
@@ -26,7 +26,7 @@ var is_animation_disappeared := false
func _ready():
hide()
setup_energy_values()
%EnergyPassDayInfo.hide()
%PassDayInfo.hide()
func _process(delta):
if recharging:
@@ -48,6 +48,8 @@ func pass_day_animation():
setup_energy_values()
%ChargeCount.text = tr('%d_CHARGE_LEFT') % GameInfo.game_data.current_region_data.charges
is_animation_appeared=false
is_animation_disappeared=false
@@ -80,10 +82,10 @@ func appear():
BLUR_STRENGTH,
0.5
).finished
await %EnergyPassDayInfo.appear()
await %PassDayInfoAnimationPlayer.appear()
func disappear():
await %EnergyPassDayInfo.disappear()
await %PassDayInfoAnimationPlayer.disappear()
add_tween(
"blur_mix_percentage",
%Blur,