Advertisement
Cooolbros

temp.json

May 4th, 2021 (edited)
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.55 KB | None | 0 0
  1. {
  2.     "title": "TF2 HUD Editor JSON Schema",
  3.     "properties": {
  4.         "Background": {
  5.             "type": "string"
  6.         },
  7.         "Layout": {
  8.             "type": "array"
  9.         },
  10.         "Links": {
  11.             "type": "object",
  12.             "properties": {
  13.                 "Update": {
  14.                     "type": "string"
  15.                 },
  16.                 "Issue": {
  17.                     "type": "string"
  18.                 },
  19.                 "GitHub": {
  20.                     "type": "string"
  21.                 },
  22.                 "HudsTF": {
  23.                     "type": "string"
  24.                 },
  25.                 "Steam": {
  26.                     "type": "string"
  27.                 },
  28.                 "Discord": {
  29.                     "type": "string"
  30.                 }
  31.             },
  32.             "required": [
  33.                 "Update"
  34.             ]
  35.         },
  36.         "Controls": {
  37.             "type": "object",
  38.             "patternProperties": {
  39.                 "^[a-zA-Z\\d]*$": {
  40.                     "type": "array",
  41.                     "items": {
  42.                         "type": "object",
  43.                         "properties": {
  44.                             "Name": {
  45.                                 "type": "string"
  46.                             },
  47.                             "Label": {
  48.                                 "type": "string"
  49.                             },
  50.                             "Type": {
  51.                                 "type": "string",
  52.                                 "enum": [
  53.                                     "Background",
  54.                                     "CheckBox",
  55.                                     "Checkbox",
  56.                                     "Color",
  57.                                     "ColorPicker",
  58.                                     "Colour",
  59.                                     "ColourPicker",
  60.                                     "ComboBox",
  61.                                     "Crosshair",
  62.                                     "CustomBackground",
  63.                                     "CustomCrosshair",
  64.                                     "DropDown",
  65.                                     "DropDownMenu",
  66.                                     "Integer",
  67.                                     "IntegerUpDown",
  68.                                     "Number",
  69.                                     "Select",
  70.                                     "Text",
  71.                                     "TextBox"
  72.                                 ]
  73.                             },
  74.                             "ToolTip": {
  75.                                 "type": "string"
  76.                             },
  77.                             "Preview": {
  78.                                 "type": "string"
  79.                             },
  80.                             "Special": {
  81.                                 "type": "string"
  82.                             },
  83.                             "SpecialParameters": {
  84.                                 "type": "array"
  85.                             },
  86.                             "Files": {
  87.                                 "type": "object"
  88.                             },
  89.                             "FileName": {
  90.                                 "type": "string"
  91.                             },
  92.                             "RenameFile": {
  93.                                 "type": "string"
  94.                             },
  95.                             "ComboFiles": {
  96.                                 "type": "array"
  97.                             },
  98.                             "Restart": {
  99.                                 "type": "boolean"
  100.                             },
  101.                             "Options": {
  102.                                 "type": "array",
  103.                                 "items": {
  104.                                     "type": "object",
  105.                                     "#ref": "#/properties/Controls/patternProperties/^[a-zA-Z\\d]*$"
  106.                                 }
  107.                             },
  108.                             "Pulse": {
  109.                                 "type": "boolean"
  110.                             },
  111.                             "Minimum": {
  112.                                 "type": [
  113.                                     "integer",
  114.                                     "string"
  115.                                 ]
  116.                             },
  117.                             "Maximum": {
  118.                                 "type": [
  119.                                     "integer",
  120.                                     "string"
  121.                                 ]
  122.                             },
  123.                             "Increment": {
  124.                                 "type": [
  125.                                     "integer",
  126.                                     "string"
  127.                                 ]
  128.                             }
  129.                         },
  130.                         "required": [
  131.                             "Name",
  132.                             "Label",
  133.                             "Value"
  134.                         ]
  135.                     }
  136.                 }
  137.             }
  138.         }
  139.     },
  140.     "required": [
  141.         "Links",
  142.         "Controls"
  143.     ]
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement