mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-28 06:22:40 +08:00
fix: 修复字段值显示逻辑,直接使用值而非字符串转换
This commit is contained in:
@@ -24,7 +24,7 @@ func _ready():
|
|||||||
var value = fieldValues[i]
|
var value = fieldValues[i]
|
||||||
var fieldShow: FieldShow = preload("res://components/UI/FieldShow.tscn").instantiate()
|
var fieldShow: FieldShow = preload("res://components/UI/FieldShow.tscn").instantiate()
|
||||||
fieldShow.field = field
|
fieldShow.field = field
|
||||||
fieldShow.value = str(value)
|
fieldShow.value = value
|
||||||
fieldsBox.add_child(fieldShow)
|
fieldsBox.add_child(fieldShow)
|
||||||
for i in costsBox.get_children():
|
for i in costsBox.get_children():
|
||||||
i.queue_free()
|
i.queue_free()
|
||||||
|
|||||||
Reference in New Issue
Block a user