Skip to content
Starlon edited this page Nov 30, 2011 · 1 revision

Functions

<tr>
<td class="name" nowrap><a href="#LibProperty:Del">LibProperty:Del</a>&nbsp;()</td>
<td class="summary">Delete a property </td>
</tr>

<tr>
<td class="name" nowrap><a href="#LibProperty:Eval">LibProperty:Eval</a>&nbsp;(unit)</td>
<td class="summary">Evaluate a property's code </td>
</tr>

<tr>
<td class="name" nowrap><a href="#LibProperty:New">LibProperty:New</a>&nbsp;(widget, visitor, name, expression, defval, errorLevel)</td>
<td class="summary">Create a new LibScriptableProperty object </td>
</tr>

<tr>
<td class="name" nowrap><a href="#LibProperty:P2N">LibProperty:P2N</a>&nbsp;()</td>
<td class="summary">Return the property's value as a number </td>
</tr>

<tr>
<td class="name" nowrap><a href="#LibProperty:P2S">LibProperty:P2S</a>&nbsp;()</td>
<td class="summary">Return the property's value as a string </td>
</tr>


Functions

LibProperty:Del ()
Delete a property

Usage:

LibProperty:Del()

Return value:

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

Parameters

<li>
  unit: 
</li>

Usage:

object:Eval()

Return value:

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

Parameters

<li>
  widget: The parent widget
</li>

<li>
  visitor: A LibCore object, or provide your own.
</li>

<li>
  name: Give your property a name.
</li>

<li>
  expression: The lua script for this property.
</li>

<li>
  defval: The default value for this property.
</li>

<li>
  errorLevel: 
</li>

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

Clone this wiki locally