/// <summary> /// Initializes a new instance of the <see cref="ListViewTypeEllipse"/> class. /// </summary> /// <param name="owner">Owner.</param> public ListViewTypeEllipse(ListViewCustom <TComponent, TItem> owner) : base(owner) { if (Owner.Layout == null) { Debug.LogWarning("TileViewStaggered requires Container.EasyLayout component.", Owner); return; } if (Owner.Layout.LayoutType != EasyLayoutNS.LayoutTypes.Ellipse) { // Owner.Layout.LayoutType = EasyLayoutNS.LayoutTypes.Ellipse; Debug.LogWarning("EasyLayout type should be set to Ellipse when used ListViewEllipse.", Owner); } if (Owner.Layout.EllipseSettings.Fill != EasyLayoutNS.EllipseFill.Arc) { // Owner.Layout.EllipseSettings.Fill = EasyLayoutNS.EllipseFill.Arc; Debug.LogWarning("EasyLayout.EllipseSettings.Fill should be set to Arc when used ListViewEllipse.", Owner); } if (Owner.Layout.EllipseSettings.AngleStepAuto) { // Owner.Layout.EllipseSettings.AngleStepAuto = false; Debug.LogWarning("EasyLayout.EllipseSettings.AngleStepAuto should be disabled when used ListViewEllipse.", Owner); } }
/// <summary> /// Initializes a new instance of the <see cref="TileViewStaggered"/> class. /// </summary> /// <param name="owner">Owner.</param> public TileViewStaggered(ListViewCustom <TComponent, TItem> owner) : base(owner) { if (Owner.Layout == null) { Debug.LogWarning("TileViewStaggered requires Container.EasyLayout component.", Owner); return; } Owner.Layout.LayoutType = LayoutTypes.Staggered; LayoutPaddingStart = Owner.Layout.StaggeredSettings.PaddingInnerStart; LayoutPaddingEnd = Owner.Layout.StaggeredSettings.PaddingInnerEnd; }
/// <summary> /// Initializes a new instance of the <see cref="TileViewTypeFixed"/> class. /// </summary> /// <param name="owner">Owner.</param> public TileViewTypeFixed(ListViewCustom <TComponent, TItem> owner) : base(owner) { }
/// <summary> /// Initializes a new instance of the <see cref="ListViewTypeSize"/> class. /// </summary> /// <param name="owner">Owner.</param> public ListViewTypeSize(ListViewCustom <TComponent, TItem> owner) : base(owner) { }
/// <summary> /// Initializes a new instance of the <see cref="ListViewTypeBase"/> class. /// </summary> /// <param name="owner">Owner.</param> protected ListViewTypeBase(ListViewCustom <TComponent, TItem> owner) { Owner = owner; }
/// <summary> /// Initializes a new instance of the <see cref="ListViewTypeRectangle"/> class. /// </summary> /// <param name="owner">Owner.</param> protected ListViewTypeRectangle(ListViewCustom <TComponent, TItem> owner) : base(owner) { }