This commit is contained in:
DaanV2
2021-04-23 23:57:03 +02:00
parent dfbcb5f002
commit 483d69472d
2 changed files with 35 additions and 32 deletions

View File

@@ -9,7 +9,7 @@
"color": {
"anyOf": [
{ "type": "number", "description": "A color definition as number, between 0 and 1", "minimum": 0, "maximum": 1, "title": "Color Number" },
{ "type": "string", "description": "A color definition in molang", "title": "Molang Color" }
{ "type": "string", "description": "A color definition in molang, between 0 and 1", "title": "Molang Color" }
]
}
},
@@ -21,7 +21,10 @@
},
"render_controllers": {
"type": "object",
"propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" },
"propertyNames": {
"pattern": "^controller\\.render\\.[a-z\\.]+",
"examples": ["controller.render.example"]
},
"additionalProperties": {
"title": "Render Controller",
"additionalProperties": false,
@@ -93,10 +96,10 @@
"additionalProperties": false,
"type": "object",
"properties": {
"r": { "$ref": "#/definitions/color", "description": "TODO description: r", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "TODO description: g", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "TODO description: b", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "TODO description: a", "title": "A" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, between 0 and 1", "title": "A" }
},
"description": "TODO description: color",
"title": "Color"
@@ -110,10 +113,10 @@
"description": "The color to overlay on the entity when hurt",
"title": "Is Hurt Color",
"properties": {
"r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, between 0 and 1", "title": "A" }
}
},
"materials": {
@@ -134,10 +137,10 @@
"description": "TODO description: overlay color",
"title": "Overlay Color",
"properties": {
"r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, between 0 and 1", "title": "A" }
}
},
"textures": {

View File

@@ -23,7 +23,7 @@
},
"render_controllers": {
"type": "object",
"propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+" },
"propertyNames": { "pattern": "^controller\\.render\\.[a-z\\.]+", "examples": ["controller.render.example"] },
"additionalProperties": {
"additionalProperties": false,
"type": "object",
@@ -97,10 +97,10 @@
"additionalProperties": false,
"type": "object",
"properties": {
"r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, must result in a float between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, must result in a float between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, must result in a float between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, must result in a float between 0 and 1", "title": "A" }
}
},
"filter_lighting": { "type": "boolean", "description": "TODO description: filter lighting", "title": "Filter Lighting" },
@@ -112,10 +112,10 @@
"additionalProperties": false,
"description": "The color that is overlay when hurt",
"properties": {
"r": { "$ref": "#/definitions/color", "description": "The value of red", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha", "title": "A" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, must result in a float between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, must result in a float between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, must result in a float between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, must result in a float between 0 and 1", "title": "A" }
}
},
"light_color_multiplier": {
@@ -139,10 +139,10 @@
"additionalProperties": false,
"type": "object",
"properties": {
"r": { "$ref": "#/definitions/color" },
"g": { "$ref": "#/definitions/color" },
"b": { "$ref": "#/definitions/color" },
"a": { "$ref": "#/definitions/color" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, must result in a float between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, must result in a float between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, must result in a float between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, must result in a float between 0 and 1", "title": "A" }
},
"description": "TODO description: on fire color",
"title": "On Fire Color"
@@ -151,12 +151,12 @@
"additionalProperties": false,
"type": "object",
"properties": {
"r": { "$ref": "#/definitions/color" },
"g": { "$ref": "#/definitions/color" },
"b": { "$ref": "#/definitions/color" },
"a": { "$ref": "#/definitions/color" }
"r": { "$ref": "#/definitions/color", "description": "The value of red, must result in a float between 0 and 1", "title": "R" },
"g": { "$ref": "#/definitions/color", "description": "The value of green, must result in a float between 0 and 1", "title": "G" },
"b": { "$ref": "#/definitions/color", "description": "The value of blue, must result in a float between 0 and 1", "title": "B" },
"a": { "$ref": "#/definitions/color", "description": "The value of alpha, must result in a float between 0 and 1", "title": "A" }
},
"description": "TODO description: overlay color",
"description": "Overlays this color ontop of any rendering parts",
"title": "Overlay Color"
},
"part_visibility": {