Kerbal Space Program
1.12.4
|
Static Public Member Functions | |
static ScreenshotHandle | AddScreenshotToLibrary (string pchFilename, string pchThumbnailFilename, int nWidth, int nHeight) |
static ScreenshotHandle | AddVRScreenshotToLibrary (EVRScreenshotType eType, string pchFilename, string pchVRFilename) |
static void | HookScreenshots (bool bHook) |
static bool | IsScreenshotsHooked () |
static bool | SetLocation (ScreenshotHandle hScreenshot, string pchLocation) |
static bool | TagPublishedFile (ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID) |
static bool | TagUser (ScreenshotHandle hScreenshot, CSteamID steamID) |
static void | TriggerScreenshot () |
static ScreenshotHandle | WriteScreenshot (byte[] pubRGB, uint cubRGB, int nWidth, int nHeight) |
|
inlinestatic |
Adds a screenshot to the user's screenshot library from disk. If a thumbnail is provided, it must be 200 pixels wide and the same aspect ratio
as the screenshot, otherwise a thumbnail will be generated if the user uploads the screenshot. The screenshots must be in either JPEG or TGA format.
The return value is a handle that is valid for the duration of the game process and can be used to apply tags.
JPEG, TGA, and PNG formats are supported.
|
inlinestatic |
Adds a VR screenshot to the user's screenshot library from disk in the supported type.
pchFilename should be the normal 2D image used in the library view
pchVRFilename should contain the image that matches the correct type
The return value is a handle that is valid for the duration of the game process and can be used to apply tags.
JPEG, TGA, and PNG formats are supported.
|
inlinestatic |
Toggles whether the overlay handles screenshots when the user presses the screenshot hotkey, or the game handles them. If the game is hooking screenshots,
then the ScreenshotRequested_t callback will be sent if the user presses the hotkey, and the game is expected to call WriteScreenshot or AddScreenshotToLibrary
in response.
|
inlinestatic |
Returns true if the app has hooked the screenshot
|
inlinestatic |
Sets metadata about a screenshot's location (for example, the name of the map)
|
inlinestatic |
Tags a published file as being visible in the screenshot
|
inlinestatic |
Tags a user as being visible in the screenshot
|
inlinestatic |
Causes the Steam overlay to take a screenshot. If screenshots are being hooked by the game then a ScreenshotRequested_t callback is sent back to the game instead.
|
inlinestatic |
Writes a screenshot to the user's screenshot library given the raw image data, which must be in RGB format.
The return value is a handle that is valid for the duration of the game process and can be used to apply tags.