Skip to content

Interlude.Tick.Extra.DebugUI.TreeView

interludesoftware.tick

Interlude.Tick.Extra.DebugUI

TreeView Class

public static class TreeView

Inheritance System.Object → TreeView

Methods

TreeView.Begin(UI, string) Method

Opens a tree context. Must be paired with End(UI).

public static void Begin(Interlude.Tick.UI ui, string id);

Parameters

ui UI

id System.String

TreeView.BeginNode(UI, string, string, bool, bool) Method

Draws a tree node row. Returns true when the node is expanded and children should be drawn. Always call EndNode(UI) regardless of the return value.

public static bool BeginNode(Interlude.Tick.UI ui, string id, string label, bool hasChildren, out bool selected);

Parameters

ui UI

The UI instance to draw into.

id System.String

Stable identifier for this node's expansion and selection state.

label System.String

Text shown on the node row.

hasChildren System.Boolean

True if the node can be expanded to reveal children.

selected System.Boolean

True if this node is currently selected.

Returns

System.Boolean

TreeView.End(UI) Method

Closes a tree context opened by Begin(UI, string).

public static void End(Interlude.Tick.UI ui);

Parameters

ui UI

TreeView.EndNode(UI) Method

Closes a node opened by BeginNode(UI, string, string, bool, bool).

public static void EndNode(Interlude.Tick.UI ui);

Parameters

ui UI