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
DuplicateButtonName
The name for the Duplicate button.
public const string DuplicateButtonName = "Duplicate"
Field Value
OpenContainerButtonName
The name for the Open Container button.
public const string OpenContainerButtonName = "OpenContainer"
Field Value
WorkerNameButtonName
The name for the Worker Name button.
public const string WorkerNameButtonName = "WorkerName"
Field Value
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
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
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
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
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
nullif 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
nullif 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
HasDuplicateButton
Gets whether the inspector header that's currently being build already has a Duplicate button.
public bool HasDuplicateButton { get; }
Property Value
HasOpenContainerButton
Gets whether the inspector header that's currently being build already has an Open Container button.
public bool HasOpenContainerButton { get; }
Property Value
HasWorkerNameButton
Gets whether the inspector header that's currently being build already has a Worker Name button.
public bool HasWorkerNameButton { get; }
Property Value
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
nullif 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
nullif there is none yet.
Methods
GetButton(string)
Gets the button with the given name.
public IButton? GetButton(string name)
Parameters
namestringThe name of the button to get.
Returns
- IButton
The button with the given
nameif it exists; otherwise,null.
Exceptions
- ArgumentNullException
When the
nameis invalid.
HasButton(string)
Determines if there is a button with the given name.
public bool HasButton(string name)
Parameters
namestringThe name of the button to check for.
Returns
- bool
trueif there is a button with the givenname; otherwise,false.
IsValidButtonName(string)
Determines whether the given name is valid for buttons.
public static bool IsValidButtonName(string name)
Parameters
namestringThe name to validate.
Returns
- bool
trueif thenameis 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
namestringThe name to set the
buttonfor.buttonIButtonThe button to set for the
name.
Exceptions
- ArgumentNullException
When the
nameis invalid, or thebuttonisnull.
TryGetButton(string, out IButton?)
Tries to get the button with the given name.
public bool TryGetButton(string name, out IButton? button)
Parameters
namestringThe name of the button to get.
buttonIButtonThe button with the given
nameif it exists; otherwise,null.
Returns
- bool
trueif there is a button with the givenname; otherwise,false.