ajout de la traduction #70
* Fix de l'inspection de l'inventaire * Suppression des assets d'objectifs
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
extends Control
|
||||
|
||||
const PLANET_RUN_SCENE = preload("res://stages/planet_run/planet_run.tscn")
|
||||
|
||||
func _ready():
|
||||
visible = false
|
||||
|
||||
func win(planet : Planet):
|
||||
visible = true
|
||||
get_tree().paused = true
|
||||
%WinTitle.text = "Score : " + str(roundi(planet.garden.get_score()))
|
||||
%WinTitle.text = tr("SCORE_%d") % str(roundi(planet.garden.get_score()))
|
||||
|
||||
func _on_restart_pressed():
|
||||
GameInfo.game_data.reset_all()
|
||||
get_tree().paused = false
|
||||
get_tree().reload_current_scene()
|
||||
get_tree().change_scene_to_packed(PLANET_RUN_SCENE)
|
||||
|
||||
func _on_quit_pressed():
|
||||
get_tree().quit()
|
||||
|
||||
Reference in New Issue
Block a user