1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Panels/WeaponPanel.gd
T
fallingshrimp 47608ed847 feat: 为角色添加显示名称并完善面板功能
为熊、公鸡、母鸡等角色添加displayName属性
修改FullscreenPanelBase及相关面板以支持参数传递
完善GameOver面板显示凶手信息功能
调整部分角色的节点索引和状态栏位置
2025-09-07 13:39:50 +08:00

16 lines
372 B
GDScript

@tool
extends FullscreenPanelBase
@onready var box = $"%box"
func beforeOpen(_args: Array = []):
for weapon in UIState.player.weapons:
weapon.show()
UIState.player.weaponStore.remove_child(weapon)
box.add_child(weapon)
func afterClose():
for weapon in box.get_children():
weapon.hide()
box.remove_child(weapon)
UIState.player.weaponStore.add_child(weapon)