Skip to content

Commit

Permalink
Moving around refs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Nov 4, 2023
1 parent ecfc970 commit 322f89d
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 293 deletions.
2 changes: 1 addition & 1 deletion source/resource/ui/elements/properties/controls.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"items": {
"additionalProperties": {
"title": "Sub Element",
"$ref": "#/definitions/grouped"
"$ref": "../../grouped-ui.json"
}
}
},
Expand Down
10 changes: 2 additions & 8 deletions source/resource/ui/elements/properties/factory.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
"title": "Factory",
"description": "The factory that will be used to create the element.",
"definitions": {
"variables": {
"title": "Variable Definition",
"description": "A variable is a reference to a value that can be used in the UI."
}
},
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^\\$.*": {
"$ref": "#/definitions/variables"
"$ref": "../../general/variables.json"
}
},
"properties": {
"control_ids": {
"$ref": "#/definitions/control_ids"
"$ref": "./control_ids.json"
},
"control_name": {
"title": "Control Name",
Expand Down
4 changes: 4 additions & 0 deletions source/resource/ui/general/variables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Variable Definition",
"description": "A variable is a reference to a value that can be used in the UI."
}
4 changes: 2 additions & 2 deletions source/resource/ui/general/vec4.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"examples": ["default", "fill", ["100%", "100%"]],
"definitions": {
"size_coord": {
"oneOf": [
Expand Down Expand Up @@ -50,6 +51,5 @@
}
]
}
],
"examples": ["default", "fill", ["100%", "100%"]]
]
}
Loading

0 comments on commit 322f89d

Please sign in to comment.