Missiles unlockable
This commit is contained in:
parent
2e1bcbc225
commit
0f3f6f0133
12 changed files with 82 additions and 3 deletions
|
@ -6,6 +6,10 @@ onready var label = $Label
|
|||
|
||||
func _ready():
|
||||
PlayerStats.connect("player_missiles_changed", self, "_on_player_missiles_changed")
|
||||
PlayerStats.connect("player_missiles_unlocked", self, "_on_player_missiles_unlocked")
|
||||
|
||||
func _on_player_missiles_changed(value):
|
||||
label.text = str(value)
|
||||
|
||||
func _on_player_missiles_unlocked(value):
|
||||
visible = value
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
[ext_resource path="res://Scenes/UI/MissilesUI.gd" type="Script" id=3]
|
||||
|
||||
[node name="MissilesUI" type="HBoxContainer"]
|
||||
visible = false
|
||||
margin_right = 33.0
|
||||
margin_bottom = 12.0
|
||||
script = ExtResource( 3 )
|
||||
|
|
|
@ -16,6 +16,7 @@ margin_bottom = 16.0
|
|||
visible = false
|
||||
|
||||
[node name="MissilesUI" parent="." instance=ExtResource( 3 )]
|
||||
visible = false
|
||||
margin_left = 4.0
|
||||
margin_top = 19.0
|
||||
margin_right = 37.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue