/********************************************************
+*   (c) Mojang. All rights reserved             *
+*   (c) Microsoft. All rights reserved.           *
+*********************************************************/

{
  "namespace": "furnace",
  //---------------------------------------------------------------------------
  // #region gamepad helpers
  //---------------------------------------------------------------------------

  "inventory_x_gamepad_helper@common.gamepad_helper_x_14": {
    "bindings": [
      {
        "binding_name": "#gamepad_helper_x_visible",
        "binding_name_override": "#visible",
        "binding_condition": "always"
      }
    ]
  },

  "inventory_y_gamepad_helper@common.gamepad_helper_y_14": {
    "bindings": [
      {
        "binding_name": "#gamepad_helper_y_visible",
        "binding_name_override": "#visible",
        "binding_condition": "always"
      }
    ]
  },

  "inventory_a_gamepad_helper@common.gamepad_helper_a_14": {
    "bindings": [
      {
        "binding_name": "#gamepad_helper_a_visible",
        "binding_name_override": "#visible",
        "binding_condition": "always"
      }
    ]
  },

  "inventory_b_gamepad_helper@common.gamepad_helper_b_14": {},

  "gamepad_helper_left_trigger@common.gamepad_helper_left_trigger": {
    "$hide_description": true
  },

  "gamepad_helper_right_trigger@common.gamepad_helper_right_trigger": {
    "$hide_description": true
  },

  "container_gamepad_helpers_second_row": {
    "type": "stack_panel",
    "size": [ "100%", 18 ],
    "orientation": "horizontal",
    "controls": [
      {
        "buffer_panel_left": {
          "type": "panel",
          "size": [ 10, 0 ]
        }
      },
      {
        "left_thumbstick_visibility": {
          "type": "panel",
          "size": [ "100%c", "350%" ],
          "controls": [
            {
              "gamepad_helper_thumbstick_left@common.gamepad_helper_thumbstick_left": {
                "bindings": [
                  {
                    "binding_name": "#gamepad_helper_ls_visible",
                    "binding_name_override": "#visible",
                    "binding_condition": "always"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "fill_panel": {
          "type": "panel",
          "size": [ "fill", 0 ]
        }
      },
      {
        "right_thumbstick_visibility": {
          "type": "panel",
          "size": [ "100%c", "100%" ],
          "controls": [
            {
              "gamepad_helper_thumbstick_right@common.gamepad_helper_thumbstick_right": {
                "bindings": [
                  {
                    "binding_name": "#gamepad_helper_rs_visible",
                    "binding_name_override": "#visible",
                    "binding_condition": "always"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "buffer_panel_right": {
          "type": "panel",
          "size": [ 10, 0 ]
        }
      }
    ]
  },

  // #endregion

  //---------------------------------------------------------------------------
  // #region common images
  //---------------------------------------------------------------------------

  "flame_panel": {
    "type": "panel",
    "size": [ 13, 13 ],
    "offset": [ -21, 0 ],
    "controls": [
      {
        "flame_empty_image@furnace.flame_empty_image": {}
      },
      {
        "flame_full_image@furnace.flame_full_image": {}
      }
    ]
  },

  "furnace_arrow_empty_image": {
    "type": "image",
    "layer": 1,
    "texture": "textures/ui/arrow_inactive",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ 22, 15 ]
  },

  "furnace_arrow_full_image": {
    "type": "image",
    "layer": 3,
    "texture": "textures/ui/arrow_active",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ 22, 15 ],
    "clip_direction": "left",
    "bindings": [
      {
        "binding_name": "#furnace_arrow_ratio",
        "binding_name_override": "#clip_ratio",
        "binding_condition": "always"
      }
    ]
  },

  "flame_empty_image": {
    "type": "image",
    "texture": "textures/ui/flame_empty_image",
    "layer": 2
  },

  "flame_full_image": {
    "type": "image",
    "texture": "textures/ui/flame_full_image",
    "layer": 3,
    "clip_direction": "down",
    "bindings": [
      {
        "binding_name": "#furnace_flame_ratio",
        "binding_name_override": "#clip_ratio",
        "binding_condition": "always"
      }
    ]
  },

  "food_icon@common.tab_icon_image": {
    "texture": "textures/ui/category_icon_food"
  },

  "blocks_icon@common.tab_icon_image": {
    "texture": "textures/ui/category_icon_blocks"
  },

  "items_icon@common.tab_icon_image": {
    "texture": "textures/ui/category_icon_items"
  },

  // #endregion

  //---------------------------------------------------------------------------
  // #region tabs
  //---------------------------------------------------------------------------

  "empty_tab_panel": {
    "type": "panel",
    "size": [ 24, 25 ],
    "controls": [
      {
        "img@$tab_icon": {}
      }
    ]
  },

  "tab_offset_anim": {
    "$top_tab_anim_start|default": [ 0, 27 ],
    "$top_tab_anim_end|default": [ 0, 0 ],
    "anim_type": "offset",
    "easing": "out_cubic",
    "from": "$top_tab_anim_start",
    "to": "$top_tab_anim_end",
    "duration": 0.5
  },

  "tab_wait_anim": {
    "anim_type": "wait",
    "duration": 0.8,
    "next": "@furnace.tab_offset_anim"
  },

  "top_tab@common_tabs.tab_top": {
    "alpha": 0.2,
    "$anims|default": [],
    "anims": "$anims",
    "$offset|default": [ 0, 0 ],
    "offset": "$offset",
    "$toggle_focus_enabled": false,
    "$toggle_name": "navigation_tab",
    "$toggle_group_default_selected": "$search_index", // Search tab
    "$tab_content": "common_tabs.empty_tab_panel",
    "$allow_controller_back_button_mapping": "$is_ps4"
  },

  "food_tab@furnace.top_tab": {
    "$tab_view_binding_name": "food_tab_toggle",
    "$tab_icon": "furnace.food_icon",
    "$toggle_group_forced_index": "$food_index",

    "$toggle_binding_type": "global",
    "$toggle_state_binding_name": "#is_left_tab_food",
    "$top_tab_tts_name": "furnaceScreen.tab.food",

    "$focus_id": "food_tab",
    "$focus_override_left": "help_button",
    "$focus_override_right": "blocks_tab",
    "$focus_override_up": "FOCUS_OVERRIDE_STOP"
  },

  "blocks_tab@furnace.top_tab": {
    "$tab_view_binding_name": "blocks_tab_toggle",
    "$tab_icon": "furnace.blocks_icon",
    "$toggle_group_forced_index": "$blocks_index",

    "$toggle_binding_type": "global",
    "$toggle_state_binding_name": "#is_left_tab_blocks",
    "$top_tab_tts_name": "furnaceScreen.tab.blocks",

    "$focus_id": "blocks_tab",
    "$focus_override_left": "food_tab",
    "$focus_override_right": "items_tab",
    "$focus_override_up": "FOCUS_OVERRIDE_STOP"
  },

  "items_tab@furnace.top_tab": {
    "$tab_view_binding_name": "items_tab_toggle",
    "$tab_icon": "furnace.items_icon",
    "$toggle_group_forced_index": "$items_index",

    "$toggle_binding_type": "global",
    "$toggle_state_binding_name": "#is_left_tab_items",
    "$top_tab_tts_name": "furnaceScreen.tab.items",

    "$focus_id": "items_tab",
    "$focus_override_left": "blocks_tab",
    "$focus_override_right": "search_tab",
    "$focus_override_up": "FOCUS_OVERRIDE_STOP"
  },

  "search_tab@furnace.top_tab": {
    "$is_right_most_tab": true,
    "$tab_view_binding_name": "search_tab_toggle",
    "$tab_icon": "common.search_icon",
    "$toggle_group_forced_index": "$search_index",

    "$toggle_binding_type": "global",
    "$toggle_state_binding_name": "#is_left_tab_search",
    "$top_tab_tts_name": "furnaceScreen.tab.search",

    "$focus_id": "search_tab",
    "$focus_override_left": "items_tab",
    "$focus_override_right": "default_layout_toggle",
    "$focus_override_up": "FOCUS_OVERRIDE_STOP"
  },

  "tab_navigation_panel_layout": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", 27 ],
    "ttsSectionContainer": true,

    "controls": [
      {
        "navigation_tabs": {
          "type": "panel",
          "size": [ "fill", "100%" ],
          "controls": [
            {
              "content": {
                "type": "stack_panel",
                "orientation": "horizontal",
                "size": [ "100%", "100% + 4px" ],
                "anchor_to": "top_left",
                "anchor_from": "top_left",
                "controls": [
                  {
                    "food_tab_holder": {
                      "type": "panel",
                      "size": [ 25, "100%" ],
                      "controls": [
                        {
                          "food_tab_control@furnace.food_tab": {
                            "$is_left_most_tab": true,
                            "bindings": [
                              {
                                "binding_name": "#food_tab_visible",
                                "binding_name_override": "#visible"
                              },
                              {
                                "binding_name": "#food_tab_offset",
                                "binding_name_override": "#offset"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "blocks_tab_holder": {
                      "type": "panel",
                      "size": [ 25, "100%" ],
                      "controls": [
                        {
                          "blocks_tab_leftmost@furnace.blocks_tab": {
                            "$is_left_most_tab": true,
                            "bindings": [
                              {
                                "binding_name": "#blocks_tab_is_leftmost",
                                "binding_name_override": "#visible"
                              },
                              {
                                "binding_name": "#blocks_tab_offset",
                                "binding_name_override": "#offset"
                              }
                            ]
                          }
                        },
                        {
                          "blocks_tab_normal@furnace.blocks_tab": {
                            "bindings": [
                              {
                                "binding_name": "#blocks_tab_visible_not_leftmost",
                                "binding_name_override": "#visible"
                              },
                              {
                                "binding_name": "#blocks_tab_offset",
                                "binding_name_override": "#offset"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "items_tab_holder": {
                      "type": "panel",
                      "size": [ 25, "100%" ],
                      "controls": [
                        {
                          "items_tab_leftmost@furnace.items_tab": {
                            "$is_left_most_tab": true,
                            "bindings": [
                              {
                                "binding_name": "#items_tab_is_leftmost",
                                "binding_name_override": "#visible"
                              },
                              {
                                "binding_name": "#items_tab_offset",
                                "binding_name_override": "#offset"
                              }
                            ]
                          }
                        },
                        {
                          "items_tab_normal@furnace.items_tab": {
                            "bindings": [
                              {
                                "binding_name": "#items_tab_visible_not_leftmost",
                                "binding_name_override": "#visible"
                              },
                              {
                                "binding_name": "#items_tab_offset",
                                "binding_name_override": "#offset"
                              }
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "fill_panel_0": {
                      "type": "panel",
                      "size": [ "fill", "100%" ]
                    }
                  },
                  {
                    "search_tab_holder": {
                      "type": "panel",
                      "size": [ 25, "100%" ],
                      "controls": [
                        {
                          "search_tab@furnace.search_tab": {
                            "$focus_override_right": "default_layout_toggle"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "filter_toggle@common_toggles.switch_toggle": {
    "size": [ 29, 17 ],
    "$default_texture": "textures/ui/furnace_toggle_off",
    "$hover_texture": "textures/ui/furnace_toggle_on",
    "$pressed_texture": "textures/ui/furnace_toggle_off_hover",
    "$pressed_no_hover_texture": "textures/ui/furnace_toggle_on_hover",
    "$unchecked_locked_texture": "textures/ui/furnace_toggle_off",
    "$checked_locked_texture": "textures/ui/furnace_toggle_on",

    "$toggle_name": "toggle.enable_filtering",
    "$toggle_binding_type": "global",
    "$toggle_state_binding_name": "#filtering_enabled",

    "$button_mappings": [
      {
        "to_button_id": "button.filter_toggle_hovered",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.menu_select",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.menu_ok",
        "mapping_type": "focused"
      },
      {
        "from_button_id": "button.controller_back",
        "to_button_id": "button.controller_back",
        "mapping_type": "focused",
        "ignored": "(not $is_ps4)"
      },
      {
        "ignored": "(not $enable_directional_toggling)",
        "from_button_id": "button.menu_left",
        "to_button_id": "$toggle_off_button",
        "mapping_type": "pressed",
        "input_mode_condition": "gamepad_and_not_gaze"
      },
      {
        "ignored": "(not $enable_directional_toggling)",
        "from_button_id": "button.menu_right",
        "to_button_id": "$toggle_on_button",
        "mapping_type": "pressed",
        "input_mode_condition": "gamepad_and_not_gaze"
      }
    ]
  },

  "filter_toggle_holder": {
    "type": "panel",
    "size": [ "100%c", "100%" ],
    "$toggle_offset|default": [1, 0],
    "controls": [
      {
        "filter_toggle@furnace.filter_toggle": {
          "offset": "$toggle_offset",
          "anchor_from": "right_middle",
          "anchor_to": "right_middle",

          "$focus_id": "smeltable_toggle",
          "$focus_override_left": "recipe_search_bar",
          "$default_border_visible": false,
          "$hover_border_visible": false
        }
      }
    ]
  },

  "tab_content_padding": {
    "type": "panel",
    "size": [ 0, 0 ],
    "bindings": [
      {
        "binding_name": "(not #is_left_tab_inventory or $is_pocket_mode)",
        "binding_name_override": "#visible"
      }
    ]
  },

  "tab_label": {
    "$text_alignment|default": "right",
    "type": "label",
    "size": [ "100%", 10 ],
    "anchor_from": "center",
    "anchor_to": "center",
    "text_alignment": "$text_alignment",
    "color": "$title_text_color",
    "layer": 2,

    "text": "#tab_label_text",
    "bindings": [
      {
        "binding_name": "#tab_label_text"
      }
    ]
  },

  "tab_content": {
    "$is_pocket_mode|default": false,
    "$scroll_view_name|default": "tab_scroll_view",
    "type": "panel",
    "layer": 1,
    "controls": [
      {
        "tab_content_search_bar_panel": {
          "type": "stack_panel",
          "size": [ "100% - 12px", "100% - 12px" ],
          "orientation": "vertical",

          "controls": [
            {
              "vertical_padding_1@furnace.tab_content_padding": {
                "size": [ 0, 2 ]
              }
            },
            {
              "pocket_vertical_padding_1": {
                "type": "panel",
                "size": [ 0, 3 ],
                "visible": "$is_pocket_mode"
              }
            },
            {
              "tab_label_holder": {
                "type": "stack_panel",
                "size": [ "100% + 1px", 10 ],
                "orientation": "horizontal",

                "bindings": [
                  {
                    "binding_name": "(not #is_left_tab_inventory or $is_pocket_mode)",
                    "binding_name_override": "#visible"
                  }
                ],
                "controls": [
                  {
                    "padding_1": {
                      "type": "panel",
                      "size": [ 3, 0 ]
                    }
                  },
                  {
                    "tab_label@furnace.tab_label": {
                      "size": [ "fill", "100%" ]
                    }
                  },
                  {
                    "filter_toggle_holder@furnace.filter_toggle_holder": {
                      "$toggle_offset": [1, -1],
                      "bindings": [
                        {
                          "binding_name": "#is_left_tab_search"
                        },
                        {
                          "binding_name": "#is_left_tab_inventory"
                        },
                        {
                          "binding_type": "view",
                          "source_property_name": "(not #is_left_tab_inventory and (not #is_left_tab_search or $is_pocket_mode))",
                          "target_property_name": "#visible"
                        }
                      ]
                    }
                  },
                  {
                    "pocket_horizontal_padding_1": {
                      "type": "panel",
                      "size": [ "1px", 0 ]
                    }
                  }
                ]
              }
            },
            {
              "vertical_padding_2@furnace.tab_content_padding": {
                "size": [ 0, 1 ]
              }
            },
            {
              "pocket_vertical_padding_2": {
                "type": "panel",
                "size": [ 0, 2 ],
                "visible": "$is_pocket_mode"
              }
            },
            {
              "pocket_vertical_padding_3": {
                "type": "panel",
                "size": [ 0, 2 ],
                "bindings": [
                  {
                    "binding_name": "#is_left_tab_search"
                  },
                  {
                    "binding_type": "view",
                    "source_property_name": "($is_pocket_mode and #is_left_tab_search)",
                    "target_property_name": "#visible"
                  }
                ]
              }
            },
            {
              "search_and_filter_panel": {
                "type": "stack_panel",
                "orientation": "horizontal",
                "size": [ "100% + 1px", 16 ],
                "layer": 11,

                "bindings": [
                  {
                    "binding_name": "#is_left_tab_search",
                    "binding_name_override": "#visible"
                  }
                ],
                "controls": [
                  {
                    "text_edit_control@common.text_edit_box": {
                      "size": [ "fill", "100%" ],
                      "layer": 9,

                      "property_bag": {
                        "#property_field": "#item_name"
                      },

                      "max_length": 30,
                      "$text_edit_binding_name": "#text_box_item_name",
                      "$text_edit_box_label_size": [ "default", 10 ],
                      "$text_edit_box_label_offset": [ 10, 0 ],
                      "$text_edit_box_hovered_button_id": "button.search_bar_hovered",
                      "$text_edit_box_clear_to_button_id": "button.search_bar_clear",
                      "$text_edit_box_selected_to_button_id": "button.search_bar_selected",
                      "$text_edit_box_deselected_to_button_id": "button.search_bar_deselected",

                      "$text_clear_button_enabled": true,
                      "$text_clear_button_size": [ 15, 15 ],
                      "$text_clear_button_offset": [ 2, 0 ],
                      "$magnifying_glass_enabled": true,
                      "$magnifying_glass_size": [ 8, 8 ],
                      "$magnifying_glass_offset": [ 0, -0.5 ],

                      "focus_wrap_enabled": false,

                      "$focus_id": "recipe_search_bar",
                      "$focus_override_right": "smeltable_toggle",
                      "$focus_override_up": "search_tab"
                    }
                  },
                  {
                    "padding_1": {
                      "type": "panel",
                      "size": [ 1, 0 ]
                    }
                  },
                  {
                    "filter_toggle_holder@furnace.filter_toggle_holder": {
                      "visible": "(not $is_pocket_mode)"
                    }
                  },
                  {
                    "pocket_horizontal_padding_1": {
                      "type": "panel",
                      "size": [ "1px", 0 ],
                      "visible": "(not $is_pocket_mode)"
                    }
                  }
                ]
              }
            },
            {
              "vertical_padding_3": {
                "type": "panel",
                "size": [ 0, 2 ],
                "bindings": [
                  {
                    "binding_name": "(not $is_pocket_mode and not #is_left_tab_inventory)",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            },
            {
              "vertical_padding_3_1": {
                "type": "panel",
                "size": [ 0, 2 ],
                "bindings": [
                  {
                    "binding_name": "($is_pocket_mode and not #is_left_tab_search)",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            },
            {
              "items_panel": {
                "type": "panel",
                "size": [ "100%", "fill" ],
                "controls": [
                  {
                    "scroll_pane@$scrolling_pane_control": {
                      "size": [ "100%", "100%" ],
                      "$scroll_view_name": "$scroll_view_name",
                      "$scroll_view_port_offset": [ 0, 0 ],
                      "$scroll_view_port_offset_touch": [ 0, 0 ],
                      "$scroll_view_port_size": [ "100%", "100%" ],
                      "$scroll_view_port_size_touch": [ "100% - 16px", "100%" ],
                      "$view_port_clip_background": false
                    }
                  },
                  {
                    "shadow_stack": {
                      "type": "stack_panel",
                      "orientation": "horizontal",
                      "size": [ "100%", "100%c"],
                      "anchor_from": "top_left",
                      "anchor_to": "top_left",
                      "controls": [
                        {
                          "shadow_container": {
                            "type": "panel",
                            "layer": 10,
                            "size": [ "fill", "100%c" ],
                            "anchor_from": "top_left",
                            "anchor_to": "top_left",
                            "controls": [
                              {
                                "top_shadow": {
                                  "type": "image",
                                  "size": [ "100%", "2px" ],
                                  "layer": 10,
                                  "texture": "textures/ui/White",
                                  "color": [ 0, 0, 0 ],
                                  "alpha": 0.5,
                                  "anchor_from": "top_left",
                                  "anchor_to": "top_left",
                                  "keep_ratio": false
                                }
                              },
                              {
                                "top_overlay": {
                                  "type": "image",
                                  "size": [ "100%", "1px" ],
                                  "offset": [ "0px", "-1px"],
                                  "layer": 9,
                                  "texture": "textures/ui/White",
                                  "color": [ 0.75, 0.75, 0.75 ],
                                  "anchor_from": "top_left",
                                  "anchor_to": "top_left",
                                  "keep_ratio": false
                                }
                              }
                            ]
                          }
                        },
                        {
                          "shadow_cutter": {
                            "type": "panel",
                            "size": [ "6px", "1px" ],
                            "bindings": [
                              {
                                "binding_type": "view",
                                "source_control_name": "$scroll_view_name",
                                "source_property_name": "(#scroll_bar_visible and not $touch)",
                                "target_property_name": "#visible",
                                "binding_condition": "always_when_visible"
                              }
                            ]
                          }
                        }
                      ],
                      "bindings": [
                        {
                          "binding_name": "($is_pocket_mode or not #is_left_tab_inventory)",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "nodrop_zone@common.root_panel": {
          "anchor_from": "center",
          "anchor_to": "center",
          "size": [ "100%", "100%" ],
          "layer": 2,
          "bindings": [
            {
              "binding_type": "global",
              "binding_name": "#is_left_tab_inventory",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  },

  // #endregion

  //---------------------------------------------------------------------------
  // #region cell images
  //---------------------------------------------------------------------------

  "cell_image": {
    "type": "image",
    "texture": "textures/ui/cell_image"
  },

  "cell_image_classic@furnace.cell_image": {
    "texture": "textures/ui/cell_image",
    "$cell_image_size|default": [ "default", "default" ],
    "size": "$cell_image_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$background_image_control_name",
        "resolve_sibling_scope": true,
        "source_property_name": "(#container_item_background = 0)",
        "target_property_name": "#visible"
      }
    ]
  },

  "cell_image_normal@furnace.cell_image": {
    "texture": "textures/ui/cell_image_normal",
    "$cell_image_size|default": [ "default", "default" ],
    "size": "$cell_image_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$background_image_control_name",
        "resolve_sibling_scope": true,
        "source_property_name": "(#container_item_background = 1)",
        "target_property_name": "#visible"
      }
    ]
  },

  "cell_image_invert@furnace.cell_image": {
    "texture": "textures/ui/cell_image_invert",
    "$cell_image_size|default": [ "default", "default" ],
    "size": "$cell_image_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$background_image_control_name",
        "resolve_sibling_scope": true,
        "source_property_name": "(#container_item_background = 2)",
        "target_property_name": "#visible"
      }
    ]
  },

  "cell_image_red@furnace.cell_image": {
    "texture": "textures/ui/cell_image_red",
    "$cell_image_size|default": [ "default", "default" ],
    "size": "$cell_image_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$background_image_control_name",
        "resolve_sibling_scope": true,
        "source_property_name": "(#container_item_background = 3)",
        "target_property_name": "#visible"
      }
    ]
  },

  "cell_image_selected@common.cell_image": {
    "texture": "textures/ui/recipe_book_touch_cell_selected",
    "$cell_image_size|default": [ "default", "default" ],
    "size": "$cell_image_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$background_image_control_name",
        "resolve_sibling_scope": true,
        "source_property_name": "(#container_item_background = 4)",
        "target_property_name": "#visible"
      }
    ]
  },

  "cell_image_darkgrey@furnace.cell_image": {
    "texture": "textures/ui/cell_image_darkgrey",
    "$cell_image_size|default": [ "default", "default" ],
    "size": "$cell_image_size",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "$background_image_control_name",
        "resolve_sibling_scope": true,
        "source_property_name": "(#container_item_background = 7)",
        "target_property_name": "#visible"
      }
    ]
  },

  // #endregion

  //---------------------------------------------------------------------------
  // #region recipe book
  //---------------------------------------------------------------------------

  "inventory_container_slot_button@common.container_slot_button_prototype": {
    "$button_take_half_place_one|default": "button.container_take_half_place_one",
    "$button_auto_place|default": "button.container_auto_place",
    "$button_take_all_place_all|default": "button.container_take_all_place_all",
    "$coalesce_button|default": "button.coalesce_stack",
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.try_menu_exit",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "$button_take_all_place_all",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "$button_take_all_place_all",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_back",
        "to_button_id": "$button_take_all_place_all",
        "mapping_type": "pressed",
        "ignored": "(not $is_ps4)"
      },
      {
        "from_button_id": "button.menu_secondary_select",
        "to_button_id": "$button_take_half_place_one",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_select",
        "to_button_id": "$button_take_half_place_one",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_auto_place",
        "to_button_id": "$button_auto_place",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_secondary_select",
        "to_button_id": "$button_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_button",
        "mapping_type": "double_pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "$coalesce_button",
        "mapping_type": "double_pressed"
      },
      {
        "to_button_id": "button.container_slot_hovered",
        "mapping_type": "pressed"
      }
    ]
  },

  "no_coalesce_container_slot_button@furnace.inventory_container_slot_button": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.try_menu_exit",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "$button_take_all_place_all",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "$button_take_all_place_all",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_back",
        "to_button_id": "$button_take_all_place_all",
        "mapping_type": "pressed",
        "ignored": "(not $is_ps4)"
      },
      {
        "from_button_id": "button.menu_secondary_select",
        "to_button_id": "$button_take_half_place_one",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_select",
        "to_button_id": "$button_take_half_place_one",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_auto_place",
        "to_button_id": "$button_auto_place",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_secondary_select",
        "to_button_id": "$button_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"
      },
      {
        "to_button_id": "button.container_slot_hovered",
        "mapping_type": "pressed"
      }
    ]
  },

  "creative_no_coalesce_container_slot_button@furnace.no_coalesce_container_slot_button": {
    "$button_take_all_place_all": "button.recipe_select",
    "$button_take_half_place_one": "button.recipe_secondary",
    "$button_auto_place": "button.recipe_tertiary",
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.try_menu_exit",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.recipe_select",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.recipe_select",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_back",
        "to_button_id": "button.recipe_select",
        "mapping_type": "pressed",
        "ignored": "(not $is_ps4)"
      },
      {
        "from_button_id": "button.menu_secondary_select",
        "to_button_id": "button.recipe_secondary",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_select",
        "to_button_id": "button.recipe_secondary",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_auto_place",
        "to_button_id": "button.recipe_tertiary",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_secondary_select",
        "to_button_id": "button.recipe_tertiary",
        "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"
      },
      {
        "to_button_id": "button.container_slot_hovered",
        "mapping_type": "pressed"
      }
    ]
  },


  "container_cell_images": {
    "type": "panel",
    "$cell_images_binding_condition|default": "visible",
    "controls": [
      { "cell_classic@furnace.cell_image_classic": {} },
      { "cell_normal@furnace.cell_image_normal": {} },
      { "cell_invert@furnace.cell_image_invert": {} },
      { "cell_red@furnace.cell_image_red": {} },
      { "cell_selected@furnace.cell_image_selected": {} },
      { "cell_darkgrey@furnace.cell_image_darkgrey": {} }
    ],
    "bindings": [
      {
        "binding_name": "#container_item_background",
        "binding_type": "collection",
        "binding_collection_name": "$item_collection_name",
        "binding_condition": "$cell_images_binding_condition"
      }
    ]
  },

  "inventory_container_item@common.container_item": {
    "$button_ref|default": "furnace.inventory_container_slot_button",
    "$background_images|default": "furnace.container_cell_images",

    "controls": [
      {
        "item_cell": {
          "type": "panel",
          "size": "$cell_image_size",
          "layer": 0,
          "controls": [
            {
              "$background_image_control_name@$background_images": {
                "layer": 1
              }
            },
            {
              "item": {
                "type": "panel",
                "size": "$item_renderer_panel_size",
                "layer": 0,
                "controls": [
                  {
                    "$item_renderer@$item_renderer": {
                      "size": "$item_renderer_size",
                      "offset": "$item_renderer_offset",
                      "anchor_to": "center",
                      "anchor_from": "center",
                      "layer": 7
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "item_selected_image@common.slot_selected": {
          "layer": 4
        }
      },
      {
        "item_button_ref@$button_ref": {
          "tts_ignore_count": true,
          "tts_skip_message": true,
          "tts_inherit_siblings": true,
          "layer": 5
        }
      },
      {
        "container_item_lock_overlay@common.container_item_lock_overlay": {
          "size": "$item_renderer_size",
          "offset": [ 1, 1 ],
          "anchor_to": "top_left",
          "anchor_from": "top_left",
          "layer": 6
        }
      },
      {
        "item_lock_cell_image@common.item_lock_cell_image": {
          "layer": 2
        }
      },
      {
        "bundle_slot_panel@gameplay.bundle_slot_panel": {
          "layer": 10
        }
      }
    ]
  },

  "recipe_container_cell_images": {
    "type": "image",
    "$cell_images_binding_condition|default": "visible",
    "size": "$cell_image_size",
    "$cell_image_size|default": [ "default", "default" ],
    "bindings": [
      {
        "binding_name": "#container_item_background_texture",
        "binding_name_override": "#texture",
        "binding_type": "collection",
        "binding_collection_name": "$item_collection_name",
        "binding_condition": "$cell_images_binding_condition"
      }
    ]
  },

  "grid_item_for_recipe_book@furnace.inventory_container_item": {
    "$stack_count_required": true,
    "$durability_bar_required": false,
    "$storage_bar_required": false,
    "$item_renderer_binding_condition": "visible",
    "$button_ref": "furnace.creative_no_coalesce_container_slot_button",
    "$background_images": "furnace.recipe_container_cell_images",

    "$slot_selected_binding_name": "#is_recipe_selected_slot",

    "$item_collection_name": "recipe_book",
    "$scrolling_grid_item_size|default": [ 18, 18 ],
    "$hover_text_binding_name": "#recipe_hover_text",
    "size": "$scrolling_grid_item_size"
  },

  "scroll_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "anchor_to": "top_left",
    "anchor_from": "top_left",

    "$binding_condition|default": "visible",
    "$grid_item_precache_count|default": 0,
    "$grid_item_template|default": "furnace.grid_item_for_recipe_book",

    "collection_name": "$collection_name",
    "grid_rescaling_type": "horizontal",
    "grid_item_template": "$grid_item_template",
    "bindings": [
      {
        "binding_name": "#recipe_book_total_items",
        "binding_name_override": "#maximum_grid_items",
        "binding_condition": "$binding_condition",
        "binding_type": "collection",
        "binding_collection_name": "$collection_name"
      }
    ]
  },

  "scroll_grid_panel@common.root_panel": {
    "type": "input_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      { "grid@furnace.scroll_grid": {} }
    ]
  },

  "scroll_panel@common.container_scroll_panel": {
    "size": [ "100% - 12px", "100% - 12px" ],

    "$scrolling_content": "furnace.scroll_grid_panel",
    "$collection_name": "recipe_book",

    "$scrolling_panel_base_button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.destroy_selection",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_secondary_select",
        "to_button_id": "button.container_reset_held",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.destroy_selection",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_back",
        "to_button_id": "button.destroy_selection",
        "mapping_type": "pressed",
        "ignored": "(not $is_ps4)"
      },
      {
        "from_button_id": "button.controller_select",
        "to_button_id": "button.clear_hotbar_or_remove_one",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.controller_secondary_select",
        "to_button_id": "button.container_reset_held",
        "mapping_type": "pressed"
      }
    ]
  },

  "recipe_book_panel@common.root_panel": {
    "size": [ 146, 166 ],
    "controls": [
      {
        "gamepad_helper_bumpers@common.gamepad_helper_bumpers": {
          "size": [ 146, 16 ],
          "offset": [ 0, -5 ],
          "anchor_from": "top_left",
          "anchor_to": "bottom_left"
        }
      },
      {
        "tab_navigation_panel@furnace.tab_navigation_panel_layout": {
          "layer": 5,
          "size": [ 146, 23 ],
          "anchor_from": "top_left",
          "anchor_to": "bottom_left"
        }
      },
      {
        "bg@common.common_panel": {
          "$show_close_button": false
        }
      },
      {
        "tab_content_panel@furnace.tab_content": {
          "size": [ "100%", "100%" ],
          "$scroll_view_name": "tab_content_scroll_view",
          "layer": 8,
          "$scrolling_pane_control": "furnace.scroll_panel"
        }
      }
    ]
  },

  // #endregion

  //---------------------------------------------------------------------------
  // #region right panel (inventory and furnace crafting)
  //---------------------------------------------------------------------------

  "furnace_label": {
    "type": "label",
    "layer": 2,
    "offset": [ 0, -3 ],
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "text": "$container_title",
    "color": "$title_text_color",
    "localize": "$localize_title"
  },

  "furnace_input_panel": {
    "type": "panel",
    "size": [ "50%", "100%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "panel": {
          "type": "panel",
          "size": [ 16, 16 ],
          "anchor_from": "right_middle",
          "anchor_to": "right_middle",
          "controls": [
            { "furnace_ingredient_panel@furnace_ingredient_panel": {} },
            { "flame_panel@flame_panel": {} },
            { "furnace_fuel_panel@furnace_fuel_panel": {} }
          ]
        }
      }
    ]
  },

  "furnace_ingredient_panel": {
    "type": "panel",
    "size": [ 18, 18 ],
    "offset": [ -20, -19 ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "controls": [
      {
        "ingredient_item@common.container_item": {
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "$item_collection_name": "furnace_ingredient_items",

          "$background_images|default": "furnace.container_cell_images",

          "$focus_id": "furnace_ingredient_item",
          "$focus_override_up": "FOCUS_OVERRIDE_STOP",
          "$focus_override_up_binding_type": "none"
        }
      }
    ]
  },

  "furnace_fuel_panel": {
    "type": "panel",
    "size": [ 18, 18 ],
    "offset": [ -20, 19 ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "controls": [
      {
        "fuel_item@common.container_item": {
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "$item_collection_name": "furnace_fuel_items",

          "$focus_id": "furnace_fuel_item",
          "$focus_override_right": "furnace_output_item",
          "$focus_override_right_binding_type": "none"
        }
      }
    ]
  },

  "furnace_output_panel": {
    "type": "panel",
    "size": [ "50%", "100%" ],
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "controls": [
      {
        "output_item@common.container_item": {
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 26, 26 ],
          "$cell_image_size": [ 26, 26 ],
          "offset": [ 20, 0 ],
          "$item_collection_name": "furnace_output_items",

          "$background_images": "crafting.crafting_container_cell_images",

          "$focus_id": "furnace_output_item",
          "$focus_override_right_binding_type": "none",
          "$focus_override_right": "FOCUS_OVERRIDE_STOP",
          "$focus_override_left_binding_type": "none",
          "$focus_override_left": "furnace_fuel_item"
        }
      }
    ]
  },

  "furnace_panel_top_half": {
    "type": "panel",
    "size": [ "100%", "50% - 12px" ],
    "offset": [ 0, 7 ],
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "controls": [
      { "furnace_label@furnace_label": {} },
      { "input@furnace_input_panel": {} },
      {
        "furnace_arrow_empty_image@furnace_arrow_empty_image": {
          "anchor_to": "center",
          "anchor_from": "center"
        }
      },
      {
        "furnace_arrow_full_image@furnace_arrow_full_image": {
          "anchor_to": "center",
          "anchor_from": "center"
        }
      },
      { "output@furnace_output_panel": {} }
    ]
  },

  "right_panel@common.root_panel": {
    "layer": 1,
    "controls": [
      {
        "common_panel@common.common_panel": {
          "$show_close_button": false
        }
      },
      {
        "furnace_screen_inventory": {
          "type": "panel",
          "layer": 5,
          "controls": [
            { "furnace_panel_top_half@furnace.furnace_panel_top_half": {} },
            { "inventory_panel_bottom_half_with_label@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": {} },
      { "gamepad_cursor@common.gamepad_cursor_button": {} }
    ]
  },

  // #endregion

  //---------------------------
  // #region toolbar panel
  //---------------------------

  "toolbar_panel@common.crafting_root_input_panel": {
    "size": [ "100%c", 20 ],

    "controls": [
      {
        "toolbar_background@common.toolbar_background_image": {
          "size": [ "100%cm", "100% + 8px" ],
          "offset": [ 0, -3 ],
          "anchor_from": "top_right",
          "anchor_to": "top_right",

          "controls": [
            {
              "toolbar_stack_panel": {
                "type": "stack_panel",
                "orientation": "horizontal",
                "ttsSectionContainer": true,
                "size": [ "default", "100% - 8px" ],
                "offset": [ 0, 3 ],
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",

                "controls": [
                  {
                    "left_trigger_anchor": {
                      "type": "panel",
                      "size": [ 0, "100%" ],
                      "bindings": [
                        {
                          "binding_name": "#gamepad_helper_visible",
                          "binding_name_override": "#visible"
                        }
                      ],
                      "controls": [
                        {
                          "gamepad_helper_left_trigger@common.gamepad_helper_left_trigger": {
                            "offset": [ 3, -2 ],
                            "anchor_from": "left_middle",
                            "anchor_to": "right_middle"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "padding_0": {
                      "type": "panel",
                      "size": [ 8, 0 ]
                    }
                  },
                  {
                    "default_layout_toggle_panel": {
                      "type": "panel",
                      "size": [ 25, "100%" ],
                      "controls": [
                        {
                          "default_layout_toggle@common.recipe_book_layout_toggle": {
                            "$focus_override_left": "search_tab"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "padding_1": {
                      "type": "panel",
                      "size": [ 1, 0 ]
                    }
                  },
                  {
                    "only_inventory_layout_toggle_panel": {
                      "type": "panel",
                      "size": [ "100%c", "100%" ],
                      "controls": [
                        { "only_inventory_layout_toggle@common.survival_layout_toggle": {} }
                      ]
                    }
                  },
                  {
                    "padding_2": {
                      "type": "panel",
                      "size": [ 4, 0 ]
                    }
                  },
                  {
                    "help_button_panel": {
                      "type": "panel",
                      "size": [ "100%c", "100%" ],
                      "controls": [
                        {
                          "help_button@common.help_button": {
                            "layer": 5,
                            "$focus_id": "help_button",
                            "$focus_override_up": "FOCUS_OVERRIDE_STOP"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "close_button_panel": {
                      "type": "panel",
                      "size": [ 15, "100%" ],
                      "bindings": [
                        {
                          "binding_name": "#close_button_visible",
                          "binding_name_override": "#visible"
                        }
                      ],
                      "controls": [
                        {
                          "close_button@common.light_close_button": {
                            "offset": [ 0, 0 ],
                            "anchor_from": "center",
                            "anchor_to": "center"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "padding_3": {
                      "type": "panel",
                      "size": [ 6, 0 ]
                    }
                  },
                  {
                    "right_trigger_anchor": {
                      "type": "panel",
                      "size": [ 0, "100%" ],
                      "bindings": [
                        {
                          "binding_name": "#gamepad_helper_visible",
                          "binding_name_override": "#visible"
                        }
                      ],
                      "controls": [
                        {
                          "gamepad_helper_right_trigger@common.gamepad_helper_right_trigger": {
                            "offset": [ -2, -2 ],
                            "anchor_from": "right_middle",
                            "anchor_to": "left_middle"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "toolbar_anchor": {
    "type": "panel",
    "size": [ 0, 0 ],
    "inherit_max_sibling_height": true,
    "controls": [
      {
        "toolbar_panel@furnace.toolbar_panel": {
          "anchor_from": "top_right",
          "anchor_to": "bottom_right"
        }
      }
    ]
  },

  // #endregion

  //---------------------------------------------------------------------------
  // #region screen layout
  //---------------------------------------------------------------------------

  "screen_stack_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%c", "100%cm" ],
    "controls": [
      {
        "recipe_book_panel@furnace.recipe_book_panel": {
          "bindings": [
            {
              "binding_type": "global",
              "binding_name": "#is_recipe_book_layout",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "center_fold@common.center_fold": {
          "bindings": [
            {
              "binding_type": "global",
              "binding_name": "#is_recipe_book_layout",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      { "right_panel@furnace.right_panel": {} },
      { "toolbar_anchor@furnace.toolbar_anchor": {} }
    ]
  },

  "furnace_panel": {
    "type": "panel",
    "controls": [
      { "screen_stack_panel@furnace.screen_stack_panel": {} },

      { "selected_item_details_factory@common.selected_item_details_factory": {} },
      {
        "controller_gamepad_helpers_stack_panel": {
          "type": "stack_panel",
          "anchor_from": "bottom_middle",
          "anchor_to": "bottom_middle",
          "controls": [
            { "container_gamepad_helpers_second_row@furnace.container_gamepad_helpers_second_row": {} },
            {
              "container_gamepad_helpers@common.container_gamepad_helpers": {
                "$helper_x_control": "furnace.inventory_x_gamepad_helper",
                "$helper_y_control": "furnace.inventory_y_gamepad_helper",
                "$helper_a_control": "furnace.inventory_a_gamepad_helper"
              }
            }
          ],
          "bindings": [
            {
              "binding_name": "#gamepad_helper_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      { "item_lock_notification_factory@common.item_lock_notification_factory": {} },
      { "inventory_selected_icon_button@common.inventory_selected_icon_button": {} },
      { "inventory_take_progress_icon_button@common.inventory_take_progress_icon_button": {} },
      { "flying_item_renderer@common.flying_item_renderer": { "layer": 15 } }
    ]
  },

  // #endregion

  "furnace_screen@common.inventory_screen_common": {
    "close_on_player_hurt": true,
    "$screen_bg_content": "common.screen_background",
    "$screen_background_alpha": 0.4,
    "button_mappings": "$screen_button_mappings",

    "variables": [
      {
        "requires": "$desktop_screen",
        "$screen_content": "furnace.furnace_panel",
        "$screen_background_alpha": 0.4,
        "$screen_button_mappings": [
          {
            "from_button_id": "button.menu_cancel",
            "to_button_id": "button.menu_exit",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_inventory_cancel",
            "to_button_id": "button.menu_exit",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_up",
            "to_button_id": "button.menu_up",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_down",
            "to_button_id": "button.menu_down",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_left",
            "to_button_id": "button.menu_left",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_right",
            "to_button_id": "button.menu_right",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_select",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.menu_secondary_select",
            "to_button_id": "button.cursor_drop_one",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.menu_ok",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.controller_back",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed",
            "ignored": "(not $is_ps4)"
          },
          {
            "from_button_id": "button.controller_select",
            "to_button_id": "button.clear_hotbar_or_drop",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.controller_secondary_select",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.menu_clear",
            "to_button_id": "button.menu_clear",
            "mapping_type": "focused"
          },
          {
            "from_button_id": "button.menu_tab_left",
            "to_button_id": "button.left_panel_tab_decrement",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_tab_right",
            "to_button_id": "button.left_panel_tab_increment",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_alternate_tab_left",
            "to_button_id": "button.layout_increment",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_alternate_tab_right",
            "to_button_id": "button.layout_decrement",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.controller_secondary_select_left",
            "to_button_id": "button.shift_pane_focus",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.controller_secondary_select_right",
            "to_button_id": "button.clear_selected_recipe",
            "mapping_type": "global"
          }
        ]
      },
      {
        "requires": "$pocket_screen",
        "$screen_content": "furnace_pocket.furnace_panel",
        "$screen_background_alpha": 0.4,
        "$screen_button_mappings": [
          {
            "from_button_id": "button.menu_cancel",
            "to_button_id": "button.menu_exit",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_inventory_cancel",
            "to_button_id": "button.menu_exit",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_up",
            "to_button_id": "button.menu_up",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_down",
            "to_button_id": "button.menu_down",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_left",
            "to_button_id": "button.menu_left",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_right",
            "to_button_id": "button.menu_right",
            "mapping_type": "global",
            "scope": "view"
          },
          {
            "from_button_id": "button.menu_select",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.menu_secondary_select",
            "to_button_id": "button.cursor_drop_one",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.menu_ok",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.controller_back",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed",
            "ignored": "(not $is_ps4)"
          },
          {
            "from_button_id": "button.controller_select",
            "to_button_id": "button.cursor_drop_one",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.controller_secondary_select",
            "to_button_id": "button.cursor_drop_all",
            "mapping_type": "pressed"
          },
          {
            "from_button_id": "button.menu_tab_left",
            "to_button_id": "button.left_panel_tab_decrement",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_tab_right",
            "to_button_id": "button.left_panel_tab_increment",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_alternate_tab_left",
            "to_button_id": "button.left_panel_tab_increment",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_alternate_tab_right",
            "to_button_id": "button.left_panel_tab_decrement",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.controller_secondary_select_left",
            "to_button_id": "button.controller_secondary_select_left",
            "mapping_type": "global"
          },
          {
            "from_button_id": "button.menu_clear",
            "to_button_id": "button.menu_clear",
            "mapping_type": "focused"
          }
        ]
      }
    ]
  }
}
