mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-25 08:06:51 +00:00
Add rewards
This commit is contained in:
@@ -111,7 +111,7 @@ body[data-style="dark"] #source {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body[data-style="dark"] .form-control {
|
body[data-style="dark"] .form-control {
|
||||||
background-color: #343a40;
|
background-color: #343a40 !important;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
border-color: #24282c;
|
border-color: #24282c;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,7 @@
|
|||||||
"criteria.slots.occupied": "Slots Occupied",
|
"criteria.slots.occupied": "Slots Occupied",
|
||||||
"criteria.slots.full": "Slots Full",
|
"criteria.slots.full": "Slots Full",
|
||||||
"criteria.items": "Items",
|
"criteria.items": "Items",
|
||||||
|
"criteria.items_add": "Add Item",
|
||||||
"criteria.delta": "Delta",
|
"criteria.delta": "Delta",
|
||||||
"criteria.durability": "Durability",
|
"criteria.durability": "Durability",
|
||||||
"criteria.item": "Item",
|
"criteria.item": "Item",
|
||||||
@@ -136,6 +137,9 @@
|
|||||||
"display.title": "Title",
|
"display.title": "Title",
|
||||||
"display.description": "Description",
|
"display.description": "Description",
|
||||||
"display.frame": "Frame",
|
"display.frame": "Frame",
|
||||||
|
"display.frame.challenge": "Challenge",
|
||||||
|
"display.frame.goal": "Goal",
|
||||||
|
"display.frame.task": "Task",
|
||||||
"display.background": "Background",
|
"display.background": "Background",
|
||||||
"display.show_toast": "Show Toast",
|
"display.show_toast": "Show Toast",
|
||||||
"display.announce_to_chat": "Announce To Chat",
|
"display.announce_to_chat": "Announce To Chat",
|
||||||
@@ -303,6 +307,7 @@
|
|||||||
"item.nbt": "NBT",
|
"item.nbt": "NBT",
|
||||||
"item.potion": "Potion",
|
"item.potion": "Potion",
|
||||||
"item.tag": "Item Tag",
|
"item.tag": "Item Tag",
|
||||||
|
"item_remove": "Remove Item",
|
||||||
"location.biome": "Biome",
|
"location.biome": "Biome",
|
||||||
"location.block": "Block",
|
"location.block": "Block",
|
||||||
"location.block.block": "Block ID",
|
"location.block.block": "Block ID",
|
||||||
@@ -361,6 +366,11 @@
|
|||||||
"range.uniform": "Uniform",
|
"range.uniform": "Uniform",
|
||||||
"remove": "Remove",
|
"remove": "Remove",
|
||||||
"requirements": "Requirements",
|
"requirements": "Requirements",
|
||||||
|
"rewards": "Rewards",
|
||||||
|
"rewards.loot": "Loot Tables",
|
||||||
|
"rewards.function": "Function",
|
||||||
|
"rewards.recipes": "Recipes",
|
||||||
|
"rewards.experience": "Experience",
|
||||||
"share": "Share",
|
"share": "Share",
|
||||||
"show_source": "Show Source",
|
"show_source": "Show Source",
|
||||||
"slot.chest": "Chest",
|
"slot.chest": "Chest",
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
{
|
{
|
||||||
"id": "frame",
|
"id": "frame",
|
||||||
"translate": "display.frame",
|
"translate": "display.frame",
|
||||||
"translateValue": "",
|
"translateValue": "display.frame",
|
||||||
"type": "enum",
|
"type": "enum",
|
||||||
"unset": true,
|
"unset": true,
|
||||||
"values": [
|
"values": [
|
||||||
@@ -117,6 +117,35 @@
|
|||||||
"translate": "parent",
|
"translate": "parent",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "rewards",
|
||||||
|
"translate": "rewards",
|
||||||
|
"type": "object",
|
||||||
|
"collapse": true,
|
||||||
|
"color": "secondary",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"id": "function",
|
||||||
|
"translate": "rewards.function",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "loot",
|
||||||
|
"translate": "rewards.loot",
|
||||||
|
"type": "string-list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "recipes",
|
||||||
|
"translate": "rewards.recipes",
|
||||||
|
"type": "string-list"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "experience",
|
||||||
|
"translate": "rewards.experience",
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "criteria",
|
"id": "criteria",
|
||||||
"translate": "criteria",
|
"translate": "criteria",
|
||||||
|
|||||||
2
view.js
2
view.js
@@ -370,7 +370,7 @@ function generateArray(data, struct) {
|
|||||||
let $el = $('<div/>').addClass('mt-3');
|
let $el = $('<div/>').addClass('mt-3');
|
||||||
let child = components.find(e => e.id === struct.values);
|
let child = components.find(e => e.id === struct.values);
|
||||||
for (let i = 0; i < data.length; i += 1) {
|
for (let i = 0; i < data.length; i += 1) {
|
||||||
let {out: outValue, component: $child} = generateObject(data[i], child, {header: true});
|
let {out: outValue, component: $child} = generateComponent(data[i], child, {header: true});
|
||||||
out.push(outValue);
|
out.push(outValue);
|
||||||
$child.attr('data-index', i);
|
$child.attr('data-index', i);
|
||||||
$child.removeAttr('data-type');
|
$child.removeAttr('data-type');
|
||||||
|
|||||||
Reference in New Issue
Block a user