YanCheng_Metrology/Assets/SandBox/JBQ/JBQ_Test.cs

81 lines
2.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class JBQ_Test : MonoBehaviour
{
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.P))
{
///1.遮罩转场面板显示
//UIManager.Instance.ShowPanel<UI_MaskPanel>(E_UI_Layer.System, (panel) =>
//{
// panel.Init();
//});
///2.任务书显示测试
UIManager.Instance.ShowPanel<UI_CheckTaskPanel>(E_UI_Layer.System, (panel) =>
{
panel.Init("工单内容您今天工作任务是对10kV实训1线9#杆敏慧1#配变411东线进行计划巡视。请及时组织人员、备齐工器具到现场巡视。查找出的故障缺陷进行相关处理。 备注:巡视工作工作票默认已开好并许可、工作过程中需接地线已装设。");
});
///3.接受任务书面板
//UIManager.Instance.ShowPanel<UI_ReceiveTaskPanel>(E_UI_Layer.System, (panel) =>
//{
// panel.Init();
//});
///4.工作票选择面板
//UIManager.Instance.ShowPanel<UI_SelectWorkTicketPanel>(E_UI_Layer.System, (panel) =>
//{
// ProcessManager.Instance.mode = E_ModeType.Study;
// panel.Init();
//});
///5.顶部提示面板
//UIManager.Instance.ShowPanel<UI_TopTipPanel>(E_UI_Layer.System, (panel) =>
//{
// panel.Init("任务接受:<color=#00EEE6>查看任务单</color>", "请先打看掌机,查看您接受到的任务工单");
//});
///6.message面板测试
//UIManager.Instance.ShowPanel<UI_MessagePanel>(E_UI_Layer.System, (panel) =>
//{
// panel.Init("警告", "完成任务", E_MessageType.Warning, () =>
// {
// print("确认");
// }, () =>
// {
// print("取消");
// });
//});
///7.UI_MiddleTipPanel面板测试
//UIManager.Instance.ShowPanel<UI_MiddleTipPanel>(E_UI_Layer.System, (panel) =>
//{
// panel.Init("任务接受查看任务单");
//});
///8.电能计量装置装拆工单
//UIManager.Instance.ShowPanel<UI_InstallAndDismantleTicketPanel>(E_UI_Layer.System, (panel) =>
//{
// panel.Init();
//});
}
if (Input.GetKeyDown(KeyCode.L))
{
///遮罩转场面板渐隐命令
EventCenter.Instance.EventTrigger(Enum_EventType.HideMask);
}
}
}