PiPedal 1.2.33 initial commit

This commit is contained in:
Robin Davies
2024-08-08 12:53:02 -04:00
parent 0e378997a5
commit a3847c8184
255 changed files with 22008 additions and 1791 deletions
+8 -1
View File
@@ -451,7 +451,8 @@ export enum ControlType {
Tuner,
Vu,
DbVu
DbVu,
OutputSelect
}
export class UiControl implements Deserializable<UiControl> {
@@ -499,6 +500,8 @@ export class UiControl implements Deserializable<UiControl> {
} else if (this.units === Units.db)
{
this.controlType = ControlType.DbVu;
} else if (this.enumeration_property) {
this.controlType = ControlType.OutputSelect;
} else {
this.controlType = ControlType.Vu;
}
@@ -614,6 +617,10 @@ export class UiControl implements Deserializable<UiControl> {
isSelect() : boolean {
return this.controlType === ControlType.Select;
}
isOutputSelect() : boolean {
return !this.is_input && this.controlType === ControlType.OutputSelect;
}
isLamp(): boolean {
return this.toggled_property && this.scale_points.length === 0 && !this.is_input;