{
  "params": {
    "style": {
      "type": "choice",
      "options": [
        "wrecker",
        "flatbed"
      ],
      "default": "wrecker",
      "label": "Build",
      "describe": "wrecker (boom with winch cable and hook over a rear wheel-lift) or flatbed (rollback deck that slides back and tilts to load a car)."
    },
    "paint": {
      "type": "choice",
      "options": [
        "white",
        "red",
        "yellow",
        "blue",
        "black"
      ],
      "default": "red",
      "label": "Paint",
      "describe": "Cab colour: white, red, yellow, blue or black. The body and boom are dark steel with an amber light bar."
    },
    "work": {
      "type": "range",
      "min": 0,
      "max": 1,
      "step": 0.05,
      "default": 0,
      "label": "Working",
      "describe": "Wrecker: raises the boom to 40 degrees and lowers the wheel-lift to the road. Flatbed: slides the deck 2.6 m back and tilts it down to the ground. 0 is stowed for driving."
    },
    "lightbar": {
      "type": "toggle",
      "default": true,
      "label": "Light bar",
      "describe": "Amber light bar on the cab roof and work lamps at the back."
    }
  },
  "presets": {
    "roadside wrecker": {
      "style": "wrecker",
      "work": 0.6
    },
    "rollback loading": {
      "style": "flatbed",
      "work": 1,
      "paint": "white"
    },
    "night recovery": {
      "style": "wrecker",
      "paint": "yellow"
    }
  },
  "night": {
    "headlight": {
      "zone": "headlight",
      "color": "#fff4c8",
      "intensity": 1.2,
      "describe": "Headlights glow."
    },
    "taillight": {
      "zone": "taillight",
      "color": "#ff2a2a",
      "intensity": 1,
      "describe": "Tail lights glow red."
    },
    "beacon": {
      "zone": "beacon",
      "color": "#ffad2e",
      "intensity": 1.8,
      "describe": "The amber light bar glows."
    },
    "worklight": {
      "zone": "worklight",
      "color": "#fff0c8",
      "intensity": 1,
      "describe": "Work lamps at the back glow."
    }
  }
}