Skip to content

Commit

Permalink
Add new Action properties
Browse files Browse the repository at this point in the history
Elgato docs reference DisableCaching, VisibleInActionsList,
UserTitleEnabled which were previously not available in the plugin.

Source: https://developer.elgato.com/documentation/stream-deck/sdk/manifest/
  • Loading branch information
rdohms committed Aug 5, 2023
1 parent 658f447 commit ae318c7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,29 @@ export class Action<
*/
public keyPad = true;

/**
* Boolean to disable the title field for users in the property inspector.
* True by default.
*
* @type {boolean}
*/
public enableUserTitle = true;

/**
* Boolean to hide the action in the actions list. This can be used for a
* plugin that only works with a specific profile. True by default.
*
* @type {boolean}
*/
public isVisibleInActionsList = true;

/**
* Boolean to disable image caching. False by default.
*
* @type {boolean}
*/
public disableCachingImages = false;

constructor(params: {
name: string;
inspectorName?: string;
Expand Down Expand Up @@ -159,6 +182,17 @@ export class Action<
],
// ["Controllers", controllers],
["Encoder", this.encoder !== undefined, this.encoder.toManifest()],
[
"UserTitleEnabled",
this.enableUserTitle === false,
this.enableUserTitle,
],
[
"VisibleInActionsList",
this.isVisibleInActionsList === false,
this.isVisibleInActionsList,
],
["DisableCaching", this.disableCachingImages, this.disableCachingImages],
];

optionals.forEach(([prop, condition, value]) => {
Expand Down

0 comments on commit ae318c7

Please sign in to comment.