* Modification de l'apparence de l'UI des dialogues * Changement de l'ordre de déblocage des mutations * Ajout d'une confirmation pour l'abandon * Ajout de la scène de fin avec la base Boréa, en tant que fin de démo * Modification des icône de durée de vie, temps de pousse, et de mort * Ajout d'un icône au dessus du joueur quand il n'a plus d'énergie * Amélioration des dialogues du jeu * Changement du modèle du téléphone * Ajout de cellule d'énergie et de cellule de talion trouvable sur la carte * Il est à nouveau possible de se recharger après la fin d'une région * Buff des mutations ancien sociale et solide * Modification de la mutation fertile (ne donne de gain de graine qu'à la maturation) * Ajout d'une récupération automatique des graines * Ajout de deux cartons de tutoriel ainsi qu'une option pour les revoir dans l'aide de jeu * Amélioration générale du tutoriel * Ajout d'un écran titre digne de ce nom * Lors de l'arrivée à destination, ne téléporte plus le joueur sur une map vide, mais directement dans les lieux de cinématique * Ajout graphique de plus de pattern de mousse et de roche * Le talion apparait maintenant sur toute la carte * La roche peut désormais apparaitre sur la zone de départ * Ajout dud modificateur de région Canyon * Equilibrage général * Fix de bugs en tout genre
119 lines
3.4 KiB
GDScript
119 lines
3.4 KiB
GDScript
extends Control
|
|
class_name Help
|
|
|
|
signal tutorial_passed
|
|
|
|
func _ready():
|
|
%EnergyTutorial.hide()
|
|
%PlantInfoTutorial.hide()
|
|
%MutationTutorial.hide()
|
|
%PlantpointsTutorial.hide()
|
|
|
|
func display_energy_tutorial():
|
|
%EnergyTutorialInfo.update(3,3,false)
|
|
%EnergyTutorialAnimationPlayer.play("appear")
|
|
Pointer.action_disabled = true
|
|
|
|
func display_plant_info_tutorial(
|
|
with_card_info : CardInfo = get_false_plant_card_info()
|
|
):
|
|
%PlantInfoCard.info = with_card_info
|
|
%PlantInfoCard.update()
|
|
%PlantInfoTutorialAnimationPlayer.play("appear")
|
|
Pointer.action_disabled = true
|
|
|
|
func display_mutations_tutorial(with_card_info : CardInfo = get_false_plant_card_info(true)):
|
|
%MutationCard.info = with_card_info
|
|
%MutationCard.update()
|
|
%MutationTutorialAnimationPlayer.play("appear")
|
|
Pointer.action_disabled = true
|
|
|
|
func display_plant_point_tutorial():
|
|
%PlantPointTutorialAnimationPlayer.play("appear")
|
|
Pointer.action_disabled = true
|
|
|
|
func get_false_plant_card_info(with_mutation = false):
|
|
var data = PlantData.new()
|
|
|
|
var info = CardInfo.new(
|
|
data.plant_name,
|
|
tr("MATURE") if data.is_mature() else tr("JUVENILE")
|
|
)
|
|
|
|
info.important_stat_icon = Plant.SCORE_ICON
|
|
info.important_stat_text = "%d" % 0
|
|
info.type_icon = Plant.PLANT_TYPE_ICON
|
|
|
|
|
|
info.stats.append_array([
|
|
CardStatInfo.new(
|
|
str(1),
|
|
Plant.DURATION_ICON
|
|
),
|
|
CardStatInfo.new(
|
|
str(2),
|
|
Plant.GROWING_ICON
|
|
),
|
|
CardStatInfo.new(
|
|
str(6),
|
|
Plant.LIFETIME_ICON
|
|
),
|
|
CardStatInfo.new(
|
|
str(1),
|
|
Plant.SEED_ICON
|
|
),
|
|
])
|
|
|
|
if with_mutation:
|
|
info.sections.append(AncientMutation.new().card_section())
|
|
|
|
return info
|
|
|
|
func _on_energy_button_tutorial_button_down():
|
|
display_energy_tutorial()
|
|
|
|
func _on_plant_button_tutorial_button_down():
|
|
display_plant_info_tutorial()
|
|
|
|
|
|
func _on_mutation_button_tutorial_button_down():
|
|
display_mutations_tutorial()
|
|
|
|
|
|
func _on_plant_point_button_tutorial_button_down():
|
|
display_plant_point_tutorial()
|
|
|
|
func _on_energy_ok_button_button_down():
|
|
%EnergyTutorialAnimationPlayer.play_backwards("appear")
|
|
tutorial_passed.emit()
|
|
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
|
func():
|
|
Pointer.action_disabled = false
|
|
)
|
|
|
|
func _on_plant_info_ok_button_button_down():
|
|
%PlantInfoTutorialAnimationPlayer.play_backwards("appear")
|
|
tutorial_passed.emit()
|
|
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
|
func():
|
|
Pointer.action_disabled = false
|
|
)
|
|
|
|
|
|
func _on_mutation_ok_button_button_down():
|
|
%MutationTutorialAnimationPlayer.play_backwards("appear")
|
|
tutorial_passed.emit()
|
|
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
|
func():
|
|
Pointer.action_disabled = false
|
|
)
|
|
|
|
|
|
func _on_plant_point_ok_button_button_down():
|
|
%PlantPointTutorialAnimationPlayer.play_backwards("appear")
|
|
tutorial_passed.emit()
|
|
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
|
func():
|
|
Pointer.action_disabled = false
|
|
)
|