mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
improved menu
This commit is contained in:
parent
2637008a33
commit
81bc9fa37f
59 changed files with 783 additions and 78 deletions
12
Menu/LevelInfo.gd
Normal file
12
Menu/LevelInfo.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
extends VBoxContainer
|
||||
|
||||
func _ready():
|
||||
var _game_stats = GameStats.connect("current_stage_changed", self, "update_info")
|
||||
|
||||
func update_info(stage):
|
||||
$HBoxContainer/PlayButton.disabled = false
|
||||
var Stage = load(stage)
|
||||
stage = Stage.instance()
|
||||
|
||||
$ScoreLabel.text = stage.stage_name
|
||||
$HBoxContainer/PlayButton.visible = true
|
Loading…
Add table
Add a link
Reference in a new issue