Table of Contents

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

parent HudParentBase

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

bool

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

TextBuilderModes

LeftText

Text rendered by the left label.

public RichText LeftText { get; set; }

Property Value

RichText

LeftTextBuilder

Text builder for the left text element

public ITextBuilder LeftTextBuilder { get; }

Property Value

ITextBuilder

RightText

Text rendered by the right label.

public RichText RightText { get; set; }

Property Value

RichText

RightTextBuilder

Text builder for the right text element

public ITextBuilder RightTextBuilder { get; }

Property Value

ITextBuilder

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

Vector2

TextSize

Size of the text element sans padding.

public override Vector2 TextSize { get; set; }

Property Value

Vector2