ValueIncrementer

Description

sealed class Tinman.AddOns.Editors.ValueIncrementer
<TComponent : Component>

Full source code is included in the Tinman 3D SDK download.

A simple GUI component that offers three buttons ('+', '0' and '-') for modifying a GUI value that is stored in another component (i.e. increment, reset to zero, decrement).

Public / Constructors

ValueIncrementer


public constructor ValueIncrementer → (1)

target opt : TComponent = null

Initial value for Target.

Creates a new instance of ValueIncrementer.

Public / Methods

Minus


public method Minus → ()

Triggers the same action as clicking once on the [-] button.

Plus


public method Plus → ()

Triggers the same action as clicking once on the [+] button.

Zero


public method Zero → ()

Triggers the same action as clicking once on the [0] button.

Public / Attributes

Settings


public attribute Settings → (get,set)

value : ValueIncrement

The increment settings.

The value increment settings.

Defaults to ValueIncrement.Zero.

Target


public attribute Target → (get,set)

value : TComponent

The target component or null.

The target component that holds the GUI value to modify.

Updater


public attribute Updater → (get,set)

value : ValueIncrementDelegate<TComponent>

The value updater method.

The GUI value updater method.