adventuregamestudio / ags-manual

AGS documentation.
https://adventuregamestudio.github.io/ags-manual/
MIT License
28 stars 9 forks source link

Document OPT_SAVEGAMESCREENSHOTLAYER in Globalfunctions_General #261

Open ericoporto opened 2 days ago

ericoporto commented 2 days ago

https://github.com/adventuregamestudio/ags-manual/wiki/Globalfunctions_General#setgameoption

Added new game-wide option OPT_SAVEGAMESCREENSHOTLAYER that lets to define which of the game's render layers will be captured when making a standard screenshot for the save game.

RenderLayer is documented in #259 , and screenshot is discussed in #258

Example

function game_start()
{
  SetGameOption(OPT_SAVEGAMESCREENSHOTLAYER, eRenderLayerRoom);
}

This option was added in PR https://github.com/adventuregamestudio/ags/pull/2526