TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IWidgetGuiConsumer in Tinman.Engine.Widgets

Base interface for classes that consume WidgetGui values.

interface IWidgetGuiConsumer base of IWidget

Methods

WidgetGuiAttach

Attaches this object to the given WidgetGui instance.

method WidgetGuiAttach (IWidgetGui widgetGui)
params widgetGui [not-null] The WidgetGui instance.

Remarks:

As best practice, implementing classes should create their user interface components in this method and call PanelAdd accordingly.

The calls to WidgetGuiAttach resp. WidgetGuiDetach may be omitted, for example when running without a widget GUI overlay. Implementing classes must take this into account and should not rely on the premise that this method is always called.

WidgetGuiDetach

Detaches this object from its WidgetGui instance.

method WidgetGuiDetach ()

Remarks:

Implementing classes must remove all panels via PanelRemove that they have added to the widget GUI.