Stream Deck plugin v0.3.1 (#24)

This commit is contained in:
iGoX 2025-01-06 23:44:06 +01:00
parent b1bbabe90e
commit 67de2231bd
9 changed files with 37 additions and 4 deletions

View file

@ -1,5 +1,32 @@
# Release notes
## Version 0.3.1.0 (2024-01-06)
### Download
[org.igox.busylight.v0.3.1.0.streamDeckPlugin](download/org.igox.busylight.v0.3.1.0.streamDeckPlugin)
### Features
- None added
### Enhancements
- Add colored button for "Set color" action.
- Update plugin and plugin category icons
### Fixes
- None.
### Bugs & known limitations
- None known at publication time.
### Screenshot
![v0.3.1.0 screenshot](img/v0.3.1.0.png)
## Version 0.3.0.0 (2024-01-06)
### Download

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View file

@ -1,6 +1,6 @@
{
"Name": "iGoX BusyLight",
"Version": "0.3.0.0",
"Version": "0.3.1.0",
"Author": "iGoX",
"$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json",
"Actions": [
@ -54,10 +54,10 @@
}
],
"Category": "iGoX BusyLight",
"CategoryIcon": "imgs/plugin/category",
"CategoryIcon": "imgs/plugin/category-icon",
"CodePath": "bin/plugin.js",
"Description": "Control your DIY BusyLight (https://github.com/igox/busylight) from your Stream Deck",
"Icon": "imgs/plugin/category",
"Icon": "imgs/plugin/icon",
"SDKVersion": 2,
"Software": {
"MinimumVersion": "6.4"

View file

@ -1,4 +1,4 @@
import streamDeck, { action, JsonObject, KeyDownEvent, DidReceiveSettingsEvent, SingletonAction } from "@elgato/streamdeck";
import streamDeck, { action, JsonObject, KeyDownEvent, DidReceiveSettingsEvent, PropertyInspectorDidAppearEvent, SingletonAction } from "@elgato/streamdeck";
@action({ UUID: "org.igox.busylight.color.set" })
export class SetColor extends SingletonAction {
@ -18,6 +18,12 @@ export class SetColor extends SingletonAction {
const { settings } = ev.payload;
await ev.action.setSettings(settings);
}
override async onPropertyInspectorDidAppear(ev: PropertyInspectorDidAppearEvent<ColorSettings>): Promise<void> {
streamDeck.logger.debug(`>>> Color button property inspector diplayed! <<<`);
await ev.action.setImage(`imgs/actions/buttons/colored/colored.png`);
}
}
function hexToRgb(hex: string): { r: number, g: number, b: number } {

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB