Changes

Jump to navigation Jump to search

Overview of the API

9 bytes added, 22:28, 8 November 2014
m
no edit summary
Line 26: Line 26:  
*'''[[unpack]]'''(table[, start][, end]) - Returns the contents of its argument as separate values.  
 
*'''[[unpack]]'''(table[, start][, end]) - Returns the contents of its argument as separate values.  
 
*'''[[xpcall]]'''(func, err) - Returns a boolean indicating successful execution of func and calls err on failure, additionally returning func's or err's results.
 
*'''[[xpcall]]'''(func, err) - Returns a boolean indicating successful execution of func and calls err on failure, additionally returning func's or err's results.
 +
 +
=== Coroutines Library ===
 +
The coroutines are useful tools to control the running of differents parts of a code ("threads").
 +
 +
create, wrap, resume, yield, status, running
 +
 +
More information can be fouded in the [[coroutines]] page.
    
=== String Library ===
 
=== String Library ===
Line 108: Line 115:  
*'''[[on.save]]''' is called when the script app is saved to the document or copied to the clipboard.
 
*'''[[on.save]]''' is called when the script app is saved to the document or copied to the clipboard.
 
*'''[[on.restore]]''' is called when the script application is restored from its saved state in a document or when the app is pasted into a document..
 
*'''[[on.restore]]''' is called when the script application is restored from its saved state in a document or when the app is pasted into a document..
*'''[[on.cutEnabled]]''' is called when the "cut" feature gets enabled.
  −
*'''[[on.copyEnabled]]''' is called when the "copy" feature gets enabled.
  −
*'''[[on.pasteEnabled]]''' is called when the "pastes" feature gets enabled.
   
*'''[[on.cut]]'''  is called when the user cuts something.
 
*'''[[on.cut]]'''  is called when the user cuts something.
 
*'''[[on.copy]]''' is called when the user copies something.
 
*'''[[on.copy]]''' is called when the user copies something.

Navigation menu