mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
14 lines
323 B
GDScript
14 lines
323 B
GDScript
|
|
@tool
|
||
|
|
extends FullscreenPanelBase
|
||
|
|
|
||
|
|
@onready var box = $"%box"
|
||
|
|
|
||
|
|
func beforeOpen():
|
||
|
|
for weapon in UIState.player.weapons:
|
||
|
|
UIState.player.weaponStore.remove_child(weapon)
|
||
|
|
box.add_child(weapon)
|
||
|
|
func afterClose():
|
||
|
|
for weapon in box.get_children():
|
||
|
|
box.remove_child(weapon)
|
||
|
|
UIState.player.weaponStore.add_child(weapon)
|