feat: 修炼循环闭环——升层/瓶颈突破(按层概率)+管理界面修为进度+面板放大
This commit is contained in:
@@ -66,7 +66,7 @@ theme_override_colors/font_color = Color(0.82, 0.95, 0.88, 1)
|
||||
text = "弟子名录"
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="CenterContainer/Panel/MarginContainer/VBoxContainer" unique_id=780000008]
|
||||
custom_minimum_size = Vector2(640, 340)
|
||||
custom_minimum_size = Vector2(1280, 680)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
|
||||
@@ -14,12 +14,13 @@ func _ready() -> void:
|
||||
## @param d: 要展示的弟子
|
||||
func show_detail(d: Disciple) -> void:
|
||||
title_label.text = d.name + ("(天灵根)" if d.is_heavenly else "")
|
||||
info_label.text = "名字:%s\n资质:%s\n年龄:%d岁\n灵根:%s\n境界:%s\n入宗时间:%s" % [
|
||||
info_label.text = "名字:%s\n资质:%s\n年龄:%d岁\n灵根:%s\n境界:%s\n修为:%s\n入宗时间:%s" % [
|
||||
d.name,
|
||||
d.get_aptitude_name(),
|
||||
d.age,
|
||||
d.get_roots_text(),
|
||||
d.get_realm_text(),
|
||||
d.get_cultivation_progress_text(),
|
||||
d.get_join_date_text(),
|
||||
]
|
||||
visible = true
|
||||
|
||||
@@ -58,19 +58,19 @@ func _add_entry(d: Disciple) -> void:
|
||||
|
||||
var name_label := Label.new()
|
||||
name_label.text = d.name
|
||||
name_label.custom_minimum_size = Vector2(90, 0)
|
||||
name_label.custom_minimum_size = Vector2(180, 0)
|
||||
row.add_child(name_label)
|
||||
|
||||
var aptitude_label := Label.new()
|
||||
aptitude_label.text = d.get_aptitude_name() + ("·天灵根" if d.is_heavenly else "")
|
||||
if APTITUDE_COLORS.has(d.aptitude):
|
||||
aptitude_label.add_theme_color_override("font_color", APTITUDE_COLORS[d.aptitude])
|
||||
aptitude_label.custom_minimum_size = Vector2(130, 0)
|
||||
aptitude_label.custom_minimum_size = Vector2(260, 0)
|
||||
row.add_child(aptitude_label)
|
||||
|
||||
var roots_label := Label.new()
|
||||
roots_label.text = d.get_roots_text() + "灵根"
|
||||
roots_label.custom_minimum_size = Vector2(160, 0)
|
||||
roots_label.custom_minimum_size = Vector2(320, 0)
|
||||
row.add_child(roots_label)
|
||||
|
||||
var realm_label := Label.new()
|
||||
@@ -78,6 +78,11 @@ func _add_entry(d: Disciple) -> void:
|
||||
realm_label.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
row.add_child(realm_label)
|
||||
|
||||
var progress_label := Label.new()
|
||||
progress_label.text = d.get_cultivation_progress_text()
|
||||
progress_label.custom_minimum_size = Vector2(220, 0)
|
||||
row.add_child(progress_label)
|
||||
|
||||
var detail_button := Button.new()
|
||||
detail_button.text = "详情"
|
||||
detail_button.button_up.connect(_on_detail_button_up.bind(d))
|
||||
|
||||
Reference in New Issue
Block a user