Stream Deck plugin v0.3.1 (#24)
|
|
@ -1,5 +1,32 @@
|
||||||
# Release notes
|
# 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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Version 0.3.0.0 (2024-01-06)
|
## Version 0.3.0.0 (2024-01-06)
|
||||||
|
|
||||||
### Download
|
### Download
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"Name": "iGoX BusyLight",
|
"Name": "iGoX BusyLight",
|
||||||
"Version": "0.3.0.0",
|
"Version": "0.3.1.0",
|
||||||
"Author": "iGoX",
|
"Author": "iGoX",
|
||||||
"$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json",
|
"$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
|
|
@ -54,10 +54,10 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Category": "iGoX BusyLight",
|
"Category": "iGoX BusyLight",
|
||||||
"CategoryIcon": "imgs/plugin/category",
|
"CategoryIcon": "imgs/plugin/category-icon",
|
||||||
"CodePath": "bin/plugin.js",
|
"CodePath": "bin/plugin.js",
|
||||||
"Description": "Control your DIY BusyLight (https://github.com/igox/busylight) from your Stream Deck",
|
"Description": "Control your DIY BusyLight (https://github.com/igox/busylight) from your Stream Deck",
|
||||||
"Icon": "imgs/plugin/category",
|
"Icon": "imgs/plugin/icon",
|
||||||
"SDKVersion": 2,
|
"SDKVersion": 2,
|
||||||
"Software": {
|
"Software": {
|
||||||
"MinimumVersion": "6.4"
|
"MinimumVersion": "6.4"
|
||||||
|
|
|
||||||
|
|
@ -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" })
|
@action({ UUID: "org.igox.busylight.color.set" })
|
||||||
export class SetColor extends SingletonAction {
|
export class SetColor extends SingletonAction {
|
||||||
|
|
@ -18,6 +18,12 @@ export class SetColor extends SingletonAction {
|
||||||
const { settings } = ev.payload;
|
const { settings } = ev.payload;
|
||||||
await ev.action.setSettings(settings);
|
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 } {
|
function hexToRgb(hex: string): { r: number, g: number, b: number } {
|
||||||
|
|
|
||||||
BIN
streamdeck-plugin/img/v0.3.1.0.png
Normal file
|
After Width: | Height: | Size: 234 KiB |