mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
7a0cf96d7d
实现武器升华功能,包括: - 新增SublimateOption类处理升华选项 - 添加SublimateOptionHandler UI组件 - 在武器卡片中集成升华界面 - 重构武器描述生成逻辑 - 新增钻石资源消耗机制 - 优化UI布局和样式 - 修复多处类型引用错误
14 lines
281 B
GDScript
14 lines
281 B
GDScript
@tool
|
|
extends Button
|
|
class_name TextSwitchButton
|
|
|
|
@export var pressedText: String = "已按下"
|
|
@export var unpressedText: String = "未按下"
|
|
|
|
func _ready():
|
|
updateText()
|
|
toggled.connect(updateText)
|
|
|
|
func updateText():
|
|
text = [unpressedText, pressedText][int(button_pressed)]
|