diff --git a/components.html b/components.html index a40bad4f..59208530 100644 --- a/components.html +++ b/components.html @@ -123,7 +123,7 @@
- +
diff --git a/js/view.js b/js/view.js index 0646a4e0..1fd8611f 100644 --- a/js/view.js +++ b/js/view.js @@ -265,6 +265,9 @@ function generateMap(data, struct) { $el.attr('data-index', struct.id).attr('data-item-type', struct.values.type); $el.find('[data-name="1"]').attr('data-i18n', struct.translate); $el.find('[data-name="2"]').attr('data-i18n', struct.translate + '_add'); + if (struct.help) { + $el.find('.input-group').append(generateTooltip(struct.translate)); + } $input.attr('data-i18n', `[placeholder]placeholder.${struct.translatePlaceholder}`); $input.keypress((e) => {if (e.which == 13) addToMap(e.target);}); if (JSON.stringify(struct.default) === '{}') { diff --git a/locales/en.json b/locales/en.json index b028e5ab..68c4e9a9 100644 --- a/locales/en.json +++ b/locales/en.json @@ -383,6 +383,7 @@ "generator.settings.structures_add": "Add Structure", "generator.settings.structures_remove": "Remove Structure", "help.condition.time_period": "If present, time will be modulo-divided by this value. For example, if set to 24000, value will operate on a time period of days.", + "help.dimension": "The identifier used for \"/execute in\". Must be all lowercase.", "help.dimension.type.ultrawarm": "If true, water cannot exist and sponges will dry.", "help.dimension.type.shrunk": "Whether coordinates should be scaled down by a factor of 8.", "help.display": "If present, advancement will be visible in the advancement tabs.", @@ -395,6 +396,7 @@ "help.entry.type.loot_table": "Adds the contents of another loot table", "help.entry.type.sequence": "Executes child entries until the first one that can't run due to conditions", "help.entry.type.tag": "Adds the contents of an item tag", + "help.generator.settings.structures": "Not specifying a structure will cause it to spawn extremely frequently.", "help.pool.rolls": "The amount of entries that are randomly chosen", "hide_source": "Hide Source", "item.count": "Count", diff --git a/schemas/worldgen.json b/schemas/worldgen.json index e4d6f204..ec123c50 100644 --- a/schemas/worldgen.json +++ b/schemas/worldgen.json @@ -26,6 +26,7 @@ "translate": "dimension", "translatePlaceholder": "dimension", "type": "map", + "help": true, "values": { "type": "object", "value": "dimension" @@ -410,6 +411,7 @@ "translate": "generator.settings.structures", "translatePlaceholder": "structure", "type": "map", + "help": true, "default": {}, "values": { "type": "object", @@ -457,6 +459,7 @@ "translate": "generator.settings.structures", "translatePlaceholder": "structure", "type": "map", + "help": true, "default": {}, "values": { "type": "object",