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. |
Line 130: |
Line 134: |
| *'''[[gc:getStringHeight]]'''(string) - Returns the string's height. | | *'''[[gc:getStringHeight]]'''(string) - Returns the string's height. |
| *'''[[gc:getStringWidth]]'''(string) - Returns the string's width | | *'''[[gc:getStringWidth]]'''(string) - Returns the string's width |
− | *'''[[gc:setAlpha]]'''(alpha) - where alpha is an integer between 0 and 255. Sets the transparency. ''Not available anymore'' | + | *'''[[gc:setAlpha]]'''(alpha) - where alpha is an integer between 0 and 255. Sets the transparency. '''''Not available anymore in 3.2+''''' |
| *'''[[gc:setColorRGB]]'''(red, green, blue) RGB values are integers, from 0 to 255. | | *'''[[gc:setColorRGB]]'''(red, green, blue) RGB values are integers, from 0 to 255. |
| *'''[[gc:setFont]]'''(font, type, size), with font : {“sansserif”, "serif", ..}, type {“b”, “r”, “i”}, size(int) | | *'''[[gc:setFont]]'''(font, type, size), with font : {“sansserif”, "serif", ..}, type {“b”, “r”, “i”}, size(int) |