@pipelab/steamworks.js 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.d.ts CHANGED
@@ -262,8 +262,26 @@ export declare namespace overlay {
262
262
  export function activateToStore(appId: number, flag: StoreFlag): void
263
263
  }
264
264
  export declare namespace screenshots {
265
- /** Triggers the Steam overlay to take a screenshot. */
265
+ /**
266
+ * Triggers the Steam overlay to take a screenshot.
267
+ *
268
+ * {@link https://partner.steamgames.com/doc/api/ISteamScreenshots#TriggerScreenshot}
269
+ */
266
270
  export function triggerScreenshot(): void
271
+ /**
272
+ * Adds a screenshot to the user's Steam screenshot library from disk.
273
+ *
274
+ * @param filename - The absolute path to the screenshot image file
275
+ * @param thumbnail_filename - Optional path to a thumbnail image (can be null/undefined)
276
+ * @param width - Width of the screenshot in pixels
277
+ * @param height - Height of the screenshot in pixels
278
+ * @returns The screenshot handle, or throws an error if the operation fails
279
+ *
280
+ * This call is asynchronous. The screenshot will be processed and added to the library.
281
+ *
282
+ * {@link https://partner.steamgames.com/doc/api/ISteamScreenshots#AddScreenshotToLibrary}
283
+ */
284
+ export function addScreenshotToLibrary(filename: string, thumbnailFilename: string | undefined | null, width: number, height: number): number
267
285
  }
268
286
  export declare namespace stats {
269
287
  export function getInt(name: string): number | null
@@ -274,6 +292,7 @@ export declare namespace stats {
274
292
  export declare namespace utils {
275
293
  export function getAppId(): number
276
294
  export function getServerRealTime(): number
295
+ export function getSteamUiLanguage(): string
277
296
  export function isSteamRunningOnSteamDeck(): boolean
278
297
  export const enum GamepadTextInputMode {
279
298
  Normal = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelab/steamworks.js",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "publishConfig": {