53 lines
866 B
C#
53 lines
866 B
C#
|
|
using System;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
using QFramework;
|
||
|
|
|
||
|
|
namespace QFramework.Example
|
||
|
|
{
|
||
|
|
// Generate Id:5064973f-9da1-4668-adaa-a61da9a5dde9
|
||
|
|
public partial class UITipWindow
|
||
|
|
{
|
||
|
|
public const string Name = "UITipWindow";
|
||
|
|
|
||
|
|
[SerializeField]
|
||
|
|
public TMPro.TextMeshProUGUI Label;
|
||
|
|
[SerializeField]
|
||
|
|
public RectTransform BtnContent;
|
||
|
|
[SerializeField]
|
||
|
|
public UnityEngine.UI.Button BtnPrefab;
|
||
|
|
|
||
|
|
private UITipWindowData mPrivateData = null;
|
||
|
|
|
||
|
|
protected override void ClearUIComponents()
|
||
|
|
{
|
||
|
|
Label = null;
|
||
|
|
BtnContent = null;
|
||
|
|
BtnPrefab = null;
|
||
|
|
|
||
|
|
mData = null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public UITipWindowData Data
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return mData;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
UITipWindowData mData
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return mPrivateData ?? (mPrivateData = new UITipWindowData());
|
||
|
|
}
|
||
|
|
set
|
||
|
|
{
|
||
|
|
mUIData = value;
|
||
|
|
mPrivateData = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|