Skip to content

Instantly share code, notes, and snippets.

@EdwardAndrew
Last active September 23, 2018 16:38
Show Gist options
  • Save EdwardAndrew/f3f50df11b2dfad78b51f5055931c09f to your computer and use it in GitHub Desktop.
Save EdwardAndrew/f3f50df11b2dfad78b51f5055931c09f to your computer and use it in GitHub Desktop.
Illuminate Example Config
{
"colors": [
{
"name": "background",
"r": 50,
"g": 50,
"b": 50
},
{
"name": "red",
"r": 255,
"g": 0,
"b": 0
},
{
"name": "green",
"r": 0,
"g": 255,
"b": 0
},
{
"name": "blue",
"r": 0,
"g": 0,
"b": 255
}
],
"conditions": [
{
"name": "gearHandleDown",
"dataRef": "sim/cockpit/switches/gear_handle_status",
"match": "exactly",
"value": 1
},
{
"name": "gearHandleUp",
"dataRef": "sim/cockpit/switches/gear_handle_status",
"match": "exactly",
"value": 0
},
{
"name": "gearOneDown",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 0,
"match": "exactly",
"value": 1
},
{
"name": "gearOneNotDown",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 0,
"match": "less_than",
"value": 1
},
{
"name": "gearOneUp",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 0,
"match": "exactly",
"value": 0
},
{
"name": "gearOneNotUp",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 0,
"match": "greater_than",
"value": 0
},
{
"name": "gearTwoDown",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 1,
"match": "exactly",
"value": 1
},
{
"name": "gearTwoNotDown",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 1,
"match": "less_than",
"value": 1
},
{
"name": "gearTwoUp",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 1,
"match": "exactly",
"value": 0
},
{
"name": "gearTwoNotUp",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 1,
"match": "greater_than",
"value": 0
},
{
"name": "gearThreeDown",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 2,
"match": "exactly",
"value": 1
},
{
"name": "gearThreeNotDown",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 2,
"match": "less_than",
"value": 1
},
{
"name": "gearThreeUp",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 2,
"match": "exactly",
"value": 0
},
{
"name": "gearThreeNotUp",
"dataRef": "sim/flightmodel2/gear/deploy_ratio",
"index": 2,
"match": "greater_than",
"value": 0
},
{
"name": "speedbrake",
"dataRef": "sim/cockpit2/controls/speedbrake_ratio",
"match": "less_than",
"value": 0
},
{
"name": "speedbrakeNot",
"dataRef": "sim/cockpit2/controls/speedbrake_ratio",
"match": "exactly",
"value": 0
}
],
"keys": [
{
"conditions": [
"gearHandleDown",
"gearOneDown"
],
"key": 93,
"color": "green"
},
{
"conditions": [
"gearHandleDown",
"gearOneNotDown"
],
"key": 93,
"color": "red"
},
{
"conditions": [
"gearHandleUp",
"gearOneNotUp"
],
"key": 93,
"color": "red"
},
{
"conditions": [
"gearHandleUp",
"gearOneUp"
],
"key": 93,
"color": "background"
},{
"conditions": [
"gearHandleDown",
"gearTwoDown"
],
"key": 96,
"color": "green"
},
{
"conditions": [
"gearHandleDown",
"gearTwoNotDown"
],
"key": 96,
"color": "red"
},
{
"conditions": [
"gearHandleUp",
"gearTwoNotUp"
],
"key": 96,
"color": "red"
},
{
"conditions": [
"gearHandleUp",
"gearTwoUp"
],
"key": 96,
"color": "background"
},{
"conditions": [
"gearHandleDown",
"gearThreeDown"
],
"key": 94,
"color": "green"
},
{
"conditions": [
"gearHandleDown",
"gearThreeNotDown"
],
"key": 94,
"color": "red"
},
{
"conditions": [
"gearHandleUp",
"gearThreeNotUp"
],
"key": 94,
"color": "red"
},
{
"conditions": [
"gearHandleUp",
"gearThreeUp"
],
"key": 94,
"color": "background"
},
{
"conditions": [
"speedbrake"
],
"key": 17,
"color": "green"},
{
"conditions": [
"speedbrakeNot"
],
"key": 17,
"color": "background"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment