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

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.String.new()

The default constructor.

Murl.ChangeController.String new()

Returns
Murl.ChangeController.String

Murl.ChangeController.String.new(value)

Constructor taking a default value.

Murl.ChangeController.String new(String value)

Parameters
valueThe default value.
Returns
Murl.ChangeController.String


Methods


SetValue(value)

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

Boolean SetValue(String value)

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

GetValue()

Get the current value.

String GetValue()

Returns
String 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()