dao::screenshot

Declared in dao/Screenshot.h.

Functions

OnScreenshot()

void OnScreenshot(std::function<void()> before, std::function<void()> after)

Calls before when the game is about to take a screenshot, and after once its file is written.

Each plugin that asks is told. A screenshot asked for with a name of its own (the message’s strings not empty) is taken at once, unheld, and no one is told.

Parameter  
before runs on the game thread when the screenshot is asked for; the picture is taken two frames later, so what it hides is not in it
after runs on the game thread, the frame after the file is written, or a few seconds on if it never is