équilibrage des quota et du jeu, changement du GUI pour rendre les objectifs de quotas plus visibles #72
This commit is contained in:
@@ -3,12 +3,14 @@ extends Control
|
||||
func _ready():
|
||||
visible = false
|
||||
|
||||
func win(decontamination_surface : float):
|
||||
func win(planet : Planet):
|
||||
visible = true
|
||||
get_tree().paused = true
|
||||
%WinTitle.text = "Score : " + str(roundi(decontamination_surface)) + " m2"
|
||||
%WinTitle.text = "Score : " + str(roundi(planet.decontamination_surface))
|
||||
|
||||
func _on_restart_pressed():
|
||||
GameInfo.game_data.current_planet_data = null
|
||||
get_tree().paused = false
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
func _on_quit_pressed():
|
||||
@@ -16,4 +18,4 @@ func _on_quit_pressed():
|
||||
|
||||
|
||||
func _on_planet_day_limit_exceed(planet : Planet):
|
||||
win(planet.decontamination_surface)
|
||||
win(planet)
|
||||
|
||||
@@ -57,7 +57,7 @@ alignment = 1
|
||||
[node name="WinTitle" type="Label" parent="Tutorial/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Score : 2%"
|
||||
text = "Score : 10"
|
||||
label_settings = SubResource("LabelSettings_eq457")
|
||||
horizontal_alignment = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user