Skip to content

API reference Obsidian.API.Client.Screens

Label class

A line of text in vanilla's font. It's as big as its text unless Label.Centered.

public sealed class Label : Widget

In Obsidian.API.Client.

Constructors

public Label();

Properties

Centered

public bool Centered { get; set; }

Whether the text is centred in the label's Widget.Width.

Color

public uint Color { get; set; }

The text's colour, as 0xAARRGGBB; vanilla's container labels' dark grey by default.

Shadow

public bool Shadow { get; set; }

Whether the text has vanilla's drop shadow, which container labels don't.

Text

public string Text { get; set; }

The text, drawn as it is.

On this page