Пример #1
0
            /// <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);
                }
            }
Пример #2
0
            /// <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;
            }
Пример #3
0
 /// <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)
 {
 }
Пример #4
0
 /// <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)
 {
 }
Пример #5
0
 /// <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;
 }
Пример #6
0
 /// <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)
 {
 }