Class DoubleLabelBox
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
A text box with a text field on the left and another on the right.
public class DoubleLabelBox : LabelBoxBase, IReadOnlyHudElement, IReadOnlyHudNode, IReadOnlyHudParent
- Inheritance
-
DoubleLabelBox
- Implements
- Inherited Members
Constructors
DoubleLabelBox(HudParentBase)
public DoubleLabelBox(HudParentBase parent = null)
Parameters
parentHudParentBase
Properties
AutoResize
If true, the element's size is driven by the size of the text content. If false, the element's size is set manually, and text may be clipped if the bounds are too small.
public override bool AutoResize { get; set; }
Property Value
BuilderMode
Gets or sets the text composition mode, which controls how text is arranged (e.g., single line, wrapped, etc.).
public TextBuilderModes BuilderMode { get; set; }
Property Value
LeftText
Text rendered by the left label.
public RichText LeftText { get; set; }
Property Value
LeftTextBuilder
Text builder for the left text element
public ITextBuilder LeftTextBuilder { get; }
Property Value
RightText
Text rendered by the right label.
public RichText RightText { get; set; }
Property Value
RightTextBuilder
Text builder for the right text element
public ITextBuilder RightTextBuilder { get; }
Property Value
TextPadding
Gets or sets the padding applied to the text, offsetting it from the edges of the background.
public override Vector2 TextPadding { get; set; }
Property Value
TextSize
Size of the text element sans padding.
public override Vector2 TextSize { get; set; }