石头小改

This commit is contained in:
2024-12-26 20:33:15 +08:00
parent 901680e7d9
commit 654e7fe84d
16 changed files with 2166 additions and 1240 deletions
@@ -2,7 +2,6 @@
using TMPro;
using UnityEngine;
using DG.Tweening;
using Febucci.UI;
using Random = UnityEngine.Random;
using System.Collections;
@@ -13,7 +12,7 @@ namespace AibisDream.FixSystem
#region
private BodyModuleSystem _bodyModuleSystem;
public TMP_Text state; // 显示状态的TextMeshPro组件
private TMP_Text _state; // 显示状态的TextMeshPro组件
private TMP_Text _screenText;// 显示消息的TextMeshPro组件
private WaveformLine _waveformLine;
private ScanLine _scanLine;
@@ -42,6 +41,7 @@ namespace AibisDream.FixSystem
_bodyModuleSystem = GetComponentInParent<BodyModuleSystem>();
_screenText = transform.Find("Screen Text").GetComponent<TMP_Text>();
_state = transform.Find("Screen State Text").GetComponent<TMP_Text>();
_waveformLine = transform.Find("Waveform Visualizer").GetComponent<WaveformLine>();
_scanLine = transform.Find("Scan Line").GetComponent<ScanLine>();
_screen = transform.Find("Screen").GetComponent<SpriteRenderer>();
@@ -167,30 +167,30 @@ namespace AibisDream.FixSystem
public void MessageBoxSetError()
{
state.text = "错误";
state.color = Color.red; // 红色
_state.text = "错误";
_state.color = Color.red; // 红色
// _screenText.text = message;
// _screenText.color = Color.white; // 默认文本颜色
}
public void MessageBoxSetWarning()
{
state.text = "警告";
state.color = new Color(1.0f, 0.55f, 0.0f); // 琥珀色
_state.text = "警告";
_state.color = new Color(1.0f, 0.55f, 0.0f); // 琥珀色
// _screenText.text = message;
// _screenText.color = Color.white; // 默认文本颜色
}
public void MessageBoxSetNormal()
{
state.text = "正常";
state.color = Color.blue; // 琥珀色
_state.text = "正常";
_state.color = Color.blue; // 琥珀色
// _screenText.text = message;
// _screenText.color = Color.white; // 默认文本颜色
}
public void MessageBoxSetChecking()
{
state.text = "检查中";
state.color = Color.white; // 琥珀色
_state.text = "检查中";
_state.color = Color.white; // 琥珀色
// _screenText.text = string.Empty;
// _screenText.color = Color.white; // 默认文本颜色
}
@@ -201,8 +201,8 @@ namespace AibisDream.FixSystem
}
public void MessageBoxSetNull()
{
state.text = "未检测到信号";
state.color = Color.white; // 蓝色
_state.text = "未检测到信号";
_state.color = Color.white; // 蓝色
_screenText.text = "";
_screenText.color = Color.white; // 默认文本颜色
}