2024-12-14 18:27:59 +08:00
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using QFramework;
|
|
|
|
|
|
|
|
|
|
namespace QFramework.Example
|
|
|
|
|
{
|
2025-05-26 11:32:54 +08:00
|
|
|
// Generate Id:d5266ca7-b00f-4538-9dbd-ab80bcacd960
|
2024-12-14 18:27:59 +08:00
|
|
|
public partial class UITextQuestion
|
|
|
|
|
{
|
|
|
|
|
public const string Name = "UITextQuestion";
|
|
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public TMPro.TextMeshProUGUI Title;
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public UnityEngine.UI.ToggleGroup OptionContent;
|
|
|
|
|
[SerializeField]
|
2025-05-26 11:32:54 +08:00
|
|
|
public TMPro.TextMeshProUGUI Des;
|
|
|
|
|
[SerializeField]
|
2024-12-14 18:27:59 +08:00
|
|
|
public RectTransform BtnContent;
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public UnityEngine.UI.Button BtnPrefab;
|
|
|
|
|
[SerializeField]
|
|
|
|
|
public UnityEngine.UI.Toggle OptionPrefab;
|
|
|
|
|
|
|
|
|
|
private UITextQuestionData mPrivateData = null;
|
|
|
|
|
|
|
|
|
|
protected override void ClearUIComponents()
|
|
|
|
|
{
|
|
|
|
|
Title = null;
|
|
|
|
|
OptionContent = null;
|
2025-05-26 11:32:54 +08:00
|
|
|
Des = null;
|
2024-12-14 18:27:59 +08:00
|
|
|
BtnContent = null;
|
|
|
|
|
BtnPrefab = null;
|
|
|
|
|
OptionPrefab = null;
|
|
|
|
|
|
|
|
|
|
mData = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public UITextQuestionData Data
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return mData;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UITextQuestionData mData
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return mPrivateData ?? (mPrivateData = new UITextQuestionData());
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
mUIData = value;
|
|
|
|
|
mPrivateData = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|