ListSetupData.cs
1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System.Collections.Generic;
using AirFishLab.ScrollingList.ContentManagement;
using UnityEngine;
namespace AirFishLab.ScrollingList
{
/// <summary>
/// The data for setting up the list
/// </summary>
public class ListSetupData
{
#region Public Members
/// <summary>
/// The scrolling list
/// </summary>
public readonly CircularScrollingList ScrollingList;
/// <summary>
/// The setting of the list
/// </summary>
public readonly ListSetting ListSetting;
/// <summary>
/// The root rect transform of the list
/// </summary>
public readonly RectTransform RectTransform;
/// <summary>
/// The camera that the root canvas is referenced
/// </summary>
/// If the canvas is in "Screen Space - Overlay" mode, it will be null.
public readonly Camera CanvasRefCamera;
/// <summary>
/// The boxes in the list
/// </summary>
public readonly List<IListBox> ListBoxes;
/// <summary>
/// The components for providing the list contents
/// </summary>
public readonly ListContentProvider ListContentProvider;
#endregion
public ListSetupData(
CircularScrollingList scrollingList,
ListSetting listSetting, RectTransform rectTransform,
Camera canvasRefCamera, List<IListBox> listBoxes,
ListContentProvider listContentProvider)
{
ScrollingList = scrollingList;
ListSetting = listSetting;
RectTransform = rectTransform;
CanvasRefCamera = canvasRefCamera;
ListBoxes = listBoxes;
ListContentProvider = listContentProvider;
}
}
}