style(screen): 调整维修面板标题与日志文本配色
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,6 +11,8 @@ namespace AibisDream.FixSystem
|
||||
{
|
||||
private const string WarningCharacterKey = "Error";
|
||||
private static readonly Color WarningRedColor = new(0.9607843f, 0.4235294f, 0.4235294f, 1f);
|
||||
private static readonly Color AmberColor = new(0.9019608f, 0.6352941f, 0.2352941f, 1f);
|
||||
private static readonly Color BodyTextColor = new(0.9196079f, 0.7009804f, 0.372549f, 1f);
|
||||
|
||||
[SerializeField] private TMP_Text title;
|
||||
[SerializeField] private TerminalText logText;
|
||||
@@ -19,6 +21,8 @@ namespace AibisDream.FixSystem
|
||||
{
|
||||
EnumEventSystem.Global.Register<ScreenEventEnum, GameObject>(ScreenEventEnum.Selected, OnSelected);
|
||||
EnumEventSystem.Global.Register(EventEnum.PlugOut, ClearScreen);
|
||||
|
||||
logText?.SetTextColor(BodyTextColor);
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
@@ -45,7 +49,7 @@ namespace AibisDream.FixSystem
|
||||
StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
title.overrideColorTags = true;
|
||||
title.color = isWarning ? WarningRedColor : Color.white;
|
||||
title.color = isWarning ? WarningRedColor : AmberColor;
|
||||
title.text = token.lineInfo.character.GetActorName();
|
||||
logText.SetTypewriterSpeed(GetTextSpeedValue());
|
||||
logText.AddText(token.lineInfo.lineText);
|
||||
|
||||
Reference in New Issue
Block a user