Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit ae318c7

Browse files
committed
Add new Action properties
Elgato docs reference DisableCaching, VisibleInActionsList, UserTitleEnabled which were previously not available in the plugin. Source: https://developer.elgato.com/documentation/stream-deck/sdk/manifest/
1 parent 658f447 commit ae318c7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/Action.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,29 @@ export class Action<
106106
*/
107107
public keyPad = true;
108108

109+
/**
110+
* Boolean to disable the title field for users in the property inspector.
111+
* True by default.
112+
*
113+
* @type {boolean}
114+
*/
115+
public enableUserTitle = true;
116+
117+
/**
118+
* Boolean to hide the action in the actions list. This can be used for a
119+
* plugin that only works with a specific profile. True by default.
120+
*
121+
* @type {boolean}
122+
*/
123+
public isVisibleInActionsList = true;
124+
125+
/**
126+
* Boolean to disable image caching. False by default.
127+
*
128+
* @type {boolean}
129+
*/
130+
public disableCachingImages = false;
131+
109132
constructor(params: {
110133
name: string;
111134
inspectorName?: string;
@@ -159,6 +182,17 @@ export class Action<
159182
],
160183
// ["Controllers", controllers],
161184
["Encoder", this.encoder !== undefined, this.encoder.toManifest()],
185+
[
186+
"UserTitleEnabled",
187+
this.enableUserTitle === false,
188+
this.enableUserTitle,
189+
],
190+
[
191+
"VisibleInActionsList",
192+
this.isVisibleInActionsList === false,
193+
this.isVisibleInActionsList,
194+
],
195+
["DisableCaching", this.disableCachingImages, this.disableCachingImages],
162196
];
163197

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

0 commit comments

Comments
 (0)