Class ScrollSelectionBox<TContainer, TElement, TValue>
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
A scrollable list of arbitrary selectable UI elements. Generic SelectionBox using ScrollBox
public class ScrollSelectionBox<TContainer, TElement, TValue> : SelectionBox<ScrollBox<TContainer, TElement>, TContainer, TElement, TValue>, IReadOnlyHudElement, IReadOnlyHudNode, IReadOnlyHudParent, IEntryBox<TContainer, TElement>, IEnumerable<TContainer>, IEnumerable, IValueControl<TContainer>, IValueControl, IClickableElement, IFocusableElement where TContainer : class, IListBoxEntry<TElement, TValue>, new() where TElement : HudElementBase, IMinLabelElement
Type Parameters
TContainerContainer element type wrapping the UI element
TElementUI element in the list
TValueData type stored associated with each entry
- Inheritance
-
SelectionBoxBase<ScrollBox<TContainer, TElement>, TContainer, TElement>SelectionBox<ScrollBox<TContainer, TElement>, TContainer, TElement, TValue>ScrollSelectionBox<TContainer, TElement, TValue>
- Implements
-
IEntryBox<TContainer, TElement>IEnumerable<TContainer>IValueControl<TContainer>
- Derived
- Inherited Members
Constructors
ScrollSelectionBox()
public ScrollSelectionBox()
ScrollSelectionBox(HudParentBase)
public ScrollSelectionBox(HudParentBase parent)
Parameters
parentHudParentBase
Properties
Color
Background color
public Color Color { get; set; }
Property Value
EnableScrolling
If enabled scrolling using the scrollbar and mousewheel will be allowed
public virtual bool EnableScrolling { get; set; }
Property Value
MinLength
Minimum total length (on the align axis) of visible members allowed in the scrollbox.
public virtual float MinLength { get; set; }
Property Value
MinVisibleCount
Minimum number of visible elements allowed. Supercedes maximum length. If the number of elements that can fit within the maximum length is less than this value, then this element will expand beyond its maximum size.
public virtual int MinVisibleCount { get; set; }
Property Value
UseSmoothScrolling
Enable/disable smooth scrolling and range clipping
public virtual bool UseSmoothScrolling { get; set; }