Correction de bug de Dialogic et réparation de la décontamination de la planète de l'écran titre
This commit is contained in:
@@ -16,15 +16,15 @@ func _ready():
|
||||
%Version.text = ProjectSettings.get_setting("application/config/version")
|
||||
%Start.text = tr("CONTINUE") if GameInfo.game_data else tr("START")
|
||||
%Restart.visible = GameInfo.game_data != null
|
||||
if GameInfo.game_data:
|
||||
%Planet3d.fertility_factor = (
|
||||
max(0,float(GameInfo.game_data.progression_data.story_step_i - 1))
|
||||
/ len(
|
||||
GameInfo.game_data.progression_data.get_all_story_steps()
|
||||
) - 1
|
||||
)
|
||||
%Settings.close_settings()
|
||||
%Controls.close_controls()
|
||||
if not GameInfo.game_data:
|
||||
GameInfo.game_loaded.connect(
|
||||
func ():
|
||||
decontaminate_3D_planet(GameInfo.game_data)
|
||||
)
|
||||
else :
|
||||
decontaminate_3D_planet(GameInfo.game_data)
|
||||
|
||||
func _on_start_pressed():
|
||||
if GameInfo.game_data :
|
||||
@@ -36,6 +36,14 @@ func _on_start_pressed():
|
||||
GameInfo.start_game_data()
|
||||
SceneManager.change_to_scene(IntroScene.new())
|
||||
|
||||
func decontaminate_3D_planet(game_data):
|
||||
%Planet3d.fertility_factor = (
|
||||
max(0,float(GameInfo.game_data.progression_data.story_step_i))
|
||||
/ len(
|
||||
GameInfo.game_data.progression_data.get_all_story_steps()
|
||||
)
|
||||
)
|
||||
|
||||
func _process(delta):
|
||||
next_mouse_pos = get_viewport().get_mouse_position()
|
||||
if Input.is_action_just_pressed("action"):
|
||||
|
||||
Reference in New Issue
Block a user