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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user