mirror of
https://github.com/guilhermewerner/tcc
synced 2025-06-17 07:25:14 +00:00
Add minecraft bedrock server
This commit is contained in:
14
servers/bedrock/resource_packs/chemistry/ui/_ui_defs.json
vendored
Normal file
14
servers/bedrock/resource_packs/chemistry/ui/_ui_defs.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
// Alphabetical order please :)
|
||||
"ui_defs": [
|
||||
"ui/chemistry_common_pocket.json",
|
||||
"ui/compound_creator_screen.json",
|
||||
"ui/compound_creator_screen_pocket.json",
|
||||
"ui/element_constructor_screen.json",
|
||||
"ui/element_constructor_screen_pocket.json",
|
||||
"ui/lab_table_screen.json",
|
||||
"ui/lab_table_screen_pocket.json",
|
||||
"ui/material_reducer_screen.json",
|
||||
"ui/material_reducer_screen_pocket.json"
|
||||
]
|
||||
}
|
433
servers/bedrock/resource_packs/chemistry/ui/chemistry_common_pocket.json
vendored
Normal file
433
servers/bedrock/resource_packs/chemistry/ui/chemistry_common_pocket.json
vendored
Normal file
@ -0,0 +1,433 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "chem_common_pocket",
|
||||
|
||||
"output_slot_button@common.container_slot_button_prototype": {
|
||||
"button_mappings": [
|
||||
{
|
||||
"from_button_id": "button.menu_select",
|
||||
"to_button_id": "button.output_take_all_place_all",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_ok",
|
||||
"to_button_id": "button.output_take_all_place_all",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_secondary_select",
|
||||
"to_button_id": "button.output_take_one_place_one",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.controller_select",
|
||||
"to_button_id": "button.output_take_one_place_one",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_auto_place",
|
||||
"to_button_id": "button.container_auto_place",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.controller_secondary_select",
|
||||
"to_button_id": "button.container_auto_place",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_inventory_drop",
|
||||
"to_button_id": "button.drop_one",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_inventory_drop_all",
|
||||
"to_button_id": "button.drop_all",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_select",
|
||||
"to_button_id": "button.output_coalesce_stack",
|
||||
"mapping_type": "double_pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_ok",
|
||||
"to_button_id": "button.output_coalesce_stack",
|
||||
"mapping_type": "double_pressed"
|
||||
},
|
||||
{
|
||||
"to_button_id": "button.container_slot_hovered",
|
||||
"mapping_type": "pressed"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"gamepad_slash_image": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/button_slash",
|
||||
"size": [ 7, 26 ],
|
||||
"layer": 100,
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#gamepad_helper_visible",
|
||||
"binding_name_override": "#visible",
|
||||
"binding_condition": "always"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"gamepad_helper_down@common.gamepad_helper_a_14": {
|
||||
"$icon_description_bind": "#button_x_description_override"
|
||||
},
|
||||
|
||||
"gamepad_helper_left@common.gamepad_helper_x_14": {
|
||||
"$icon_description_bind": "#button_a_description"
|
||||
},
|
||||
|
||||
"container_gamepad_helpers@common.gamepad_helpers": {
|
||||
"$a_b_stack_panel_orientation|default": "horizontal",
|
||||
"$x_y_stack_panel_orientation|default": "horizontal",
|
||||
"$a_b_stack_panel_size|default": [ "100%c", "100%" ],
|
||||
"$x_y_stack_panel_size|default": [ "100%c", "100%" ],
|
||||
"controls": [
|
||||
{
|
||||
"buffer_panel_left": {
|
||||
"type": "panel",
|
||||
"size": [ 10, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"left_buttons": {
|
||||
"type": "stack_panel",
|
||||
"size": "$a_b_stack_panel_size",
|
||||
"orientation": "$a_b_stack_panel_orientation",
|
||||
"anchor_from": "left_middle",
|
||||
"anchor_to": "left_middle",
|
||||
"controls": [
|
||||
{ // Size and Offset modifications are so everything is drawn more compactly.
|
||||
"gamepad_helper_a@chem_common_pocket.gamepad_helper_down": {
|
||||
"size": [ 10, 26 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"buffer_panel2": {
|
||||
"type": "panel",
|
||||
"size": [ 9, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"slash@chem_common_pocket.gamepad_slash_image": {
|
||||
"size": [ 8, 26 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"x_wrapper": {
|
||||
"type": "panel",
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"gamepad_helper_x@chem_common_pocket.gamepad_helper_left": {
|
||||
"offset": [ -7, 0 ] // Scooting this element closer to the slash to condense the tooltips.
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"fill_panel": {
|
||||
"type": "panel",
|
||||
"size": [ "fill", 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"right_buttons": {
|
||||
"type": "stack_panel",
|
||||
"size": "$x_y_stack_panel_size",
|
||||
"orientation": "$x_y_stack_panel_orientation",
|
||||
"anchor_from": "right_middle",
|
||||
"anchor_to": "right_middle",
|
||||
"controls": [
|
||||
{ // Spacing panels to get these to line up correctly on pocket screens
|
||||
"spacing_one": {
|
||||
"type": "panel",
|
||||
"size": [ 5, 0 ]
|
||||
}
|
||||
},
|
||||
{ "gamepad_helper_b@common.gamepad_helper_b_14": {} },
|
||||
{
|
||||
"spacing_two": {
|
||||
"type": "panel",
|
||||
"size": [ 2, 0 ]
|
||||
}
|
||||
},
|
||||
{ "gamepad_helper_y@common.gamepad_helper_y_14": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"buffer_panel_right": {
|
||||
"type": "panel",
|
||||
"size": [ 10, 0 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"one_touch_button@common.container_slot_button_prototype": {
|
||||
"$take_all_place_all|default": "button.take_all_place_all", // override for tapping index slots
|
||||
"$coalesce_stack|default": "button.coalesce_stack", // override for double-tapping index slots
|
||||
"button_mappings": [
|
||||
{
|
||||
"from_button_id": "button.menu_select",
|
||||
"to_button_id": "$take_all_place_all",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_ok",
|
||||
"to_button_id": "$take_all_place_all",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_secondary_select",
|
||||
"to_button_id": "button.container_take_half_place_one",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.controller_select",
|
||||
"to_button_id": "button.container_take_half_place_one",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_auto_place",
|
||||
"to_button_id": "button.container_auto_place",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.controller_secondary_select",
|
||||
"to_button_id": "button.container_auto_place",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_inventory_drop",
|
||||
"to_button_id": "button.drop_one",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_inventory_drop_all",
|
||||
"to_button_id": "button.drop_all",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_select",
|
||||
"to_button_id": "$coalesce_stack",
|
||||
"mapping_type": "double_pressed"
|
||||
},
|
||||
{
|
||||
"from_button_id": "button.menu_ok",
|
||||
"to_button_id": "$coalesce_stack",
|
||||
"mapping_type": "double_pressed"
|
||||
},
|
||||
{
|
||||
"to_button_id": "button.shape_drawing",
|
||||
"mapping_type": "pressed"
|
||||
},
|
||||
{
|
||||
"to_button_id": "button.container_slot_hovered",
|
||||
"mapping_type": "pressed"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"hotbar": {
|
||||
"type": "panel",
|
||||
"anchor_to": "top_middle",
|
||||
"anchor_from": "bottom_middle",
|
||||
"layer": 10,
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"dialog_background_opaque@common.dialog_background_opaque": {
|
||||
"size": [ "100%c + 6px", "100%c + 6px" ],
|
||||
"controls": [
|
||||
{
|
||||
"hotbar_grid_template@common.hotbar_grid_template": {
|
||||
"offset": [ 0, -3 ],
|
||||
"size": [ 259, 28 ],
|
||||
"grid_item_template": "common.pocket_ui_container_item",
|
||||
"$item_collection_name": "hotbar_items"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"pocket_ui_container_item@common.pocket_ui_container_item": {
|
||||
"size": [ 24, 24 ],
|
||||
"$cell_image_size": [ 24, 24 ],
|
||||
"$item_renderer_panel_size": [ 20, 20 ],
|
||||
"$item_renderer_size": [ 20, 20 ]
|
||||
},
|
||||
|
||||
"inventory_grid": {
|
||||
"type": "grid",
|
||||
"grid_rescaling_type": "horizontal",
|
||||
"anchor_to": "top_left",
|
||||
"anchor_from": "top_left",
|
||||
"size": [ "100% - 16px", "default" ],
|
||||
"offset": [ 8, 2 ],
|
||||
"maximum_grid_items": 27,
|
||||
"collection_name": "inventory_items",
|
||||
"grid_item_template": "chem_common_pocket.pocket_ui_container_item",
|
||||
"$item_collection_name": "inventory_items"
|
||||
},
|
||||
|
||||
"inventory_content": {
|
||||
"type": "panel",
|
||||
"size": [ "100% - 4px", "95%" ],
|
||||
"offset": [ 4, 0 ],
|
||||
"anchor_to": "center",
|
||||
"anchor_from": "center",
|
||||
"controls": [
|
||||
{
|
||||
"scrolling_panel@common.scrolling_panel": {
|
||||
"layer": 1,
|
||||
"offset": [ 0, 19 ],
|
||||
"$scrolling_pane_size": [ "100% - 8px", "100% - 21px" ],
|
||||
"$scrolling_content": "chem_common_pocket.inventory_grid",
|
||||
"$scroll_box_mouse_image_control": "common-classic.button_state_default",
|
||||
"$scroll_size": [ "8px", "100%" ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"inventory_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "container.inventory",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
"text_alignment": "right",
|
||||
"offset": [ -8, 8 ]
|
||||
},
|
||||
|
||||
// left panel contains inventory slots //
|
||||
|
||||
"left_panel": {
|
||||
"type": "panel",
|
||||
"controls": [
|
||||
{
|
||||
"inventory_half_screen": {
|
||||
"type": "panel",
|
||||
"size": [ "49.5%", "100%" ],
|
||||
"anchor_from": "left_middle",
|
||||
"anchor_to": "left_middle",
|
||||
"controls": [
|
||||
{ "dialog_background_opaque@common.dialog_background_opaque": {} }, // Not common_panel because we don't want the 'x' button
|
||||
{ "inventory_label@chem_common_pocket.inventory_label": {} },
|
||||
{ "inventory_content@chem_common_pocket.inventory_content": {} }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"selected_item_details@common.selected_item_details": {
|
||||
"offset": [ 0, 0 ] // default offset is [ 0, -16] for some reason. We don't want this.
|
||||
},
|
||||
|
||||
// The exit button, but can easily be expanded as is done in inventory_screen_pocket
|
||||
"right_tab_navigation_panel_pocket": {
|
||||
"type": "panel",
|
||||
"size": [ 31, "100%" ],
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_left",
|
||||
"controls": [
|
||||
{
|
||||
"content": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "vertical",
|
||||
"size": [ "100% + 4px", "100%" ],
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
"controls": [
|
||||
{
|
||||
"close": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/TabRightBackTopMost",
|
||||
"size": [ "100%", 33 ],
|
||||
|
||||
"controls": [
|
||||
{
|
||||
"close_button@common.light_close_button": {
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"offset": [ 0, 0 ]
|
||||
}
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#close_button_visible",
|
||||
"binding_name_override": "#visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"fill": {
|
||||
"type": "panel",
|
||||
"size": [ "100%", "fill" ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
//this is the entire screen, with a variable to substitute different right-halves. Every other aspect should be consistent between chemistry screens.
|
||||
"screen_contents@common.root_panel": {
|
||||
"layer": 2,
|
||||
"size": [ "100% - 66px", "100% - 34px" ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"$right_panel|default": "panel@common.empty_panel", // This should be overriden when a chem_common_pocket.screen_contents is instantiated, but if it's not, nothing will crash.
|
||||
"controls": [
|
||||
{ "$right_panel": {} }, // the right side of each chemistry screen is table dependent, this will be assigned on a screen-by-screen basis.
|
||||
{ "left_panel@chem_common_pocket.left_panel": {} },
|
||||
{
|
||||
"flying_item_renderer@common.flying_item_renderer": {
|
||||
"layer": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"selected_item_details_factory@common.selected_item_details_factory": {
|
||||
"control_name": "@chem_common_pocket.selected_item_details"
|
||||
}
|
||||
},
|
||||
{ "inventory_selected_icon_button@common.inventory_selected_icon_button": {} },
|
||||
{ "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} },
|
||||
{ "hotbar@chem_common_pocket.hotbar": {} },
|
||||
{ "exit_button@chem_common_pocket.right_tab_navigation_panel_pocket": {} },
|
||||
{ "container_gamepad_helpers@chem_common_pocket.container_gamepad_helpers": {} }, // Gamepad tool tips
|
||||
{
|
||||
"binding@common.common_panel": { // This is for the gap between the left and right panel. Referred to as "binding" by the designer.
|
||||
"$dialog_background": "compcreate_pocket.dark_background",
|
||||
"size": [ "100%", "95%" ],
|
||||
"$show_close_button": false,
|
||||
"layer": -1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
199
servers/bedrock/resource_packs/chemistry/ui/compound_creator_screen.json
vendored
Normal file
199
servers/bedrock/resource_packs/chemistry/ui/compound_creator_screen.json
vendored
Normal file
@ -0,0 +1,199 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "compcreate",
|
||||
|
||||
///// Shared with Pocket Screen /////
|
||||
|
||||
// Instead of using the subscript character as is, which would use the small font,
|
||||
// we make them a regular number, but change the font size down and offset it
|
||||
"output_char@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"standard_char@edu_common.dark_label": {
|
||||
"text": "#text",
|
||||
"localize": false,
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#output_char",
|
||||
"binding_name_override": "#text",
|
||||
"binding_type": "collection",
|
||||
"binding_collection_name": "output_char_collection"
|
||||
},
|
||||
{
|
||||
"binding_name": "(not #is_subscript)",
|
||||
"binding_name_override": "#visible",
|
||||
"binding_type": "collection",
|
||||
"binding_collection_name": "output_char_collection"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"subscript_char@edu_common.dark_label": {
|
||||
"text": "#text",
|
||||
"font_size": "small",
|
||||
"offset": [ 0, 4 ],
|
||||
"localize": false,
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#output_char",
|
||||
"binding_name_override": "#text",
|
||||
"binding_type": "collection",
|
||||
"binding_collection_name": "output_char_collection"
|
||||
},
|
||||
{
|
||||
"binding_name": "#is_subscript",
|
||||
"binding_name_override": "#visible",
|
||||
"binding_type": "collection",
|
||||
"binding_collection_name": "output_char_collection"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
///// Differs from Pocket Screen /////
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "compoundcreator.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 4 ]
|
||||
},
|
||||
|
||||
"output_slot@common.container_item": {
|
||||
"$item_collection_name": "compcreate_output",
|
||||
"$button_ref": "chem_common_pocket.output_slot_button",
|
||||
"anchor_from": "right_middle",
|
||||
"anchor_to": "right_middle",
|
||||
"offset": [ -25, 0 ]
|
||||
},
|
||||
|
||||
"input_slot@common.container_item": {
|
||||
"$item_collection_name": "compcreate_input"
|
||||
},
|
||||
|
||||
"input_grid": {
|
||||
"type": "grid",
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"offset": [ -12, 0 ],
|
||||
"grid_dimensions": [ 3, 3 ],
|
||||
"grid_item_template": "compcreate.input_slot",
|
||||
"collection_name": "compcreate_input"
|
||||
},
|
||||
|
||||
"io_connector": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/dialog_indent_horiz",
|
||||
"size": [ 26.5, 6 ],
|
||||
"offset": [ 19.5, 0 ],
|
||||
"layer": 3,
|
||||
// Anchor left side of this to right side of background box
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "left_middle"
|
||||
},
|
||||
|
||||
"input_background": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/compound_background",
|
||||
"size": [ 84, 68 ],
|
||||
"offset": [ 22.5, -2 ],
|
||||
// Anchor right side of this to right side of input grid
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "right_middle"
|
||||
},
|
||||
|
||||
// Characters are each rendered separately so we can have subscripts without the whole font looking different
|
||||
"output_label": {
|
||||
"type": "stack_panel",
|
||||
"size": [ "100%c", 24 ],
|
||||
"offset": [ -30, 0 ],
|
||||
"anchor_from": "bottom_right",
|
||||
"anchor_to": "bottom_middle",
|
||||
"orientation": "horizontal",
|
||||
"factory": {
|
||||
"name": "char_factory",
|
||||
"control_name": "compcreate.output_char"
|
||||
},
|
||||
"collection_name": "output_char_collection",
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#output_char_count",
|
||||
"binding_name_override": "#collection_length"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"top_half@common.empty_panel": {
|
||||
// Offset so it starts under the title label and within the frame, and goes down to the inventory
|
||||
"offset": [ 4, 16 ],
|
||||
"size": [ "100% - 8px", 70 ],
|
||||
"layer": 2,
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"controls": [
|
||||
{ "input@compcreate.input_grid": {} },
|
||||
{ "output@compcreate.output_slot": {} },
|
||||
{ "output_label@compcreate.output_label": {} },
|
||||
{ "io@compcreate.io_connector": {} },
|
||||
{ "background@compcreate.input_background": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content": {
|
||||
"type": "panel",
|
||||
"controls": [
|
||||
{
|
||||
"root_panel@common.root_panel": {
|
||||
"layer": 1,
|
||||
"size": [ 184, 166 ],
|
||||
"controls": [
|
||||
{ "common_panel@common.common_panel": {} },
|
||||
{ "title_label@compcreate.title_label": {} },
|
||||
{ "top_half@compcreate.top_half": {} },
|
||||
{
|
||||
"inventory": {
|
||||
"type": "panel",
|
||||
"layer": 3,
|
||||
"controls": [
|
||||
{ "inventory_panel_bottom_half@common.inventory_panel_bottom_half": {} },
|
||||
{ "hotbar_grid@common.hotbar_grid_template": {} },
|
||||
{ "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "inventory_selected_icon_button@common.inventory_selected_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "container_gamepad_helpers@common.container_gamepad_helpers": {} } // Gamepad tool tips
|
||||
]
|
||||
},
|
||||
|
||||
"compound_creator@common.inventory_screen_common": {
|
||||
"$close_on_player_hurt|default": false,
|
||||
"close_on_player_hurt": "$close_on_player_hurt",
|
||||
"$screen_bg_content": "common.screen_background",
|
||||
"variables": [
|
||||
{
|
||||
"requires": "$desktop_screen",
|
||||
"$screen_content": "compcreate.content"
|
||||
},
|
||||
{
|
||||
"requires": "$pocket_screen",
|
||||
"$screen_content": "compcreate_pocket.content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
97
servers/bedrock/resource_packs/chemistry/ui/compound_creator_screen_pocket.json
vendored
Normal file
97
servers/bedrock/resource_packs/chemistry/ui/compound_creator_screen_pocket.json
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "compcreate_pocket",
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "compoundcreator.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 8 ]
|
||||
},
|
||||
|
||||
"output_slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"$item_collection_name": "compcreate_output",
|
||||
"$button_ref": "chem_common_pocket.output_slot_button",
|
||||
"offset": [ "0%", "30%" ]
|
||||
},
|
||||
|
||||
"input_slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"$item_collection_name": "compcreate_input",
|
||||
"$button_ref": "compcreate_pocket.one_touch_button"
|
||||
},
|
||||
|
||||
"one_touch_button@chem_common_pocket.one_touch_button": {
|
||||
"$take_all_place_all": "button.comp_create_take_all_place_all",
|
||||
"$coalesce_stack": "button.comp_create_coalesce_stack"
|
||||
},
|
||||
|
||||
"input_grid": {
|
||||
"type": "grid",
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"layer": 4,
|
||||
"offset": [ 0, "-10% + 2px" ],
|
||||
"grid_dimensions": [ 3, 3 ],
|
||||
"grid_item_template": "compcreate_pocket.input_slot",
|
||||
"collection_name": "compcreate_input"
|
||||
},
|
||||
|
||||
"dark_background@common.dialog_background_opaque": {
|
||||
"color": "$dark_panel_color"
|
||||
},
|
||||
|
||||
"arrow": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/arrow_down",
|
||||
"size": [ 15, 22 ],
|
||||
"offset": [ 0, "16.5%" ],
|
||||
"layer": 3
|
||||
},
|
||||
|
||||
// This is the beaker image
|
||||
"input_background": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/compound_background",
|
||||
"size": [ 111, 86 ],
|
||||
"offset": [ 0, "-10%" ],
|
||||
"layer": 3
|
||||
},
|
||||
|
||||
// right panel contains compound creator specific functional elements //
|
||||
|
||||
"right_panel@common.empty_panel": {
|
||||
"size": [ "49.5%", "100%" ],
|
||||
"layer": 2,
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
"controls": [
|
||||
{ "title_label@compcreate_pocket.title_label": {} },
|
||||
{ "dialog_background_opaque@common.dialog_background_opaque": {} },
|
||||
{ "input@compcreate_pocket.input_grid": {} },
|
||||
{ "output@compcreate_pocket.output_slot": {} },
|
||||
{
|
||||
"output_label@compcreate.output_label": {
|
||||
"layer": 100,
|
||||
"offset": [ 0, 0 ], // Don't need the offset that the desktop version does.
|
||||
"$text_alignment": "center",
|
||||
"anchor_from": "bottom_middle",
|
||||
"anchor_to": "bottom_middle"
|
||||
}
|
||||
},
|
||||
{ "arrow@compcreate_pocket.arrow": {} },
|
||||
{ "background@compcreate_pocket.input_background": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content@chem_common_pocket.screen_contents": {
|
||||
"$right_panel": "right_panel@compcreate_pocket.right_panel"
|
||||
}
|
||||
}
|
422
servers/bedrock/resource_packs/chemistry/ui/element_constructor_screen.json
vendored
Normal file
422
servers/bedrock/resource_packs/chemistry/ui/element_constructor_screen.json
vendored
Normal file
@ -0,0 +1,422 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "elemconstruct",
|
||||
|
||||
///// Shared with Pocket Screen /////
|
||||
|
||||
"particle_count@common.text_edit_box": {
|
||||
"size": [ 24, 20 ],
|
||||
"$text_edit_box_content_binding_name": "$particle_count_bind_name",
|
||||
"$text_alignment": "center",
|
||||
"max_length": 3,
|
||||
"$wrap": false,
|
||||
"text_type": "NumberChars",
|
||||
|
||||
"$focus_override_up": "FOCUS_OVERRIDE_STOP"
|
||||
},
|
||||
|
||||
"chemistry_slider_button_hover_layout@common.slider_button_hover_layout": {
|
||||
"texture": "textures/ui/chemistry_slider_button_default"
|
||||
},
|
||||
|
||||
"slider_background": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/slider_background"
|
||||
},
|
||||
|
||||
"slider_background_hover@elemconstruct.slider_background": {
|
||||
"texture": "textures/ui/chemistry_slider_background_hover"
|
||||
},
|
||||
|
||||
"bohr_model@common.cell_image": {
|
||||
"size": [ 110, "100%" ],
|
||||
"controls": [
|
||||
{
|
||||
"model": {
|
||||
"type": "custom",
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"layer": 2,
|
||||
"offset": [ 2, 2 ],
|
||||
"size": [ "100% - 4px", "100% - 4px" ],
|
||||
"renderer": "bohr_model_renderer",
|
||||
// Bind used to fill the property bag
|
||||
"bindings": [
|
||||
{
|
||||
"binding_type": "global",
|
||||
// Binding itself doesn't do anything, but the callback is used to fill the property bag
|
||||
"binding_name": "#bohr_model_update"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
///// Differs from Pocket Screen /////
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "elementconstructor.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 4 ]
|
||||
},
|
||||
|
||||
"particle_label": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "horizontal",
|
||||
"size": [ 18, 15 ],
|
||||
"controls": [
|
||||
{
|
||||
"pad@common.empty_panel": {
|
||||
"size": [ 2, 2 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label@edu_common.dark_label": {
|
||||
"text": "$particle_label"
|
||||
}
|
||||
},
|
||||
{
|
||||
"wrap@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"icon": {
|
||||
"type": "image",
|
||||
"texture": "$particle_icon",
|
||||
"size": [ 8, 8 ],
|
||||
"offset": [ 0, 1 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
// Use our own white progress since we're going to tint it with a color
|
||||
"slider_progress": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/white_slider_progress",
|
||||
"color": "$slider_progress_color"
|
||||
},
|
||||
|
||||
"slider_progress_hover@elemconstruct.slider_progress": {},
|
||||
|
||||
"slider_bar_default@common.slider_bar_default": {
|
||||
// Extend by knob size so knob is always contained in track even at value extremes
|
||||
"size": [ "100%", "100% + 10px" ],
|
||||
"$background_control": "elemconstruct.slider_background",
|
||||
"$progress_control": "elemconstruct.slider_progress"
|
||||
},
|
||||
|
||||
"slider_bar_hover@common.slider_bar_hover": {
|
||||
// Extend by knob size so knob is always contained in track even at value extremes
|
||||
"size": [ "100%", "100% + 10px" ],
|
||||
"$background_control": "elemconstruct.slider_background_hover",
|
||||
"$progress_control": "elemconstruct.slider_progress_hover"
|
||||
},
|
||||
|
||||
"particle_slider@common.empty_panel": {
|
||||
"size": [ 24, "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"slider@common.slider": {
|
||||
"size": [ 12, 128 ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"$slider_direction": "vertical",
|
||||
"slider_inverted": true,
|
||||
"$progress_clip_direction": "down",
|
||||
"$slider_tts_header": "$particle_label",
|
||||
"$slider_tts_text_value": "$particle_count_bind_name",
|
||||
|
||||
// Override base controls so I can make the track contain the knob, even at min and max values
|
||||
"controls": [
|
||||
{
|
||||
"slider_box@common.slider_box": {
|
||||
"$slider_box_layout": "$slider_box_layout",
|
||||
"$slider_box_size": [ 16, 10 ],
|
||||
"$slider_track_button": "$slider_name",
|
||||
"$slider_box_hover_layout": "elemconstruct.chemistry_slider_button_hover_layout"
|
||||
}
|
||||
},
|
||||
{
|
||||
"slider_bar_default@elemconstruct.slider_bar_default": {}
|
||||
},
|
||||
{
|
||||
"slider_bar_hover@elemconstruct.slider_bar_hover": {
|
||||
"visible": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"particle_slider_plus@common.empty_panel": {
|
||||
"size": [ 24, "100%c + 5px" ],
|
||||
"controls": [
|
||||
{
|
||||
"button@common_buttons.light_text_button": {
|
||||
"size": [ 12, 12 ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"$pressed_button_name": "$plus_button_name",
|
||||
"$button_text": "+",
|
||||
|
||||
"$focus_id_binding_type": "none",
|
||||
"$focus_id": "$plus_focus_id",
|
||||
|
||||
"$focus_override_right_binding_type": "none",
|
||||
"$focus_override_right": "$plus_focus_override_right",
|
||||
|
||||
"$focus_override_left_binding_type": "none",
|
||||
"$focus_override_left": "$plus_focus_override_left"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"particle_slider_minus@common.empty_panel": {
|
||||
"size": [ 24, "100%c + 5px" ],
|
||||
"controls": [
|
||||
{
|
||||
"button@common_buttons.light_text_button": {
|
||||
"size": [ 12, 12 ],
|
||||
"anchor_from": "bottom_middle",
|
||||
"anchor_to": "bottom_middle",
|
||||
"$pressed_button_name": "$minus_button_name",
|
||||
"$button_text": "-",
|
||||
|
||||
"$focus_override_down_binding_type": "none",
|
||||
"$focus_override_down": "FOCUS_OVERRIDE_STOP"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"particle": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "vertical",
|
||||
"size": [ 24, "100%c" ],
|
||||
"controls": [
|
||||
{ "label@elemconstruct.particle_label": {} },
|
||||
{ "count@elemconstruct.particle_count": {} },
|
||||
{ "p0@common.empty_panel": { "size": [ 2, 2 ] } },
|
||||
{ "plus@elemconstruct.particle_slider_plus": {} },
|
||||
{ "slider@elemconstruct.particle_slider": {} },
|
||||
{ "minus@elemconstruct.particle_slider_minus": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"particle_panel": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "horizontal",
|
||||
// Size and offset so it's on the bottom left within the frame, under the title
|
||||
"size": [ "100%c", "100% - 20px" ],
|
||||
"offset": [ 4, 16 ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"layer": 2,
|
||||
"controls": [
|
||||
{
|
||||
"protons@elemconstruct.particle": {
|
||||
"$particle_label": "p",
|
||||
"$particle_icon": "textures/ui/proton",
|
||||
"$particle_count_bind_name": "#proton_label_count",
|
||||
"$plus_button_name": "button.proton_plus",
|
||||
"$minus_button_name": "button.proton_minus",
|
||||
"$slider_value_binding_name": "#proton_slider_count",
|
||||
"$slider_name": "proton_slider",
|
||||
"$slider_progress_color": "$proton_color",
|
||||
"$text_box_name": "proton_text_edit",
|
||||
|
||||
"$plus_focus_id": "protons_plus",
|
||||
|
||||
"$plus_focus_override_right": "electrons_plus",
|
||||
"$plus_focus_override_left": "FOCUS_OVERRIDE_STOP",
|
||||
|
||||
"$focus_override_left": "FOCUS_OVERRIDE_STOP"
|
||||
}
|
||||
},
|
||||
{ "p0@common.empty_panel": { "size": [ 2, 2 ] } },
|
||||
{
|
||||
"electrons@elemconstruct.particle": {
|
||||
"$particle_label": "e",
|
||||
"$particle_icon": "textures/ui/electron",
|
||||
"$particle_count_bind_name": "#electron_label_count",
|
||||
"$plus_button_name": "button.electron_plus",
|
||||
"$minus_button_name": "button.electron_minus",
|
||||
"$slider_value_binding_name": "#electron_slider_count",
|
||||
"$slider_name": "electron_slider",
|
||||
"$slider_progress_color": "$electron_color",
|
||||
"$text_box_name": "electron_text_edit",
|
||||
|
||||
"$plus_focus_id": "electrons_plus",
|
||||
|
||||
"$plus_focus_override_right": "neutrons_plus",
|
||||
"$plus_focus_override_left": "protons_plus"
|
||||
}
|
||||
},
|
||||
{ "p1@common.empty_panel": { "size": [ 2, 2 ] } },
|
||||
{
|
||||
"neutrons@elemconstruct.particle": {
|
||||
"$particle_label": "n",
|
||||
"$particle_icon": "textures/ui/neutron",
|
||||
"$particle_count_bind_name": "#neutron_label_count",
|
||||
"$plus_button_name": "button.neutron_plus",
|
||||
"$minus_button_name": "button.neutron_minus",
|
||||
"$slider_value_binding_name": "#neutron_slider_count",
|
||||
"$slider_name": "neutron_slider",
|
||||
"$slider_progress_color": "$neutron_color",
|
||||
"$text_box_name": "neutron_text_edit",
|
||||
|
||||
"$plus_focus_id": "neutrons_plus",
|
||||
|
||||
"$plus_focus_override_right": "",
|
||||
"$plus_focus_override_left": "electrons_plus"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"output_panel@common.empty_panel": {
|
||||
"size": [ 52, "100%" ],
|
||||
"controls": [
|
||||
{
|
||||
"element_icon": {
|
||||
"type": "image",
|
||||
"size": [ 50, 50 ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"texture": "textures/ui/microscope"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arrow_to_output": {
|
||||
"type": "image",
|
||||
"size": [ 17, 4 ],
|
||||
"offset": [ -1, 25 ],
|
||||
"layer": 4,
|
||||
"anchor_from": "left_middle",
|
||||
"anchor_to": "left_middle",
|
||||
"texture": "textures/ui/dialog_indent_horiz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"output_slot@common.empty_panel": {
|
||||
"$slot_size": [ 24, 24 ],
|
||||
"size": "$slot_size",
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"offset": [ 1, 25 ],
|
||||
"controls": [
|
||||
{
|
||||
"slot@common.container_item": {
|
||||
"$item_collection_name": "elemconstruct_output",
|
||||
"size": "$slot_size",
|
||||
"$cell_image_size": "$slot_size",
|
||||
"$button_ref": "chem_common_pocket.output_slot_button",
|
||||
"layer": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"placeholder_icon": {
|
||||
"type": "image",
|
||||
"size": [ 16, 16 ],
|
||||
"layer": 4,
|
||||
"texture": "textures/ui/placeholder_element"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
// Top right portion of the screen with Bohr model, result slot, and decorations
|
||||
"result_panel": {
|
||||
"type": "stack_panel",
|
||||
"layer": 2,
|
||||
"orientation": "horizontal",
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
// Take up entire top right, lining up top with top of slider labels and left/right with inventory
|
||||
"size": [ 162, 110 ],
|
||||
"offset": [ -5, 18 ],
|
||||
"controls": [
|
||||
{ "bohr_model@elemconstruct.bohr_model": {} },
|
||||
{ "output@elemconstruct.output_panel": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"inventory_panel": {
|
||||
"type": "panel",
|
||||
"layer": 2,
|
||||
"controls": [
|
||||
{
|
||||
"inventory@common.inventory_panel": {
|
||||
"size": [ 162, 54 ],
|
||||
"offset": [ -5, 0 ],
|
||||
"anchor_from": "bottom_right",
|
||||
"anchor_to": "bottom_right"
|
||||
}
|
||||
},
|
||||
{
|
||||
"hotbar@common.hotbar_grid_template": {
|
||||
"anchor_from": "bottom_right",
|
||||
"anchor_to": "bottom_right",
|
||||
"offset": [ -5, -5 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"content": {
|
||||
"type": "panel",
|
||||
"controls": [
|
||||
{
|
||||
"root_panel@common.root_panel": {
|
||||
"layer": 1,
|
||||
"size": [ 250, 220 ],
|
||||
"controls": [
|
||||
{ "common_panel@common.common_panel": {} },
|
||||
{ "title_label@elemconstruct.title_label": {} },
|
||||
{ "particle_panel@elemconstruct.particle_panel": {} },
|
||||
{ "result_panel@elemconstruct.result_panel": {} },
|
||||
{ "inventory@elemconstruct.inventory_panel": {} },
|
||||
{ "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} },
|
||||
{ "inventory_selected_icon_button@common.inventory_selected_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "container_gamepad_helpers@common.container_gamepad_helpers": {} } // Gamepad tool tips
|
||||
]
|
||||
},
|
||||
|
||||
"element_constructor@common.inventory_screen_common": {
|
||||
"$close_on_player_hurt|default": false,
|
||||
"close_on_player_hurt": "$close_on_player_hurt",
|
||||
"$screen_bg_content": "common.screen_background",
|
||||
"variables": [
|
||||
{
|
||||
"requires": "$desktop_screen",
|
||||
"$screen_content": "elemconstruct.content"
|
||||
},
|
||||
{
|
||||
"requires": "$pocket_screen",
|
||||
"$screen_content": "elemconstruct_pocket.content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
295
servers/bedrock/resource_packs/chemistry/ui/element_constructor_screen_pocket.json
vendored
Normal file
295
servers/bedrock/resource_packs/chemistry/ui/element_constructor_screen_pocket.json
vendored
Normal file
@ -0,0 +1,295 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "elemconstruct_pocket",
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "elementconstructor.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 8 ]
|
||||
},
|
||||
|
||||
"particle_label@common.empty_panel": {
|
||||
"size": [ 18, "100%c" ],
|
||||
"offset": [ 15, 5 ],
|
||||
"controls": [
|
||||
{
|
||||
"label@edu_common.dark_label": {
|
||||
"text": "$particle_label"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"slider_progress_hover@elemconstruct.slider_progress": {},
|
||||
|
||||
"slider_bar_default@common.slider_bar_default": {
|
||||
// Extend by knob size so knob is always contained in track even at value extremes
|
||||
"size": [ "100% + 10px", "100% + 10px" ],
|
||||
"$background_control": "elemconstruct.slider_background",
|
||||
"$progress_control": "elemconstruct.slider_progress"
|
||||
},
|
||||
|
||||
"slider_bar_hover@common.slider_bar_hover": {
|
||||
// Extend by knob size so knob is always contained in track even at value extremes
|
||||
"size": [ "100% + 10px", "100% + 10px" ],
|
||||
"$background_control": "elemconstruct.slider_background_hover",
|
||||
"$progress_control": "elemconstruct_pocket.slider_progress_hover",
|
||||
"visible": false
|
||||
},
|
||||
|
||||
"particle_slider@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"offset": [ 4.5, 10 ],
|
||||
"controls": [
|
||||
{
|
||||
"slider@common.slider": {
|
||||
"size": [ 23, 4 ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"$slider_tts_header": "$particle_label",
|
||||
"$slider_tts_text_value": "$particle_count_bind_name",
|
||||
|
||||
// Override base controls so I can make the track contain the knob, even at min and max values
|
||||
"controls": [
|
||||
{
|
||||
"slider_box@common.slider_box": {
|
||||
"$slider_box_layout": "$slider_box_layout",
|
||||
"$slider_box_size": [ 10, 24 ],
|
||||
"$slider_track_button": "$slider_name",
|
||||
"$slider_box_hover_layout": "elemconstruct.chemistry_slider_button_hover_layout"
|
||||
}
|
||||
},
|
||||
{ "slider_bar_default@elemconstruct_pocket.slider_bar_default": {} },
|
||||
{ "slider_bar_hover@elemconstruct_pocket.slider_bar_hover": {} }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"particle_slider_plus@common_buttons.light_text_button": {
|
||||
"size": [ 24, 24 ],
|
||||
"offset": [ 9, 0 ],
|
||||
"anchor_from": "right_middle",
|
||||
"anchor_to": "right_middle",
|
||||
"$pressed_button_name": "$plus_button_name",
|
||||
"$button_text": "+"
|
||||
},
|
||||
|
||||
"particle_slider_minus@common_buttons.light_text_button": {
|
||||
"size": [ 24, 24 ],
|
||||
"anchor_from": "bottom_middle",
|
||||
"anchor_to": "bottom_middle",
|
||||
"$pressed_button_name": "$minus_button_name",
|
||||
"$button_text": "-"
|
||||
},
|
||||
|
||||
"particle": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "horizontal",
|
||||
"size": [ "100%c", 30 ],
|
||||
// This stack panel is sort of ugly with offsets, but they're needed because we're shuffling around
|
||||
"controls": [
|
||||
{
|
||||
"minus@elemconstruct_pocket.particle_slider_minus": {}
|
||||
},
|
||||
{
|
||||
"slider@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{ "slider@elemconstruct_pocket.particle_slider": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"plus@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{ "plus@elemconstruct_pocket.particle_slider_plus": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{ "label@elemconstruct_pocket.particle_label": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"count@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"count@elemconstruct.particle_count": {
|
||||
// Changing only these properties, so using the non-pocket element.
|
||||
"offset": [ 13, 0 ],
|
||||
"size": [ 24, 24 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"particle_panel": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "vertical",
|
||||
"size": [ 130, "30%" ],
|
||||
"offset": [ 2, 45 ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"layer": 2,
|
||||
"controls": [
|
||||
{
|
||||
"protons@elemconstruct_pocket.particle": {
|
||||
"$particle_label": "p",
|
||||
"$particle_count_bind_name": "#proton_label_count",
|
||||
"$plus_button_name": "button.proton_plus",
|
||||
"$minus_button_name": "button.proton_minus",
|
||||
"$slider_value_binding_name": "#proton_slider_count",
|
||||
"$slider_name": "proton_slider",
|
||||
"$slider_progress_color": "$proton_color",
|
||||
"$text_box_name": "proton_text_edit"
|
||||
}
|
||||
},
|
||||
{
|
||||
"electrons@elemconstruct_pocket.particle": {
|
||||
"$particle_label": "e",
|
||||
"$particle_count_bind_name": "#electron_label_count",
|
||||
"$plus_button_name": "button.electron_plus",
|
||||
"$minus_button_name": "button.electron_minus",
|
||||
"$slider_value_binding_name": "#electron_slider_count",
|
||||
"$slider_name": "electron_slider",
|
||||
"$slider_progress_color": "$electron_color",
|
||||
"$text_box_name": "electron_text_edit"
|
||||
}
|
||||
},
|
||||
{
|
||||
"neutrons@elemconstruct_pocket.particle": {
|
||||
"$particle_label": "n",
|
||||
"$particle_count_bind_name": "#neutron_label_count",
|
||||
"$plus_button_name": "button.neutron_plus",
|
||||
"$minus_button_name": "button.neutron_minus",
|
||||
"$slider_value_binding_name": "#neutron_slider_count",
|
||||
"$slider_name": "neutron_slider",
|
||||
"$slider_progress_color": "$neutron_color",
|
||||
"$text_box_name": "neutron_text_edit"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"output_panel@common.empty_panel": {
|
||||
"size": [ "100%", "100%" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"controls": [
|
||||
{
|
||||
"element_icon": {
|
||||
"type": "image",
|
||||
"size": [ 50, 50 ],
|
||||
"offset": [ 7, -10 ],
|
||||
"anchor_from": "left_middle",
|
||||
"anchor_to": "left_middle",
|
||||
"texture": "textures/ui/microscope"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arrow_to_output": {
|
||||
"type": "image",
|
||||
"size": [ 24, 4 ],
|
||||
"offset": [ 5, -10 ],
|
||||
"layer": 4,
|
||||
"anchor_from": "bottom_left",
|
||||
"anchor_to": "bottom_left",
|
||||
"texture": "textures/ui/dialog_indent_horiz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"output_slot@common.empty_panel": {
|
||||
"$slot_size": [ 24, 24 ],
|
||||
"size": "$slot_size",
|
||||
"anchor_from": "bottom_left",
|
||||
"anchor_to": "bottom_left",
|
||||
"offset": [ 28, 0 ],
|
||||
"controls": [
|
||||
{
|
||||
"slot@common.pocket_ui_container_item": {
|
||||
"$item_collection_name": "elemconstruct_output",
|
||||
"size": "$slot_size",
|
||||
"$cell_image_size": "$slot_size",
|
||||
"$item_renderer_size": [ 20, 20 ],
|
||||
"$button_ref": "chem_common_pocket.output_slot_button",
|
||||
"layer": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"placeholder_icon": {
|
||||
"type": "image",
|
||||
"size": [ 16, 16 ],
|
||||
"layer": 4,
|
||||
"texture": "textures/ui/placeholder_element"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
// Top right portion of the screen with Bohr model, result slot, and decorations
|
||||
"result_panel": {
|
||||
"type": "stack_panel",
|
||||
"layer": 2,
|
||||
"orientation": "horizontal",
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
// Take up entire top right, lining up top with top of slider labels and left/right with inventory
|
||||
"size": [ 130, 90 ],
|
||||
"offset": [ -4, 23 ],
|
||||
"controls": [
|
||||
{
|
||||
"bohr@common.empty_panel": {
|
||||
"size": [ "100%c", "100%c" ],
|
||||
"controls": [
|
||||
{
|
||||
"bohr_model@elemconstruct.bohr_model": {
|
||||
"size": [ 80, 80 ],
|
||||
"offset": [ 6, 10 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "output@elemconstruct_pocket.output_panel": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"right_panel@common.empty_panel": {
|
||||
"size": [ "49.5%", "100%" ],
|
||||
"layer": 2,
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
"controls": [
|
||||
{ "dialog_background_opaque@common.dialog_background_opaque": {} },
|
||||
{ "title_label@elemconstruct_pocket.title_label": {} },
|
||||
{ "particle_panel@elemconstruct_pocket.particle_panel": {} },
|
||||
{ "result_panel@elemconstruct_pocket.result_panel": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content@chem_common_pocket.screen_contents": {
|
||||
"$right_panel": "right_panel@elemconstruct_pocket.right_panel"
|
||||
}
|
||||
}
|
219
servers/bedrock/resource_packs/chemistry/ui/lab_table_screen.json
vendored
Normal file
219
servers/bedrock/resource_packs/chemistry/ui/lab_table_screen.json
vendored
Normal file
@ -0,0 +1,219 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "labtable",
|
||||
|
||||
///// Shared with Pocket Screen /////
|
||||
|
||||
"jar_animation": {
|
||||
"anim_type": "flip_book",
|
||||
"initial_uv": [ 0, 0 ],
|
||||
"frame_count": 29,
|
||||
"frame_step": 45,
|
||||
"fps": 10,
|
||||
"easing": "linear"
|
||||
},
|
||||
|
||||
"beaker_animation": {
|
||||
"anim_type": "flip_book",
|
||||
"initial_uv": [ 0, 0 ],
|
||||
"frame_count": 17,
|
||||
"frame_step": 45,
|
||||
"fps": 10,
|
||||
"easing": "linear"
|
||||
},
|
||||
|
||||
"flask_animation": {
|
||||
"anim_type": "flip_book",
|
||||
"initial_uv": [ 0, 0 ],
|
||||
"frame_count": 21,
|
||||
"frame_step": 45,
|
||||
"fps": 10,
|
||||
"easing": "linear"
|
||||
},
|
||||
|
||||
"tool@common.empty_panel": {
|
||||
"size": [ "100%c + 5px", "100%c" ],
|
||||
"$image_offset|default": [ 0, 0 ],
|
||||
"controls": [
|
||||
{
|
||||
"active": {
|
||||
"type": "image",
|
||||
"texture": "$active_texture",
|
||||
"size": "$image_size",
|
||||
"offset": "$image_offset",
|
||||
"uv": "$active_animation",
|
||||
"uv_size": [ 45, 45 ],
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "$active_binding",
|
||||
"binding_name_override": "#visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"default": {
|
||||
"type": "image",
|
||||
"texture": "$default_texture",
|
||||
"size": "$image_size",
|
||||
"offset": "$image_offset",
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "(not $active_binding)",
|
||||
"binding_name_override": "#visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
///// Differs from Pocket Screen /////
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "labtable.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 4 ]
|
||||
},
|
||||
|
||||
"input_slot@common.container_item": {
|
||||
"$item_collection_name": "labtable_input"
|
||||
},
|
||||
|
||||
"input_grid": {
|
||||
"type": "grid",
|
||||
"size": [ "100%", 18 ],
|
||||
"grid_dimensions": [ 9, 1 ],
|
||||
"grid_item_template": "labtable.input_slot",
|
||||
"collection_name": "labtable_input"
|
||||
},
|
||||
|
||||
"tools_panel": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "horizontal",
|
||||
"size": [ "100%c", 50 ],
|
||||
"controls": [
|
||||
{
|
||||
"beaker@labtable.tool": {
|
||||
"$image_size": [ 45, 45 ],
|
||||
"$active_texture": "textures/ui/beaker_active",
|
||||
"$default_texture": "textures/ui/beaker_default",
|
||||
"$active_animation": "@labtable.beaker_animation",
|
||||
"$active_binding": "#beaker_active"
|
||||
}
|
||||
},
|
||||
{
|
||||
"flask@labtable.tool": {
|
||||
"$image_size": [ 45, 45 ],
|
||||
"$active_texture": "textures/ui/flask_active",
|
||||
"$active_animation": "@labtable.flask_animation",
|
||||
"$default_texture": "textures/ui/flask_default",
|
||||
"$active_binding": "#flask_active"
|
||||
}
|
||||
},
|
||||
{
|
||||
"jar@labtable.tool": {
|
||||
"$image_size": [ 45, 45 ],
|
||||
"$image_offset": [ 5, 0 ],
|
||||
"$active_texture": "textures/ui/jar_active",
|
||||
"$active_animation": "@labtable.jar_animation",
|
||||
"$default_texture": "textures/ui/jar_default",
|
||||
"$active_binding": "#jar_active"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"combine_button@common.empty_panel": {
|
||||
"size": [ "100%", 20 ],
|
||||
"controls": [
|
||||
{
|
||||
"button@common_buttons.light_text_button": {
|
||||
"size": [ 100, 14 ],
|
||||
"anchor_from": "bottom_middle",
|
||||
"anchor_to": "bottom_middle",
|
||||
"$button_text": "labtable.combine",
|
||||
"$pressed_button_name": "button.combine"
|
||||
}
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#combine_enabled",
|
||||
"binding_name_override": "#enabled"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"top_half": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "vertical",
|
||||
// Offset so it starts under the title label and within the frame, and goes down to the inventory
|
||||
"offset": [ 4, 14 ],
|
||||
"size": [ "100% - 8px", 95 ],
|
||||
"layer": 2,
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"controls": [
|
||||
{ "tools@labtable.tools_panel": {} },
|
||||
{ "pa@common.empty_panel": { "size": [ 1, 4 ] } },
|
||||
{ "input@labtable.input_grid": {} },
|
||||
{ "combine@labtable.combine_button": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content": {
|
||||
"type": "panel",
|
||||
"controls": [
|
||||
{
|
||||
"root_panel@common.root_panel": {
|
||||
"layer": 1,
|
||||
"size": [ 176, 200 ],
|
||||
"controls": [
|
||||
{ "common_panel@common.common_panel": {} },
|
||||
{ "title_label@labtable.title_label": {} },
|
||||
{ "top_half@labtable.top_half": {} },
|
||||
{
|
||||
"inventory": {
|
||||
"type": "panel",
|
||||
"layer": 3,
|
||||
"controls": [
|
||||
{ "inventory_panel_bottom_half@common.inventory_panel_bottom_half_with_label": {} },
|
||||
{ "hotbar_grid@common.hotbar_grid_template": {} },
|
||||
{ "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "inventory_selected_icon_button@common.inventory_selected_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "container_gamepad_helpers@common.container_gamepad_helpers": {} } // Gamepad tool tips
|
||||
]
|
||||
},
|
||||
|
||||
"lab_table@common.inventory_screen_common": {
|
||||
"$close_on_player_hurt|default": false,
|
||||
"close_on_player_hurt": "$close_on_player_hurt",
|
||||
"$screen_bg_content": "common.screen_background",
|
||||
|
||||
"variables": [
|
||||
{
|
||||
"requires": "$desktop_screen",
|
||||
"$screen_content": "labtable.content"
|
||||
},
|
||||
{
|
||||
"requires": "$pocket_screen",
|
||||
"$screen_content": "labtable_pocket.content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
188
servers/bedrock/resource_packs/chemistry/ui/lab_table_screen_pocket.json
vendored
Normal file
188
servers/bedrock/resource_packs/chemistry/ui/lab_table_screen_pocket.json
vendored
Normal file
@ -0,0 +1,188 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "labtable_pocket",
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "labtable.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 8 ]
|
||||
},
|
||||
|
||||
"input_slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"$item_collection_name": "compcreate_input",
|
||||
"$button_ref": "labtable_pocket.one_touch_button"
|
||||
},
|
||||
|
||||
"one_touch_button@chem_common_pocket.one_touch_button": {
|
||||
"$take_all_place_all": "button.labtable_take_all_place_all",
|
||||
"$coalesce_stack": "button.labtable_coalesce_stack"
|
||||
},
|
||||
|
||||
"tools_panel": {
|
||||
"type": "stack_panel",
|
||||
"orientation": "horizontal",
|
||||
"size": [ "100%c", 50 ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"controls": [
|
||||
{
|
||||
"beaker@labtable.tool": {
|
||||
"$image_size": [ 45, 45 ],
|
||||
"$active_texture": "textures/ui/beaker_active",
|
||||
"$default_texture": "textures/ui/beaker_default",
|
||||
"$active_animation": "@labtable.beaker_animation",
|
||||
"$active_binding": "#beaker_active"
|
||||
}
|
||||
},
|
||||
{
|
||||
"flask@labtable.tool": {
|
||||
"$image_offset": [ -8, 0 ],
|
||||
"$image_size": [ 45, 45 ],
|
||||
"$active_texture": "textures/ui/flask_active",
|
||||
"$active_animation": "@labtable.flask_animation",
|
||||
"$default_texture": "textures/ui/flask_default",
|
||||
"$active_binding": "#flask_active"
|
||||
}
|
||||
},
|
||||
{
|
||||
"jar@labtable.tool": {
|
||||
"$image_offset": [ -8, 0 ],
|
||||
"$image_size": [ 45, 45 ],
|
||||
"$active_texture": "textures/ui/jar_active",
|
||||
"$active_animation": "@labtable.jar_animation",
|
||||
"$default_texture": "textures/ui/jar_default",
|
||||
"$active_binding": "#jar_active"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"input_item": {
|
||||
"type": "panel",
|
||||
"grid_position": "$grid_position",
|
||||
"size": [ 24, 24 ],
|
||||
"controls": [
|
||||
{
|
||||
"input_slot@labtable_pocket.input_slot": {
|
||||
"$offset|default": [ 0, 0 ],
|
||||
"offset": "$offset",
|
||||
"$item_collection_name": "labtable_input",
|
||||
"$item_renderer_size": [ 20, 20 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"input_grid": {
|
||||
"type": "grid",
|
||||
"size": [ 130, 54 ],
|
||||
"grid_dimensions": [ 5, 2 ],
|
||||
"offset": [ 0, 15 ],
|
||||
"collection_name": "labtable_input",
|
||||
"controls": [
|
||||
{
|
||||
"a@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 0, 0 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"b@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 1, 0 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"c@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 2, 0 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"d@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 3, 0 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"z@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 4, 0 ],
|
||||
"$offset": [ 0, 27 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"f@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 0, 1 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"g@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 1, 1 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"h@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 2, 1 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"i@labtable_pocket.input_item": {
|
||||
"$grid_position": [ 3, 1 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"combine_button@common.empty_panel": {
|
||||
"size": [ "100%", 20 ],
|
||||
"controls": [
|
||||
{
|
||||
"button@common_buttons.light_text_button": {
|
||||
"size": [ 120, 28 ],
|
||||
"offset": [ 0, 50 ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "top_middle",
|
||||
"$button_text": "labtable.combine",
|
||||
"$pressed_button_name": "button.combine"
|
||||
}
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#combine_enabled",
|
||||
"binding_name_override": "#enabled"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"right_panel@common.empty_panel": {
|
||||
"size": [ "49.5%", "100%" ],
|
||||
"layer": 2,
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
"controls": [
|
||||
{ "title_label@labtable_pocket.title_label": {} },
|
||||
{ "dialog_background_opaque@common.dialog_background_opaque": {} },
|
||||
{
|
||||
"tools@labtable_pocket.tools_panel": {
|
||||
"layer": 2,
|
||||
"offset": [ 0, -40 ]
|
||||
}
|
||||
},
|
||||
{ "input@labtable_pocket.input_grid": {} },
|
||||
{ "combine@labtable_pocket.combine_button": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content@chem_common_pocket.screen_contents": {
|
||||
"$right_panel": "right_panel@labtable_pocket.right_panel"
|
||||
}
|
||||
}
|
217
servers/bedrock/resource_packs/chemistry/ui/material_reducer_screen.json
vendored
Normal file
217
servers/bedrock/resource_packs/chemistry/ui/material_reducer_screen.json
vendored
Normal file
@ -0,0 +1,217 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "matreduce",
|
||||
|
||||
///// Shared with Pocket Screen /////
|
||||
|
||||
"one_touch_button@chem_common_pocket.one_touch_button": {
|
||||
"$take_all_place_all": "button.matreduce_take_all_place_all",
|
||||
"$coalesce_stack": "button.matreduce_coalesce_stack"
|
||||
},
|
||||
|
||||
///// Differs from Pocket Screen /////
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "materialreducer.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 4 ]
|
||||
},
|
||||
|
||||
"input_slot@common.empty_panel": {
|
||||
"size": [ 18, 18 ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"offset": [ 0, 4 ],
|
||||
|
||||
"controls": [
|
||||
{
|
||||
"slot@common.container_item": {
|
||||
"layer": 2,
|
||||
"$item_collection_name": "matreduce_input",
|
||||
"$button_ref": "matreduce.one_touch_button",
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#input_enabled",
|
||||
"binding_name_override": "#enabled"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"disabled_overlay": {
|
||||
"type": "image",
|
||||
"layer": 4,
|
||||
"texture": "textures/ui/recipe_book_red_button",
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "(not #input_enabled)",
|
||||
"binding_name_override": "#visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"connectors": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/material_reducer_connectors",
|
||||
"size": [ 108, 54 ],
|
||||
"offset": [ 0, 11 ],
|
||||
"anchor_from": "top_middle",
|
||||
"anchor_to": "top_middle",
|
||||
"layer": 4
|
||||
},
|
||||
|
||||
"output_item": {
|
||||
"type": "panel",
|
||||
"grid_position": "$grid_position",
|
||||
"size": [ 18, 18 ],
|
||||
"controls": [
|
||||
{
|
||||
"slot@common.container_item": {
|
||||
"$offset|default": [ 0, 0 ],
|
||||
"offset": "$offset",
|
||||
"$item_collection_name": "matreduce_output"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"output_slots": {
|
||||
"type": "grid",
|
||||
"size": [ 130, 50 ],
|
||||
"offset": [ 4, 4 ],
|
||||
"anchor_from": "bottom_middle",
|
||||
"anchor_to": "bottom_middle",
|
||||
"grid_dimensions": [ 5, 2 ],
|
||||
"collection_name": "matreduce_output",
|
||||
"controls": [
|
||||
{
|
||||
"a@matreduce.output_item": {
|
||||
"$grid_position": [ 0, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"b@matreduce.output_item": {
|
||||
"$grid_position": [ 1, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"c@matreduce.output_item": {
|
||||
"$grid_position": [ 2, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"d@matreduce.output_item": {
|
||||
"$grid_position": [ 3, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"e@matreduce.output_item": {
|
||||
"$grid_position": [ 4, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"f@matreduce.output_item": {
|
||||
"$grid_position": [ 0, 1 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"g@matreduce.output_item": {
|
||||
"$grid_position": [ 1, 1 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"h@matreduce.output_item": {
|
||||
"$grid_position": [ 2, 1 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"i@matreduce.output_item": {
|
||||
"$grid_position": [ 3, 1 ],
|
||||
"$offset": [ 13, 0 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"top_half@common.empty_panel": {
|
||||
// Offset so it starts under the title label and within the frame, and goes down to the inventory
|
||||
"offset": [ 4, 14 ],
|
||||
"size": [ "100% - 8px", 85 ],
|
||||
"layer": 1,
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"controls": [
|
||||
{ "input@matreduce.input_slot": {} },
|
||||
{ "output@matreduce.output_slots": {} },
|
||||
{ "connectors@matreduce.connectors": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content": {
|
||||
"type": "panel",
|
||||
"controls": [
|
||||
{
|
||||
"root_panel@common.root_panel": {
|
||||
"layer": 1,
|
||||
"$bottom_padding": 10,
|
||||
"size": [ 205, 200 ],
|
||||
"controls": [
|
||||
{ "common_panel@common.common_panel": {} },
|
||||
{ "title_label@matreduce.title_label": {} },
|
||||
{ "top_half@matreduce.top_half": {} },
|
||||
{
|
||||
"inventory": {
|
||||
"type": "panel",
|
||||
"layer": 2,
|
||||
"offset": [ 0, -10 ],
|
||||
"controls": [
|
||||
{
|
||||
"inventory@common.inventory_panel_bottom_half_with_label": {
|
||||
"size": [ 176, 93 ],
|
||||
"anchor_from": "bottom_middle",
|
||||
"anchor_to": "bottom_middle"
|
||||
}
|
||||
},
|
||||
{ "hotbar@common.hotbar_grid_template": {} },
|
||||
{ "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "inventory_selected_icon_button@common.inventory_selected_icon_button": {} }
|
||||
]
|
||||
}
|
||||
},
|
||||
{ "container_gamepad_helpers@common.container_gamepad_helpers": {} } // Gamepad tool tips
|
||||
]
|
||||
},
|
||||
|
||||
"material_reducer@common.inventory_screen_common": {
|
||||
"$close_on_player_hurt|default": false,
|
||||
"close_on_player_hurt": "$close_on_player_hurt",
|
||||
"$screen_bg_content": "common.screen_background",
|
||||
"variables": [
|
||||
{
|
||||
"requires": "$desktop_screen",
|
||||
"$screen_content": "matreduce.content"
|
||||
},
|
||||
{
|
||||
"requires": "$pocket_screen",
|
||||
"$screen_content": "matreduce_pocket.content"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
168
servers/bedrock/resource_packs/chemistry/ui/material_reducer_screen_pocket.json
vendored
Normal file
168
servers/bedrock/resource_packs/chemistry/ui/material_reducer_screen_pocket.json
vendored
Normal file
@ -0,0 +1,168 @@
|
||||
/********************************************************
|
||||
+* (c) Mojang. All rights reserved *
|
||||
+* (c) Microsoft. All rights reserved. *
|
||||
+*********************************************************/
|
||||
|
||||
{
|
||||
"namespace": "matreduce_pocket",
|
||||
|
||||
"title_label@edu_common.dark_label": {
|
||||
"layer": 2,
|
||||
"text": "materialreducer.title",
|
||||
"size": [ "100%", "default" ],
|
||||
"anchor_from": "top_left",
|
||||
"anchor_to": "top_left",
|
||||
"text_alignment": "center",
|
||||
"offset": [ 0, 8 ]
|
||||
},
|
||||
|
||||
"hotbar_slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"$item_collection_name": "hotbar_items",
|
||||
"$button_ref": "matreduce.one_touch_button"
|
||||
},
|
||||
|
||||
"inventory_slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"$item_collection_name": "inventory_items",
|
||||
"$button_ref": "matreduce.one_touch_button"
|
||||
},
|
||||
|
||||
"input_slot@common.empty_panel": {
|
||||
"size": [ 18, 18 ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"offset": [ -0.5, -49 ], // I weep for -0.5, but it's needed to line up with the connectors element.
|
||||
"controls": [
|
||||
{
|
||||
"slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"layer": 2,
|
||||
"$item_collection_name": "matreduce_input",
|
||||
"$button_ref": "matreduce.one_touch_button",
|
||||
"$item_renderer_size": [ 20, 20 ],
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "#input_enabled",
|
||||
"binding_name_override": "#enabled"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"disabled_overlay": {
|
||||
"type": "image",
|
||||
"layer": 4,
|
||||
"texture": "textures/ui/recipe_book_red_button",
|
||||
"bindings": [
|
||||
{
|
||||
"binding_name": "(not #input_enabled)",
|
||||
"binding_name_override": "#visible"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"connectors": {
|
||||
"type": "image",
|
||||
"texture": "textures/ui/material_reducer_connectors_pocket",
|
||||
"size": [ 119, 79 ],
|
||||
"offset": [ 0, -10.5 ],
|
||||
"anchor_from": "center",
|
||||
"anchor_to": "center",
|
||||
"layer": 10
|
||||
},
|
||||
|
||||
"output_item": {
|
||||
"type": "panel",
|
||||
"grid_position": "$grid_position",
|
||||
"size": [ 18, 18 ],
|
||||
"controls": [
|
||||
{
|
||||
"slot@chem_common_pocket.pocket_ui_container_item": {
|
||||
"$offset|default": [ 0, 0 ],
|
||||
"offset": "$offset",
|
||||
"$item_collection_name": "matreduce_output",
|
||||
"$item_renderer_size": [ 20, 20 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"output_slots": {
|
||||
"type": "grid",
|
||||
"layer": 2,
|
||||
"size": [ 130, 55 ],
|
||||
"offset": [ 4, 17.5 ],
|
||||
"grid_dimensions": [ 5, 2 ],
|
||||
"collection_name": "matreduce_output",
|
||||
"controls": [
|
||||
{
|
||||
"a@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 0, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"b@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 1, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"c@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 2, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"d@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 3, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"e@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 4, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"f@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 0, 1 ],
|
||||
"$offset": [ 12.5, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"g@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 1, 1 ],
|
||||
"$offset": [ 12.5, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"h@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 2, 1 ],
|
||||
"$offset": [ 12.5, 0 ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"i@matreduce_pocket.output_item": {
|
||||
"$grid_position": [ 3, 1 ],
|
||||
"$offset": [ 12.5, 0 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"right_panel@common.empty_panel": {
|
||||
"size": [ "49.5%", "100%" ],
|
||||
"layer": 2,
|
||||
"anchor_from": "top_right",
|
||||
"anchor_to": "top_right",
|
||||
"controls": [
|
||||
{ "title_label@matreduce_pocket.title_label": {} },
|
||||
{ "dialog_background_opaque@common.dialog_background_opaque": {} },
|
||||
{ "input@matreduce_pocket.input_slot": {} },
|
||||
{ "output@matreduce_pocket.output_slots": {} },
|
||||
{ "connectors@matreduce_pocket.connectors": {} }
|
||||
]
|
||||
},
|
||||
|
||||
"content@chem_common_pocket.screen_contents": {
|
||||
"$right_panel": "right_panel@matreduce_pocket.right_panel"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user