Update minecraft-schemas to v0.2.0

This commit is contained in:
Misode
2020-06-17 20:34:17 +02:00
parent 8b42a59b12
commit 13b21d3b72
4 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
"@types/split.js": "^1.4.0", "@types/split.js": "^1.4.0",
"copy-webpack-plugin": "^6.0.1", "copy-webpack-plugin": "^6.0.1",
"html-webpack-plugin": "^4.3.0", "html-webpack-plugin": "^4.3.0",
"minecraft-schemas": "^0.1.9", "minecraft-schemas": "^0.2.0",
"split.js": "^1.5.11", "split.js": "^1.5.11",
"ts-loader": "^7.0.4", "ts-loader": "^7.0.4",
"typescript": "^3.9.3", "typescript": "^3.9.3",
+1 -1
View File
@@ -35,7 +35,7 @@ SCHEMAS.register('foo', ObjectNode({
recursive: ListNode( recursive: ListNode(
Reference('foo') Reference('foo')
), ),
[Switch]: path => path.push('foo').get(), [Switch]: path => path.push('foo'),
[Case]: { [Case]: {
'blah': { 'blah': {
haha: StringNode() haha: StringNode()
+1
View File
@@ -48,6 +48,7 @@ const registries = [
'loot_condition_type', 'loot_condition_type',
'loot_function_type', 'loot_function_type',
'loot_pool_entry_type', 'loot_pool_entry_type',
'mob_effect',
'stat_type', 'stat_type',
'structure_feature' 'structure_feature'
] ]
+16 -4
View File
@@ -21,8 +21,8 @@
--node-background-label: #1b1b1b; --node-background-label: #1b1b1b;
--node-background-input: #272727; --node-background-input: #272727;
--node-text: #dadada; --node-text: #dadada;
--node-selected: #9e9843; --node-selected: #ad9715;
--node-selected-border: #837d2a; --node-selected-border: #8d7a0d;
--node-add: #5a961e; --node-add: #5a961e;
--node-add-border: #3b6e0c; --node-add-border: #3b6e0c;
--node-remove: #b64023; --node-remove: #b64023;
@@ -34,7 +34,8 @@
--category-function-border: #6b6b6b; --category-function-border: #6b6b6b;
} }
.tree > .object-node > .node-body { .tree > .object-node > .node-body,
.choice-node > .object-node > .node-body {
border-left: none; border-left: none;
padding-left: 0; padding-left: 0;
} }
@@ -108,7 +109,9 @@
} }
.node-header > *:last-child, .node-header > *:last-child,
.node-header[data-error] > *:nth-last-child(2) { .node-header > input[list]:nth-last-child(2),
.node-header[data-error] > *:nth-last-child(2),
.node-header[data-error] > input[list]:nth-last-child(3) {
border-top-right-radius: 3px; border-top-right-radius: 3px;
border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
} }
@@ -213,6 +216,15 @@ button.remove::before {
margin-top: 2px; margin-top: 2px;
} }
.range-node select {
width: 20px;
}
.number-node input,
.range-node input {
width: 100px;
}
[data-category=predicate] > .node-header > label, [data-category=predicate] > .node-header > label,
[data-category=predicate] > .node-body > .node.node-header > *:first-child, [data-category=predicate] > .node-body > .node.node-header > *:first-child,
[data-category=predicate] > .node-body > .node > .node-header > *:first-child { [data-category=predicate] > .node-body > .node > .node-header > *:first-child {