Skip to content

API reference Obsidian.API.Client.Screens

Button class

Vanilla's button: its text on the button sprite, highlighted under the mouse and greyed out while inactive. 200 by 20 pixels unless sized otherwise.

public sealed class Button : Widget

In Obsidian.API.Client.

Constructors

public Button();

Properties

Active

public bool Active { get; set; }

Whether the player can press the button.

Text

public string Text { get; set; }

The button's text.

Events

Pressed

public event Action Pressed;

Raised when the player presses the button, with a click or with Enter or Space while it has the focus.

On this page