Optionclass

objectQObjectOption
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.Option : Editor.QObject

Constructors3

Showing 3 constructors

Methods3

Showing 3 methods

protected virtual void OnToggled(bool b)PROTECTEDVIRTUAL

Called when this option was toggled.

ParameterTypeDescription
bbool
Returns:void

protected virtual void OnTriggered()PROTECTEDVIRTUAL

Called when this option was clicked..

Returns:void

public void SetIcon(Editor.Pixmap pixmap)PUBLIC

Sets an icon for the option via a raw image.

ParameterTypeDescription
pixmapPixmap
Returns:void

Properties13

Showing 13 properties

public bool Editor.Option.Checkable { get; set; }PUBLICGETSET

Whether this option is a toggle option. `Editor.Option.Checked`.

Returns:bool

public bool Editor.Option.Checked { get; set; }PUBLICGETSET

Whether this option is toggled/checked. `Editor.Option.Checkable`.

Returns:bool

public bool Editor.Option.Enabled { get; set; }PUBLICGETSET

Whether this option can be clicked. Will also be visually different.

Returns:bool

public string Editor.Option.Icon { get; set; }PUBLICGETSET

The icon for this option.

Returns:string

public Editor.Pixmap Editor.Option.IconImage { get; set; }PUBLICGETSET

The icon for this option.

Returns:Pixmap

public string Editor.Option.IconText { get; set; }PUBLICGETSET

Text to display if `Editor.Option.Text` is empty.

Returns:string

public string Editor.Option.Shortcut { get; set; }PUBLICGETSETOBSOLETE

Obsolete: Please use ShortcutName, which takes a shortcut ident (such as editor.save) instead of keys (such as CTRL+S).

Returns:string

public string Editor.Option.ShortcutName { get; set; }PUBLICGETSET

Returns:string

public string Editor.Option.StatusText { get; set; }PUBLICGETSETOBSOLETE

Obsolete: Use StatusTip

Returns:string

public string Editor.Option.StatusTip { get; set; }PUBLICGETSET

Returns:string

public string Editor.Option.Text { get; set; }PUBLICGETSET

Text for this option.

Returns:string

public string Editor.Option.Tooltip { get; set; }PUBLICGETSETOBSOLETE

Obsolete: Use ToolTip

Returns:string

public string Editor.Option.ToolTip { get; set; }PUBLICGETSET

Returns:string

On this page