다이얼로그 가운데 정렬

This commit is contained in:
2026-07-31 12:47:31 +09:00
parent 4dc22eb32b
commit 5bf43f6464
10 changed files with 66 additions and 10 deletions

View File

@@ -136,12 +136,18 @@ private void ApplyState()
{
_dialogText.text = _typewriter.Composed;
// 스타일이 색을 덮으면 인라인으로 지정하고, 아니면 인라인을 걷어 USS 으로 되돌린다
// 스타일이 덮도록 지정한 항목만 인라인으로 고, 아니면 인라인을 걷어 USS 으로 되돌린다
var style = _typewriter.Style;
if (style != null && style.OverrideColor)
_dialogText.style.color = style.TextColor;
else
_dialogText.style.color = StyleKeyword.Null;
if (style != null && style.OverrideAlign)
_dialogText.style.unityTextAlign = style.TextAlign;
else
_dialogText.style.unityTextAlign = StyleKeyword.Null;
}
if (_panel != null)