59 lines
992 B
C#
59 lines
992 B
C#
|
|
using System;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
using QFramework;
|
||
|
|
|
||
|
|
namespace QFramework.Example
|
||
|
|
{
|
||
|
|
// Generate Id:6e2f1a9c-a7cd-4642-a6e7-1149d5e8be5b
|
||
|
|
public partial class UIInput
|
||
|
|
{
|
||
|
|
public const string Name = "UIInput";
|
||
|
|
|
||
|
|
[SerializeField]
|
||
|
|
public TMPro.TextMeshProUGUI Title;
|
||
|
|
[SerializeField]
|
||
|
|
public RectTransform InputContent;
|
||
|
|
[SerializeField]
|
||
|
|
public RectTransform BtnContent;
|
||
|
|
[SerializeField]
|
||
|
|
public RectTransform InputItem;
|
||
|
|
[SerializeField]
|
||
|
|
public UnityEngine.UI.Button BtnItem;
|
||
|
|
|
||
|
|
private UIInputData mPrivateData = null;
|
||
|
|
|
||
|
|
protected override void ClearUIComponents()
|
||
|
|
{
|
||
|
|
Title = null;
|
||
|
|
InputContent = null;
|
||
|
|
BtnContent = null;
|
||
|
|
InputItem = null;
|
||
|
|
BtnItem = null;
|
||
|
|
|
||
|
|
mData = null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public UIInputData Data
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return mData;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
UIInputData mData
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return mPrivateData ?? (mPrivateData = new UIInputData());
|
||
|
|
}
|
||
|
|
set
|
||
|
|
{
|
||
|
|
mUIData = value;
|
||
|
|
mPrivateData = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|