Strengthen battle UI text legibility

This commit is contained in:
2026-06-20 10:33:54 +09:00
parent 3ef61316e2
commit afba4197b0
2 changed files with 15 additions and 4 deletions

View File

@@ -251,8 +251,8 @@ const UI_OLD_SILK := Color(0.48, 0.44, 0.36, 0.997)
const UI_BURNT_PAPER := Color(0.22, 0.18, 0.13, 0.996)
const UI_BRUSH_RULE := Color(0.065, 0.060, 0.052, 0.98)
const UI_TEXT_DARK_OUTLINE := Color(0.018, 0.012, 0.007, 0.88)
const UI_TEXT_LIGHT_OUTLINE := Color(0.92, 0.84, 0.62, 0.38)
const UI_TEXT_SHADOW := Color(0.010, 0.007, 0.004, 0.58)
const UI_TEXT_LIGHT_OUTLINE := Color(0.96, 0.88, 0.66, 0.56)
const UI_TEXT_SHADOW := Color(0.010, 0.007, 0.004, 0.66)
const MAP_SCROLL_FRAME_PADDING := 12.0
const SPEAKER_DISPLAY_NAMES := {
"Cao Cao": "조조",
@@ -1160,7 +1160,7 @@ func _apply_text_legibility(control: Control, font_color: Color, font_size: int
var resolved_size := font_size
if resolved_size <= 0:
resolved_size = control.get_theme_font_size("font_size")
var outline_size := 2 if resolved_size >= 24 else 1
var outline_size := 2 if resolved_size >= 13 else 1
control.add_theme_color_override("font_outline_color", _text_outline_color_for(font_color))
control.add_theme_constant_override("outline_size", outline_size)
control.add_theme_color_override("font_shadow_color", UI_TEXT_SHADOW)