53 lines
844 B
C#
53 lines
844 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using QFramework;
|
|
|
|
namespace QFramework.Example
|
|
{
|
|
// Generate Id:5f777d12-69d4-455d-bef6-fb39dbeda60e
|
|
public partial class UITools
|
|
{
|
|
public const string Name = "UITools";
|
|
|
|
[SerializeField]
|
|
public UnityEngine.UI.ScrollRect Scroll;
|
|
[SerializeField]
|
|
public RectTransform Content;
|
|
[SerializeField]
|
|
public UnityEngine.UI.Button ItemPrefab;
|
|
|
|
private UIToolsData mPrivateData = null;
|
|
|
|
protected override void ClearUIComponents()
|
|
{
|
|
Scroll = null;
|
|
Content = null;
|
|
ItemPrefab = null;
|
|
|
|
mData = null;
|
|
}
|
|
|
|
public UIToolsData Data
|
|
{
|
|
get
|
|
{
|
|
return mData;
|
|
}
|
|
}
|
|
|
|
UIToolsData mData
|
|
{
|
|
get
|
|
{
|
|
return mPrivateData ?? (mPrivateData = new UIToolsData());
|
|
}
|
|
set
|
|
{
|
|
mUIData = value;
|
|
mPrivateData = value;
|
|
}
|
|
}
|
|
}
|
|
}
|