Murl Engine Lua Addon API  Version 1.0 beta
Murl.ChangeController.Bool

The change controller template class to control changes of an object's value.

The change controller counts a frame at each values's change and can check a frame change regarding to the ChangeInspector.


Table members

Functions


Murl.ChangeController.Bool.new()

The default constructor.

Murl.ChangeController.Bool new()

Returns
Murl.ChangeController.Bool

Murl.ChangeController.Bool.new(value)

Constructor taking a default value.

Murl.ChangeController.Bool new(Boolean value)

Parameters
valueThe default value.
Returns
Murl.ChangeController.Bool


Methods


SetValue(value)

Set a value and increment the current frame if the value has been changed.

Boolean SetValue(Boolean value)

Parameters
valueThe value to set.
Returns
Boolean true if the value has been changed.

GetValue()

Get the current value.

Boolean GetValue()

Returns
Boolean The current value.

WasChanged(inspector)

Check if the inspector's frame is different to the controller's frame.

Boolean, Murl.ChangeInspector WasChanged(Murl.ChangeInspector inspector)

Parameters
inspectorThe inspector to check.
Returns
Boolean true if the instpector's frame was dfifferent.
Murl.ChangeInspector inspector The inspector to check.

SetChanged()

Increment the current frame.

SetChanged()