CreateScreenshot

From VisionaireWiki
Revision as of 23:31, 17 August 2011 by Alex (talk | contribs) (Created page with "==Documentation for Visionaire 3.7 and higher== ==createScreenshot== Creates a new screenshot which is either used for a savegame or stored to a file. Lua Syntax: <pre>create...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for Visionaire 3.7 and higher

createScreenshot

Creates a new screenshot which is either used for a savegame or stored to a file.

Lua Syntax:

createScreenshot(saveTo, {flags=1, 
    clear = true|false})

Arguments

saveTo

"string" - If specified the screenshot will be saved to the given path. Otherwise the screenshot will be used for the next savegame(s), as long as a new screenshot is created or the current screenshot is cleared. If a screenshot for a savegame was created before it will be overwritten by the new screenshot.

Flags

clr/clear

If true the screenshot will be cleared. Default value is false. If the screenshot is cleared it will be generated automatically by the engine again, everytime the scene is changed from a playable scene to a menu.

Return Values

None.