mirror of
https://github.com/peng-zhihui/ElectronBot.git
synced 2026-10-21 22:56:26 +08:00
30 lines
710 B
C#
30 lines
710 B
C#
namespace UIWidgets
|
|
{
|
|
/// <summary>
|
|
/// Base class for TileView's.
|
|
/// </summary>
|
|
/// <typeparam name="TComponent">Component class.</typeparam>
|
|
/// <typeparam name="TItem">Item class.</typeparam>
|
|
public class TileViewCustom<TComponent, TItem> : ListViewCustom<TComponent, TItem>
|
|
where TComponent : ListViewItem
|
|
{
|
|
[UnityEngine.SerializeField]
|
|
[UnityEngine.HideInInspector]
|
|
int tileViewFixedSizeVersion = 0;
|
|
|
|
/// <summary>
|
|
/// Upgrade serialized data to the latest version.
|
|
/// </summary>
|
|
public override void Upgrade()
|
|
{
|
|
base.Upgrade();
|
|
|
|
if (tileViewFixedSizeVersion == 0)
|
|
{
|
|
listType = ListViewType.TileViewWithFixedSize;
|
|
|
|
tileViewFixedSizeVersion = 1;
|
|
}
|
|
}
|
|
}
|
|
} |