Updated Schemas

This commit is contained in:
Ben C 2025-02-17 20:49:20 +00:00
parent c6137ff96c
commit 18fc7f1dde
2 changed files with 58 additions and 42 deletions

View File

@ -4507,7 +4507,7 @@
}, },
"type": { "type": {
"description": "The type of dream candle this is.", "description": "The type of dream candle this is.",
"default": "Ground", "default": "ground",
"$ref": "#/definitions/DreamCandleType" "$ref": "#/definitions/DreamCandleType"
}, },
"startLit": { "startLit": {

View File

@ -4,45 +4,16 @@
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"menuTextTint": { "titleScreens": {
"description": "Colour of the text on the main menu", "type": "array",
"$ref": "#/definitions/MColor" "description": "Create title screens",
"items": {
"$ref": "#/definitions/TitleScreenInfo"
}
}, },
"factRequiredForTitle": { "$schema": {
"type": "string", "type": "string",
"description": "Ship log fact required for this title screen to appear." "description": "The schema to validate with"
},
"persistentConditionRequiredForTitle": {
"type": "string",
"description": "Persistent condition required for this title screen to appear."
},
"disableNHPlanets": {
"type": "boolean",
"description": "If set to true, NH generated planets will not show on the title screen. If false, this title screen has the same chance as other NH planet title screens to show."
},
"shareTitleScreen": {
"type": "boolean",
"description": "If set to true, this custom title screen will merge with all other custom title screens with shareTitleScreen set to true. If false, NH will randomly select between this and other valid title screens that are loaded."
},
"Skybox": {
"description": "Customize the skybox for this title screen",
"$ref": "#/definitions/SkyboxModule"
},
"music": {
"type": "string",
"description": "The music audio that will play on the title screen. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list."
},
"ambience": {
"type": "string",
"description": "The ambience audio that will play on the title screen. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list."
},
"Background": {
"description": "Edit properties of the background",
"$ref": "#/definitions/BackgroundModule"
},
"MenuPlanet": {
"description": "Edit properties of the main menu planet",
"$ref": "#/definitions/MenuPlanetModule"
}, },
"extras": { "extras": {
"type": "object", "type": "object",
@ -50,13 +21,58 @@
"additionalProperties": { "additionalProperties": {
"type": "object" "type": "object"
} }
},
"$schema": {
"type": "string",
"description": "The schema to validate with"
} }
}, },
"definitions": { "definitions": {
"TitleScreenInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"menuTextTint": {
"description": "Colour of the text on the main menu",
"$ref": "#/definitions/MColor"
},
"factRequiredForTitle": {
"type": "string",
"description": "Ship log fact required for this title screen to appear."
},
"persistentConditionRequiredForTitle": {
"type": "string",
"description": "Persistent condition required for this title screen to appear."
},
"disableNHPlanets": {
"type": "boolean",
"description": "If set to true, NH generated planets will not show on the title screen. If false, this title screen has the same chance as other NH planet title screens to show."
},
"shareTitleScreen": {
"type": "boolean",
"description": "If set to true, this custom title screen will merge with all other custom title screens with shareTitleScreen set to true. If false, NH will randomly select between this and other valid title screens that are loaded."
},
"Skybox": {
"description": "Customize the skybox for this title screen",
"$ref": "#/definitions/SkyboxModule"
},
"music": {
"type": "string",
"description": "The music audio that will play on the title screen. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list."
},
"ambience": {
"type": "string",
"description": "The ambience audio that will play on the title screen. Can be a path to a .wav/.ogg/.mp3 file, or taken from the AudioClip list."
},
"Background": {
"description": "Edit properties of the background",
"$ref": "#/definitions/BackgroundModule"
},
"MenuPlanet": {
"description": "Edit properties of the main menu planet",
"$ref": "#/definitions/MenuPlanetModule"
},
"extras": {
"description": "Extra data that may be used by extension mods"
}
}
},
"MColor": { "MColor": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,