File ../../LibScriptableUtils-1.0/LibScriptableUtilsProperty-1.0/LibScriptableUtilsProperty-1.0.lua

Functions

LibProperty:Del () Delete a property
LibProperty:Eval (unit) Evaluate a property's code
LibProperty:New (widget, visitor, name, expression, defval, errorLevel) Create a new LibScriptableProperty object
LibProperty:P2N () Return the property's value as a number
LibProperty:P2S () Return the property's value as a string


Functions

LibProperty:Del ()
Delete a property

Usage:

LibProperty:Del()

Return value:

Nothing
LibProperty:Eval (unit)
Evaluate a property's code

Parameters

  • unit:

Usage:

object:Eval()

Return value:

Nothing
LibProperty:New (widget, visitor, name, expression, defval, errorLevel)
Create a new LibScriptableProperty object

Parameters

  • widget: The parent widget
  • visitor: A LibCore object, or provide your own.
  • name: Give your property a name.
  • expression: The lua script for this property.
  • defval: The default value for this property.
  • errorLevel:

Usage:

LibProperty:New(widget, visitor, name, expression, defval, errorLevel)

Return value:

A new LibScriptableProperty object
LibProperty:P2N ()
Return the property's value as a number

Usage:

object:P2N()

Return value:

The property as a number value
LibProperty:P2S ()
Return the property's value as a string

Usage:

object:P2S()

Return value:

The property as a string value

Valid XHTML 1.0!