feat: 添加升级面板到arena,添加全局事件监听升级选择

This commit is contained in:
luke358
2026-05-21 16:32:12 +08:00
parent 1796d9e47d
commit 1cf4eeecc6
9 changed files with 46 additions and 9 deletions
+7
View File
@@ -14,3 +14,10 @@ func _set_data(value: ItemUpgrade) -> void:
item_name.text = item_data.item_name
item_description.text = item_data.descriptin
func _on_custom_button_pressed() -> void:
if item_data and is_instance_valid(Global.player):
item_data.apply_upgrade()
Global.on_upgrade_selected.emit()