Api Editor Button
class

Button

public class Button : Widget

A simple button widget.

Constructors

Button(Widget parent)
Button(String title, Widget parent)
Button(String title, String icon, Widget parent)

Properties

Name Type Description
Text String Text on the button.
Tint Color The tint of the button color
IsChecked Boolean Whether this button is checked. See IsToggle.
IsToggle Boolean Whether this button can be toggled on or off. See IsChecked.
Icon String Sets an icon for the button via a filepath.

Methods

Void SetIcon(Pixmap pixmap)

Sets an icon for the button via a raw image.

Pixmap GetIcon()

Fields

Name Type Description
Clicked Action
Pressed Action
Released Action
Toggled Action
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.Button