Toggle Conditions, Enable Conditions

This commit is contained in:
uwap 2017-09-17 05:00:07 +02:00
parent eb96d9d511
commit d121928df6
3 changed files with 52 additions and 11 deletions

View file

@ -88,18 +88,25 @@ const config : Config = {
position: [550,150],
icon: "",
ui: [
{
type: "toggle",
text: "An/Aus",
topic: "artnet",
on: "cycle",
toggled: val => val != "off"
},
{
type: "dropDown",
text: "Artnet",
topic: "artnet",
options: {
off: "Aus",
yellow: "Gelb",
red: "Rot",
purple: "Pink",
green: "Grün",
cycle: "Cycle Random"
}
},
enableCondition: val => val != "off"
}
]
}