屏幕问题

This commit is contained in:
2026-01-28 16:20:19 +08:00
parent 7464cd8b6c
commit 7d7e2fcdf0
20 changed files with 771 additions and 479 deletions
@@ -1,6 +1,7 @@
using UnityEngine;
using AibisDream.FixSystem;
using System;
using UnityEngine.Events;
namespace AibisDream
{
@@ -11,8 +12,6 @@ namespace AibisDream
[SerializeField] private UniversalScreen blockPuzzleScreen;
[SerializeField] private BlockPuzzlePart blockPuzzlePart;
public event Action OnSubmit;
// ---------------------- 维修部分 ----------------------
public BlockPuzzlePart Panel => blockPuzzlePart;
@@ -34,6 +33,18 @@ namespace AibisDream
// TODO: 设备状态后面实现
}
public void ClearShapeInScreen()
{
blockPuzzleScreen.SetImage("设备缩略图", null);
blockPuzzleScreen.SetText("设备名称", "待选择");
blockPuzzleScreen.SetText("设备描述", null);
blockPuzzleScreen.SetText("PWR", "0");
blockPuzzleScreen.SetText("NOISE", "0");
blockPuzzleScreen.SetText("HEAT", "0");
}
// ---------------------- 对话功能 ----------------------
public void RunLine(LineSyncToken syncToken)
@@ -50,15 +61,11 @@ namespace AibisDream
private void OnEnable()
{
DialogUIManager.Instance.RegisterScreenView(DialogViewType.Log, this);
blockPuzzlePart.LockButton.onClick.AddListener(() => OnSubmit?.Invoke());
}
private void OnDisable()
{
DialogUIManager.Instance.UnRegisterScreenView(DialogViewType.Log);
blockPuzzlePart.LockButton.onClick.RemoveAllListeners();
}
}
}