62 lines
1.1 KiB
C#
62 lines
1.1 KiB
C#
|
|
using System;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
using QFramework;
|
||
|
|
|
||
|
|
namespace QFramework.Example
|
||
|
|
{
|
||
|
|
// Generate Id:a6a34357-f7c3-4766-afff-04969bf85d24
|
||
|
|
public partial class UITextWindow
|
||
|
|
{
|
||
|
|
public const string Name = "UITextWindow";
|
||
|
|
|
||
|
|
[SerializeField]
|
||
|
|
public UnityEngine.UI.Image Content;
|
||
|
|
[SerializeField]
|
||
|
|
public TMPro.TextMeshProUGUI Title;
|
||
|
|
[SerializeField]
|
||
|
|
public UnityEngine.UI.ScrollRect Scroll;
|
||
|
|
[SerializeField]
|
||
|
|
public TMPro.TextMeshProUGUI Des;
|
||
|
|
[SerializeField]
|
||
|
|
public RectTransform BtnContent;
|
||
|
|
[SerializeField]
|
||
|
|
public UnityEngine.UI.Button Btn;
|
||
|
|
|
||
|
|
private UITextWindowData mPrivateData = null;
|
||
|
|
|
||
|
|
protected override void ClearUIComponents()
|
||
|
|
{
|
||
|
|
Content = null;
|
||
|
|
Title = null;
|
||
|
|
Scroll = null;
|
||
|
|
Des = null;
|
||
|
|
BtnContent = null;
|
||
|
|
Btn = null;
|
||
|
|
|
||
|
|
mData = null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public UITextWindowData Data
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return mData;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
UITextWindowData mData
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return mPrivateData ?? (mPrivateData = new UITextWindowData());
|
||
|
|
}
|
||
|
|
set
|
||
|
|
{
|
||
|
|
mUIData = value;
|
||
|
|
mPrivateData = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|