plant pick menu
This commit is contained in:
parent
73a2fe42ad
commit
32453f2e9d
18 changed files with 121 additions and 39 deletions
|
|
@ -6,8 +6,8 @@ var chosen : bool
|
|||
var locked : bool = false
|
||||
var forbidden : bool = false
|
||||
|
||||
func _init(seedpacket : Seedpacket) -> void:
|
||||
super._init(seedpacket)
|
||||
func _init(packet : Seedpacket) -> void:
|
||||
super._init(packet)
|
||||
LevelEventBus.hotbar_packets_update.connect(on_hotbar_changed)
|
||||
|
||||
func exit() -> void:
|
||||
|
|
@ -19,3 +19,7 @@ func is_avaiable() -> bool:
|
|||
func on_hotbar_changed(to : Array[SeedpacketResource]):
|
||||
chosen = to.has(seedpacket.held_resource)
|
||||
seedpacket.update_contents()
|
||||
|
||||
func on_updated_contents():
|
||||
seedpacket.forbidden.visible = forbidden
|
||||
seedpacket.locked.visible = locked
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue