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

Functions

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

<tr>
<td class="name" nowrap><a href="#WidgetColor:GetOptions">WidgetColor:GetOptions</a>&nbsp;(db, callback, data)</td>
<td class="summary">Get an Ace3 option table.</td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetColor:New">WidgetColor:New</a>&nbsp;(visitor, name, config, errorLevel, callback, timer)</td>
<td class="summary">Create a new LibScriptableWidgetColor object </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetColor:Start">WidgetColor:Start</a>&nbsp;()</td>
<td class="summary">Start a LibScriptableWidgetColor </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetColor:Stop">WidgetColor:Stop</a>&nbsp;()</td>
<td class="summary">Stop a LibScriptableWidgetColor </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetColor:Update">WidgetColor:Update</a>&nbsp;()</td>
<td class="summary">Update this widget </td>
</tr>


Functions

WidgetColor:Del ()
Delete a LibScriptableWidgetColor object

Usage:

object:Del()

Return value:

Nothing
WidgetColor:GetOptions (db, callback, data)
Get an Ace3 option table. Plug this into a group type's args.

Parameters

<li>
  db: The database table
</li>

<li>
  callback: Provide this if you want to execute the callback once an option is changed
</li>

<li>
  data: Some data to pass when executing the callback
</li>

Return value:

An Ace3 options table -- `name.args = options`.
WidgetColor:New (visitor, name, config, errorLevel, callback, timer)
Create a new LibScriptableWidgetColor object

Parameters

<li>
  visitor: An LibScriptableCore-1.0 object, or provide your own
</li>

<li>
  name: A name for the timer widget
</li>

<li>
  config: This timeer's parameters
</li>

<li>
  errorLevel: The errorLevel for this object
</li>

<li>
  callback: An optional callback function to be executed when the gesture is performed.
</li>

<li>
  timer: An optional timer. This should have a :Start() and :Stop().
</li>

Usage:

WidgetColor:New(visitor, name, config, errorLevel)

Return value:

A new LibScriptableWidgetColor widget
WidgetColor:Start ()
Start a LibScriptableWidgetColor

Usage:

object:Start()

Return value:

Nothing
WidgetColor:Stop ()
Stop a LibScriptableWidgetColor

Usage:

object:Stop()

Return value:

Nothing
WidgetColor:Update ()
Update this widget

Usage:

object:Update()

Return value:

Nothing

Clone this wiki locally