First Prototype
This commit is contained in:
parent
e18beb6c4c
commit
9e3349eec3
40 changed files with 1100 additions and 48 deletions
19
scenes/menu/endScreen/end_screen.gd
Normal file
19
scenes/menu/endScreen/end_screen.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Control
|
||||
|
||||
@onready var moneyResultLabel = $CenterContainer/VBoxContainer/HBoxContainer/MoneyResult
|
||||
@onready var healthResultLabel = $CenterContainer/VBoxContainer/HBoxContainer2/HealthResult
|
||||
|
||||
@onready var succesLabel = $CenterContainer/VBoxContainer/VBoxContainer/SUCCESLabel
|
||||
@onready var failureLabel = $CenterContainer/VBoxContainer/VBoxContainer/FAILURELabel
|
||||
|
||||
func _ready() -> void:
|
||||
if G.extracted:
|
||||
succesLabel.show()
|
||||
failureLabel.hide()
|
||||
moneyResultLabel.text = str(G.money)
|
||||
healthResultLabel.text = str(G.lastHealth)
|
||||
|
||||
|
||||
|
||||
func _on_home_button_button_up() -> void:
|
||||
get_parent().loadStartMenu()
|
||||
Loading…
Add table
Add a link
Reference in a new issue