-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add 9Slice schema * Add nineslice schema to vscode settings
- Loading branch information
Showing
2 changed files
with
80 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "blockception.minecraft.resource.texture.nine_slice", | ||
"additionalProperties": false, | ||
"description": "The file that specifies 9Slice textures.", | ||
"title": "9Slice Texture File", | ||
"type": "object", | ||
"properties": { | ||
"nineslice_size": { | ||
"title": "9Slice offsets", | ||
"oneOf": [ | ||
{ | ||
"description": "Offset from left, top, right and bottom of the texture file.", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
{ | ||
"description": "Offsets from left, top, right and bottom of the texture file (in this exact order).", | ||
"type": "array", | ||
"minItems": 4, | ||
"maxItems": 4, | ||
"items": { | ||
"type": "number", | ||
"minimum": 0 | ||
} | ||
} | ||
] | ||
}, | ||
"base_size": { | ||
"title": "Size of the texture", | ||
"description": "Width and height of the texture (in this exact order).", | ||
"type": "array", | ||
"minItems": 2, | ||
"maxItems": 2, | ||
"items": { | ||
"type": "number", | ||
"minimum": 0 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters