Split media vs emit volume for radio and widget

This commit is contained in:
Jage9
2026-02-21 22:38:48 -05:00
parent bb36a007e2
commit a2c1306b46
10 changed files with 72 additions and 24 deletions

View File

@@ -62,7 +62,7 @@
"streamUrl": "",
"enabled": true,
"channel": "stereo",
"volume": 50,
"mediaVolume": 50,
"effect": "off",
"effectValue": 50,
"facing": 0,
@@ -73,7 +73,7 @@
- `streamUrl`: string, empty allowed until configured.
- `enabled`: boolean on/off flag.
- UI behavior: in property menu, `Enter` toggles on/off directly.
- `volume`: integer, range `0-100`, default `50`.
- `mediaVolume`: integer, range `0-100`, default `50`.
- `channel`: one of `stereo | mono | left | right`, default `stereo`.
- `effect`: one of `reverb | echo | flanger | high_pass | low_pass | off`, default `off`.
- `effectValue`: number, range `0-100`, precision `0.1`.
@@ -136,6 +136,7 @@
"directional": false,
"facing": 0,
"emitRange": 15,
"emitVolume": 100,
"useSound": "",
"emitSound": ""
}
@@ -145,6 +146,7 @@
- `directional`: boolean (or `on/off` in updates), default `false`.
- `facing`: number, range `0-360`, precision `0.1`.
- `emitRange`: integer, range `1-20`, default `15`.
- `emitVolume`: integer, range `0-100`, default `100`.
- `useSound`: empty, filename (assumed under `sounds/`), or full URL.
- `emitSound`: empty, filename (assumed under `sounds/`), or full URL.

View File

@@ -22,7 +22,7 @@ This is behavior-focused documentation for item types and their defaults.
- `streamUrl=""`
- `enabled=true`
- `channel="stereo"`
- `volume=50`
- `mediaVolume=50`
- `effect="off"`
- `effectValue=50`
- `facing=0`
@@ -39,7 +39,7 @@ This is behavior-focused documentation for item types and their defaults.
### Validation
- `channel`: `stereo | mono | left | right`
- `volume`: integer `0..100`
- `mediaVolume`: integer `0..100`
- `effect`: `reverb | echo | flanger | high_pass | low_pass | off`
- `effectValue`: number `0..100` with `0.1` precision
- `facing`: number `0..360` with `0.1` precision
@@ -119,6 +119,7 @@ This is behavior-focused documentation for item types and their defaults.
- `directional=false`
- `facing=0`
- `emitRange=15`
- `emitVolume=100`
- `useSound=""`
- `emitSound=""`
- Global:
@@ -136,6 +137,7 @@ This is behavior-focused documentation for item types and their defaults.
- `directional`: boolean or on/off style input
- `facing`: number `0..360` with `0.1` precision
- `emitRange`: integer `1..20`
- `emitVolume`: integer `0..100`
- `useSound`: empty, filename (assumed under `sounds/`), or full URL
- `emitSound`: empty, filename (assumed under `sounds/`), or full URL