Skip to content

Interlude.Tick.Extra.DebugUI.EnumField

interludesoftware.tick

Interlude.Tick.Extra.DebugUI

EnumField Class

public static class EnumField

Inheritance System.Object → EnumField

Methods

EnumField.Do\<TEnum>(UI, string, TEnum) Method

Draws a dropdown populated from all values of TEnum. Returns true when the value changed.

public static bool Do<TEnum>(Interlude.Tick.UI ui, string id, ref TEnum value)
    where TEnum : System.Enum;

Type parameters

TEnum

Parameters

ui UI

id System.String

value TEnum

Returns

System.Boolean

EnumField.DoLabelled\<TEnum>(UI, string, string, TEnum) Method

Draws a labelled dropdown populated from all values of TEnum. Returns true when the value changed.

public static bool DoLabelled<TEnum>(Interlude.Tick.UI ui, string id, string label, ref TEnum value)
    where TEnum : System.Enum;

Type parameters

TEnum

Parameters

ui UI

id System.String

label System.String

value TEnum

Returns

System.Boolean