1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Panels/WeaponPanel.gd
T

17 lines
395 B
GDScript
Raw Normal View History

2025-09-06 11:23:11 +08:00
@tool
extends FullscreenPanelBase
@onready var box = $"%box"
func beforeOpen(_args: Array = []):
2025-09-06 11:23:11 +08:00
for weapon in UIState.player.weapons:
weapon.show()
weapon.rebuildInfo()
2025-09-06 11:23:11 +08:00
UIState.player.weaponStore.remove_child(weapon)
box.add_child(weapon)
func afterClose():
for weapon in box.get_children():
weapon.hide()
2025-09-06 11:23:11 +08:00
box.remove_child(weapon)
UIState.player.weaponStore.add_child(weapon)