Table of Contents

Class InspectorHelper

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

Contains helper methods to generate common elements of FrooxEngine.WorkerInspectors.

public static class InspectorHelper
Inheritance
InspectorHelper
Inherited Members

Methods

BuildHeaderOpenParentButtons<TReference>(UIBuilder, TReference)

Constructs a reference editor field's open target's parent FrooxEngine.Slot and open target('s parent) FrooxEngine.Worker buttons in the context of the inspector header.

public static ReferenceField<TReference> BuildHeaderOpenParentButtons<TReference>(UIBuilder ui, TReference reference) where TReference : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the buttons.

reference TReference

The reference who's parents to open.

Returns

ReferenceField<TReference>

The modifiable FrooxEngine.ReferenceField<T> constructed to hold the reference.

Type Parameters

TReference

The reference target type.

BuildOneWayReference<TReference>(UIBuilder, string, ISyncRef<TReference>)

Constructs a reference editor field that shows the given FrooxEngine.ISyncRef<T>'s target.

public static void BuildOneWayReference<TReference>(UIBuilder ui, string name, ISyncRef<TReference> syncRef) where TReference : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the editor field.

name string

The name to label the field with.

syncRef ISyncRef<TReference>

The reference who's target to display.

Type Parameters

TReference

The reference target's type.

BuildOneWayReference<TReference>(UIBuilder, string, TReference)

Constructs a reference editor field that shows the given reference.

public static ReferenceField<TReference> BuildOneWayReference<TReference>(UIBuilder ui, string name, TReference reference) where TReference : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the editor field.

name string

The name to label the field with.

reference TReference

The reference to display.

Returns

ReferenceField<TReference>

The modifiable FrooxEngine.ReferenceField<T> constructed to hold the reference.

Type Parameters

TReference

The reference target type.

BuildOneWayValue<TValue>(UIBuilder, string, IField<TValue>)

Constructs a value editor field that shows the given FrooxEngine.ISyncRef<T>'s target.

public static void BuildOneWayValue<TValue>(UIBuilder ui, string name, IField<TValue> field) where TValue : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the editor field.

name string

The name to label the field with.

field IField<TValue>

The field who's value to display.

Type Parameters

TValue

The value target.

BuildOneWayValue<TValue>(UIBuilder, string, TValue)

Constructs a value editor field that shows the given value.

public static ValueField<TValue> BuildOneWayValue<TValue>(UIBuilder ui, string name, TValue value) where TValue : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the editor field.

name string

The name to label the field with.

value TValue

The value to display.

Returns

ValueField<TValue>

The modifiable FrooxEngine.ValueField<T> constructed to hold the value.

Type Parameters

TValue

The value type.

BuildTwoWayReference<TReference>(UIBuilder, string, ISyncRef<TReference>)

Constructs a reference editor field that is linked with the given FrooxEngine.ISyncRef<T>.

public static void BuildTwoWayReference<TReference>(UIBuilder ui, string name, ISyncRef<TReference> syncRef) where TReference : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the editor field.

name string

The name to label the field with.

syncRef ISyncRef<TReference>

The reference to link with.

Type Parameters

TReference

The reference target's type.

BuildTwoWayValue<TValue>(UIBuilder, string, ISyncRef<TValue>)

Constructs a value editor field that is linked with the given FrooxEngine.ISyncRef<T>.

public static void BuildTwoWayValue<TValue>(UIBuilder ui, string name, ISyncRef<TValue> field) where TValue : class, IWorldElement

Parameters

ui UIBuilder

The FrooxEngine.UIX.UIBuilder used to construct the editor field.

name string

The name to label the field with.

field ISyncRef<TValue>

The field to link with.

Type Parameters

TValue

The value target.