Prevent briefing marker text clipping

This commit is contained in:
2026-06-20 17:20:53 +09:00
parent 81672d5a27
commit 482a88ba4a
2 changed files with 15 additions and 4 deletions

View File

@@ -12986,20 +12986,20 @@ func _make_briefing_tactical_marker_chip(entry: Dictionary) -> PanelContainer:
var title_label := Label.new()
title_label.custom_minimum_size = Vector2(78, 13)
title_label.clip_text = true
title_label.text = label_text
title_label.tooltip_text = tooltip
title_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
title_label.mouse_filter = Control.MOUSE_FILTER_IGNORE
_apply_label_style(title_label, UI_PARCHMENT_TEXT, 12)
_set_fitted_label_text(title_label, label_text, 12, 9, title_label.custom_minimum_size)
text_column.add_child(title_label)
var detail_label := Label.new()
detail_label.custom_minimum_size = Vector2(78, 10)
detail_label.clip_text = true
detail_label.text = summary_text
detail_label.tooltip_text = tooltip
detail_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
detail_label.mouse_filter = Control.MOUSE_FILTER_IGNORE
_apply_label_style(detail_label, UI_OLD_BRONZE, 9)
_set_fitted_label_text(detail_label, summary_text, 9, 8, detail_label.custom_minimum_size)
text_column.add_child(detail_label)
_set_control_tree_tooltip(chip, tooltip)