Table of Contents

Class BuildInspectorHeaderEvent

Namespace
MonkeyLoader.Resonite.UI.Inspectors
Assembly
MonkeyLoader.Resonite.Integration.dll

Represents the events fired during construction of a FrooxEngine.WorkerInspector's header.

public sealed class BuildInspectorHeaderEvent : BuildInspectorEvent
Inheritance
BuildInspectorHeaderEvent
Inherited Members

Fields

DestroyButtonName

The name for the Destroy button.

public const string DestroyButtonName = "Destroy"

Field Value

string

DuplicateButtonName

The name for the Duplicate button.

public const string DuplicateButtonName = "Duplicate"

Field Value

string

OpenContainerButtonName

The name for the Open Container button.

public const string OpenContainerButtonName = "OpenContainer"

Field Value

string

WorkerNameButtonName

The name for the Worker Name button.

public const string WorkerNameButtonName = "WorkerName"

Field Value

string

Properties

CreateDestroyButton

Gets whether the inspector header that's currently being build still needs to have a Destroy button created.

public bool CreateDestroyButton { get; }

Property Value

bool

CreateDuplicateButton

Gets whether the inspector header that's currently being build still needs to have a Duplicate button created.

public bool CreateDuplicateButton { get; }

Property Value

bool

CreateOpenContainerButton

Gets whether the inspector header that's currently being build still needs to and can have an Open Container button created.

public bool CreateOpenContainerButton { get; }

Property Value

bool

CreateWorkerNameButton

Gets whether the inspector header that's currently being build still needs to have a Worker Name button created.

public bool CreateWorkerNameButton { get; }

Property Value

bool

DestroyButton

Gets the Destroy button of the inspector header that's currently being build.

public IButton DestroyButton { get; set; }

Property Value

IButton

The button or null if there is none yet.

DuplicateButton

Gets the Duplicate button of the inspector header that's currently being build.

public IButton DuplicateButton { get; set; }

Property Value

IButton

The button or null if there is none yet.

HasDestroyButton

Gets whether the inspector header that's currently being build already has a Destroy button.

public bool HasDestroyButton { get; }

Property Value

bool

HasDuplicateButton

Gets whether the inspector header that's currently being build already has a Duplicate button.

public bool HasDuplicateButton { get; }

Property Value

bool

HasOpenContainerButton

Gets whether the inspector header that's currently being build already has an Open Container button.

public bool HasOpenContainerButton { get; }

Property Value

bool

HasWorkerNameButton

Gets whether the inspector header that's currently being build already has a Worker Name button.

public bool HasWorkerNameButton { get; }

Property Value

bool

OpenContainerButton

Gets the Open Container button of the inspector header that's currently being build.

public IButton OpenContainerButton { get; set; }

Property Value

IButton

The button or null if there is none yet.

WorkerNameButton

Gets the Worker Name button of the inspector header that's currently being build.

public IButton WorkerNameButton { get; set; }

Property Value

IButton

The button or null if there is none yet.

Methods

GetButton(string)

Gets the button with the given name.

public IButton? GetButton(string name)

Parameters

name string

The name of the button to get.

Returns

IButton

The button with the given name if it exists; otherwise, null.

Exceptions

ArgumentNullException

When the name is invalid.

HasButton(string)

Determines if there is a button with the given name.

public bool HasButton(string name)

Parameters

name string

The name of the button to check for.

Returns

bool

true if there is a button with the given name; otherwise, false.

IsValidButtonName(string)

Determines whether the given name is valid for buttons.

public static bool IsValidButtonName(string name)

Parameters

name string

The name to validate.

Returns

bool

true if the name is valid; otherwise, false.

Remarks

Names must not be null or whitespace.

SetButton(string, IButton)

Sets a button for the given name.

public void SetButton(string name, IButton button)

Parameters

name string

The name to set the button for.

button IButton

The button to set for the name.

Exceptions

ArgumentNullException

When the name is invalid, or the button is null.

TryGetButton(string, out IButton?)

Tries to get the button with the given name.

public bool TryGetButton(string name, out IButton? button)

Parameters

name string

The name of the button to get.

button IButton

The button with the given name if it exists; otherwise, null.

Returns

bool

true if there is a button with the given name; otherwise, false.