2024-12-14 18:27:59 +08:00
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using QFramework;
|
|
|
|
|
|
|
|
|
|
namespace QFramework.Example
|
|
|
|
|
{
|
2025-01-09 17:08:20 +08:00
|
|
|
// Generate Id:031f03df-56cd-4f22-b0e4-b4cc8ddb2f1a
|
2024-12-14 18:27:59 +08:00
|
|
|
public partial class UIInstruction
|
|
|
|
|
{
|
|
|
|
|
public const string Name = "UIInstruction";
|
|
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public UnityEngine.UI.Toggle Training;
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public UnityEngine.UI.Toggle Operation;
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public RectTransform TrainContent;
|
|
|
|
|
[SerializeField]
|
2025-01-09 17:08:20 +08:00
|
|
|
public TMPro.TextMeshProUGUI ContentText;
|
|
|
|
|
[SerializeField]
|
2024-12-14 18:27:59 +08:00
|
|
|
public UnityEngine.UI.Image OperationContent;
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public UnityEngine.UI.Button ConfirmBtn;
|
|
|
|
|
|
|
|
|
|
private UIInstructionData mPrivateData = null;
|
|
|
|
|
|
|
|
|
|
protected override void ClearUIComponents()
|
|
|
|
|
{
|
|
|
|
|
Training = null;
|
|
|
|
|
Operation = null;
|
|
|
|
|
TrainContent = null;
|
2025-01-09 17:08:20 +08:00
|
|
|
ContentText = null;
|
2024-12-14 18:27:59 +08:00
|
|
|
OperationContent = null;
|
|
|
|
|
ConfirmBtn = null;
|
|
|
|
|
|
|
|
|
|
mData = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UIInstructionData Data
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return mData;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UIInstructionData mData
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return mPrivateData ?? (mPrivateData = new UIInstructionData());
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
mUIData = value;
|
|
|
|
|
mPrivateData = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|