mirror of
https://git.stillkill.net/MinecraftLeak/Narration-NoGeneratedLevel-20170216.git
synced 2026-10-22 13:12:19 +01:00
395 lines
9.7 KiB
JSON
395 lines
9.7 KiB
JSON
/********************************************************
|
|
+* (c) Mojang. All rights reserved *
|
|
+* (c) Microsoft. All rights reserved. *
|
|
+*********************************************************/
|
|
|
|
{
|
|
"namespace": "enchanting",
|
|
|
|
"enchanting_image": {
|
|
"type": "image",
|
|
"texture": "gui/enchanting_table.png"
|
|
},
|
|
|
|
"lapis_image@enchanting_image": {
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"layer": 4,
|
|
"offset": [ 1, 1 ],
|
|
"size": [ 16, 16 ],
|
|
"uv": [ 0, 90 ],
|
|
"uv_size": [ 16, 16 ]
|
|
},
|
|
|
|
"dust_image@enchanting_image": {
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"size": [ 12, 9 ],
|
|
"uv_size": [ 13, 11 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$visibility_binding_name",
|
|
"binding_name_override": "#visible",
|
|
"binding_collection_name": "#enchant_buttons",
|
|
"binding_type": "collection"
|
|
}
|
|
]
|
|
},
|
|
|
|
"dust_image_selectable@dust_image": {
|
|
"uv": "$uvs",
|
|
"layer": 9,
|
|
"$visibility_binding_name": "#selectable_dust_is_visible"
|
|
},
|
|
|
|
"dust_image_unselectable@dust_image": {
|
|
"uv": "$uvus",
|
|
"layer": 8,
|
|
"$visibility_binding_name": "#unselectable_dust_is_visible"
|
|
},
|
|
|
|
"dust_template": {
|
|
"type": "panel",
|
|
"controls": [
|
|
{ "@dust_image_selectable": { } },
|
|
{ "@dust_image_unselectable": { } }
|
|
]
|
|
},
|
|
|
|
"dust_panel": {
|
|
"type": "grid",
|
|
"grid_dimensions": [ 1, 3 ],
|
|
"layer": 5,
|
|
"collection_name": "#enchant_buttons",
|
|
"controls": [
|
|
{
|
|
"a@dust_template": {
|
|
"grid_position": [ 0, 0 ],
|
|
"$uvs": [ 52, 2 ],
|
|
"$uvus": [ 52, 19 ]
|
|
}
|
|
},
|
|
{
|
|
"b@dust_template": {
|
|
"grid_position": [ 0, 1 ],
|
|
"$uvs": [ 68, 2 ],
|
|
"$uvus": [ 68, 19 ]
|
|
}
|
|
},
|
|
{
|
|
"c@dust_template": {
|
|
"grid_position": [ 0, 2 ],
|
|
"$uvs": [ 83, 2 ],
|
|
"$uvus": [ 83, 19 ]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"background_with_hover_text@enchanting_image": {
|
|
"controls": [
|
|
{
|
|
"hover_text@common.hover_text": {
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#hover_text",
|
|
"binding_collection_name": "#enchant_buttons",
|
|
"binding_type": "collection"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"dark_background@enchanting_image": {
|
|
"uv": [ 0, 52 ],
|
|
"uv_size": [ 108, 19 ]
|
|
},
|
|
|
|
"dark_background_with_hover_text@background_with_hover_text": {
|
|
"uv": [ 0, 52 ],
|
|
"uv_size": [ 108, 19 ]
|
|
},
|
|
|
|
"active_background@enchanting_image": {
|
|
"uv": [ 0, 33 ],
|
|
"uv_size": [ 108, 19 ]
|
|
},
|
|
|
|
"active_background_with_hover_text@background_with_hover_text": {
|
|
"uv": [ 0, 71 ],
|
|
"uv_size": [ 108, 19 ]
|
|
},
|
|
|
|
"enchant_runes": {
|
|
"type": "label",
|
|
"shadow": false,
|
|
"layer": 1,
|
|
"wrap": true,
|
|
"alignment": "top_left",
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"text": "#runes",
|
|
"offset": [ 18, 2 ],
|
|
"size": [ 84, 18 ],
|
|
"font_type": "rune",
|
|
"bindings": [
|
|
{
|
|
"binding_collection_name": "#enchant_buttons",
|
|
"binding_name": "#runes",
|
|
"binding_type": "collection"
|
|
}
|
|
]
|
|
},
|
|
|
|
"enchant_cost": {
|
|
"type": "label",
|
|
"shadow": true,
|
|
"offset": [ -2, -2 ],
|
|
"layer": 1,
|
|
"anchor_from": "bottom_right",
|
|
"anchor_to": "bottom_right",
|
|
"alignment": "bottom_right",
|
|
"text": "#cost",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#cost",
|
|
"binding_collection_name": "#enchant_buttons",
|
|
"binding_type": "collection"
|
|
}
|
|
]
|
|
},
|
|
|
|
"success_runes@enchant_runes": {
|
|
"color": [ 0.54, 0.37, 0.36, 1.0 ]
|
|
},
|
|
|
|
"fail_runes@enchant_runes": {
|
|
"color": [ 0.408, 0.368, 0.29, 1.0 ]
|
|
},
|
|
|
|
"success_cost@enchant_cost": {
|
|
"color": [ 0.5, 1.0, 0.125 ]
|
|
},
|
|
|
|
"fail_cost@enchant_cost": {
|
|
"color": [ 0.54, 0.37, 0.36 ]
|
|
},
|
|
|
|
"enchanting_label": {
|
|
"type": "label",
|
|
"size": [ 41, 7 ],
|
|
"offset": [ 12, 0 ],
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"alignment": "center",
|
|
"text": "container.enchant",
|
|
"color": [ 0.25, 0.25, 0.25, 1.0 ],
|
|
"layer": 2
|
|
},
|
|
|
|
"enchanting_grid_item": {
|
|
"type": "panel",
|
|
"size": [ 18, 18 ],
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left"
|
|
},
|
|
|
|
"base_button@common.button": {
|
|
"size": [ "100%", "100%" ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "$visibility_binding_name",
|
|
"binding_name_override": "#visible",
|
|
"binding_collection_name": "#enchant_buttons",
|
|
"binding_type": "collection"
|
|
},
|
|
{
|
|
"binding_type": "collection_details",
|
|
"binding_collection_name": "#enchant_buttons"
|
|
}
|
|
]
|
|
},
|
|
|
|
"unselectable_button@base_button": {
|
|
"$visibility_binding_name": "#unselectable_button_visibility",
|
|
"sound_volume": 0.0,
|
|
"layer": 1,
|
|
"button_mappings": [ ],
|
|
"controls": [
|
|
{ "default@dark_background": { } },
|
|
{ "hover@dark_background_with_hover_text": { } },
|
|
{ "pressed@dark_background": { } },
|
|
{ "rune_text@fail_runes": { } },
|
|
{ "enchant_cost@fail_cost": { } }
|
|
]
|
|
},
|
|
|
|
"selectable_button@base_button": {
|
|
"$visibility_binding_name": "#selectable_button_visibility",
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_select",
|
|
"to_button_id": "button.menu_ok",
|
|
"mapping_type": "pressed"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_ok",
|
|
"to_button_id": "button.menu_ok",
|
|
"mapping_type": "focused"
|
|
}
|
|
],
|
|
"controls": [
|
|
{ "default@active_background": { } },
|
|
{ "hover@active_background_with_hover_text": { } },
|
|
{ "pressed@dark_background": { } },
|
|
{ "rune_text@fail_runes": { } },
|
|
{ "enchant_cost@success_cost": { } }
|
|
]
|
|
},
|
|
|
|
"enchant_button_panel": {
|
|
"type": "panel",
|
|
"size": [ "100%", "33.333333%" ],
|
|
"layer": 7,
|
|
"controls": [
|
|
{ "@dark_background": { } },
|
|
{ "@unselectable_button": { } },
|
|
{ "@selectable_button": { } }
|
|
]
|
|
},
|
|
|
|
"enchanting_panel_top_half": {
|
|
"type": "panel",
|
|
"size": [ "100%", "50% - 12px" ],
|
|
"offset": [ 0, 7 ],
|
|
"anchor_to": "top_left",
|
|
"anchor_from": "top_left",
|
|
"controls": [
|
|
{ "@enchanting_label": { } },
|
|
{
|
|
"enchanting_book": {
|
|
"type": "custom",
|
|
"renderer": "enchanting_book_renderer",
|
|
"size": [ 40, 40 ],
|
|
"layer": 15,
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 32, 7 ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#open",
|
|
"binding_type": "global"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"item_grid": {
|
|
"type": "grid",
|
|
"grid_dimensions": [ 1, 1 ],
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 13, 14 ],
|
|
"size": [18, 18],
|
|
"collection_name": "enchanting_input_items",
|
|
"controls": [
|
|
{
|
|
"item_slot@common.container_item": {
|
|
"grid_position": [ 0, 0 ],
|
|
"$item_collection_name": "enchanting_input_items"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"lapis_grid": {
|
|
"type": "grid",
|
|
"grid_dimensions": [ 1, 1 ],
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 33, 14 ],
|
|
"size": [18, 18],
|
|
"collection_name": "enchanting_lapis_items",
|
|
"controls": [
|
|
{
|
|
"lapis@common.container_item": {
|
|
"grid_position": [ 0, 0 ],
|
|
"$cell_overlay_ref": "enchanting.lapis_image",
|
|
"$item_collection_name": "enchanting_lapis_items"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"grid_panel": {
|
|
"type": "panel",
|
|
"anchor_from": "right_middle",
|
|
"anchor_to": "right_middle",
|
|
"offset": [ -8, 2 ],
|
|
"size": [ "65%-8px", "80%+4px" ],
|
|
"controls": [
|
|
{
|
|
"indent@common.cell_image": {
|
|
"size": [ "100%+2px", "100%+2px" ]
|
|
}
|
|
},
|
|
{
|
|
"@dust_panel": {
|
|
"anchor_from": "top_left",
|
|
"anchor_to": "top_left",
|
|
"layer": 4
|
|
}
|
|
},
|
|
{
|
|
"enchantments_grid": {
|
|
"type": "grid",
|
|
"collection_name": "#enchant_buttons",
|
|
"size": [ "100%", "100%" ],
|
|
"layer": 2,
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"grid_dimensions": [ 1, 3 ],
|
|
"grid_item_template": "enchanting.enchant_button_panel"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"enchanting_screen@common.inventory_screen_common": {
|
|
"controls": [
|
|
{ "@common.screen_background": { } },
|
|
{ "@common.container_gamepad_helpers": { } },
|
|
{
|
|
"@common.root_panel": {
|
|
"layer": 1,
|
|
"controls": [
|
|
{ "@common.input_panel": { } },
|
|
{ "@common.common_panel": { } },
|
|
{
|
|
"enchanting_screen_inventory": {
|
|
"type": "panel",
|
|
"layer": 5,
|
|
"controls": [
|
|
{ "@enchanting.enchanting_panel_top_half": { } },
|
|
{ "@common.inventory_panel_bottom_half_with_label": { } },
|
|
{ "hotbar_grid@common.hotbar_grid_template": { } },
|
|
{ "@common.inventory_take_progress_icon_button": { } }
|
|
]
|
|
}
|
|
},
|
|
{ "@common.inventory_selected_icon_button": { } }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
}
|