{
  "namespace": "persona_emote",

  "emote_wheel_screen@common.base_screen": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.emote_wheel_exit_non_gamepad",
        "mapping_type": "global",
        "input_mode_condition": "not_gamepad"
      },
      {
        "from_button_id": "button.controller_start",
        "to_button_id": "button.dressing_room",
        "mapping_type": "global"
      },
      {
        "from_button_id": "key.emote",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ],
    "$screen_animations": [
      "@common.screen_exit_animation_push_fade",
      "@common.screen_exit_animation_pop_fade",
      "@common.screen_entrance_animation_push_fade",
      "@common.screen_entrance_animation_pop_fade"
    ],
    "$default_text_color": [ 0.7, 0.7, 0.7 ],
    "$screen_content": "persona_emote.emote_wheel_screen_content",
    "$screen_bg_content": "emote_wheel_touch_zone",
    "$is_full_screen_layout": true,
    "$fill_alpha": 0.0,
    "gamepad_cursor_deflection_mode": true
  },


  "emote_wheel_touch_zone@common_buttons.light_content_button": {
    "size": [ "100%", "100%" ],
    "$pressed_button_name": "button.menu_exit",
    "alpha": 0
  },

  "emote_wheel_screen_content": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%", "100%" ],
    "controls": [
      {
        "top_padding": {
          "type": "panel",
          "size": [ "100%", "fill" ]
        }
      },
      {
        "root_panel": {
          "type": "panel",
          "size": [ "100%", "55% + 35px" ],
          "controls": [
            {
              "emotes_panel@common.squaring_panel": {
                "$squaring_panel_content": "persona_common.emote_wheel_panel"
              }
            }
          ]
        }
      },
      {
        "instruction_padding": {
          "type": "panel",
          "size": [ "100%", 2 ]
        }
      },
      {
        "instruction_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "instruction_background": {
                "type": "image",
                "texture": "textures/ui/Black",
                "alpha": 0.7,
                "size": [ "100%c + 10px", "100%c + 14px" ],
                "min_size": [ 1 , "100%c + 14px" ],
                "max_size": [ "100%c + 10px", "100%c + 14px" ],
                "controls": [
                  {
                    "gamepad_instruction_stack": {
                      "type": "stack_panel",
                      "orientation": "vertical",
                      "size": [ "100%cm", "100%c" ],
                      "controls": [
                        {
                          "instruction_label_gamepad": {
                            "type": "label",
                            "size": [ "default", "default" ],
                            "max_size": [ 300, 28 ],
                            "offset": [ 0, -3 ],
                            "layer": 2,
                            "color": "$emote_screen_gamepad_instruction_colors",
                            "text_alignment": "center",
                            "text": "#emote_screen_instructions",
                            "font_type": "MinecraftTen",
                            "line_padding": 5.0,
                            "shadow": true,
                            "bindings": [
                              {
                                "binding_name": "#emote_screen_instructions",
                                "binding_condition": "always"
                              },
                              {
                                "binding_name": "#is_using_gamepad_override",
                                "binding_name_override": "#visible"
                              }
                            ]
                          }
                        },
                        {
                          "gamepad_helpers@common.empty_panel": {
                            "size": [ "100%sm", "100%c" ],
                            "controls": [
                              {
                                "gamepad_helper_stack": {
                                  "type": "stack_panel",
                                  "orientation": "horizontal",
                                  "size": [ "100%c", "100%cm" ],
                                  "offset": [ 0, 2 ],
                                  "controls": [
                                    {
                                      "gamepad_start@common.gamepad_helper_start": {
                                        "$gamepad_helper_visible_binding_name": "#is_using_gamepad_override"
                                      }
                                    },
                                    {
                                      "gamepad_exit_panel@common.empty_panel": {
                                        "size": [ 100, "100%sm" ],
                                        "controls": [
                                          {
                                            "gamepad_exit": {
                                              "type": "label",
                                              "color": "$f_color_format",
                                              "text": "#emote_screen_exit",
                                              "text_alignment": "center",
                                              "bindings": [
                                                {
                                                  "binding_name": "#emote_screen_exit",
                                                  "binding_condition": "always"
                                                },
                                                {
                                                  "binding_name": "#is_using_gamepad_override",
                                                  "binding_name_override": "#visible"
                                                }
                                              ]
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "instruction_label_keyboard": {
                      "type": "label",
                      "size": [ "default", "default" ],
                      "max_size": [ 300, 20 ],
                      "layer": 2,
                      "color": "$generic_button_text_color",
                      "text_alignment": "center",
                      "text": "emotes.instructions_keyboard",
                      "line_padding": 5.0,
                      "shadow": true,
                      "bindings": [
                        {
                          "binding_name": "#is_using_mouse",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  },
                  {
                    "instruction_label_touch": {
                      "type": "label",
                      "size": [ "default", "default" ],
                      "max_size": [ 300, 20 ],
                      "layer": 2,
                      "color": "$generic_button_text_color",
                      "text_alignment": "center",
                      "text": "emotes.instructions_touch",
                      "line_padding": 5.0,
                      "shadow": true,
                      "bindings": [
                        {
                          "binding_name": "#is_touch_mode",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "dressing_room_button_panel": {
          "type": "panel",
          "size": [ "100%", 27 ],
          "bindings": [
            {
              "binding_name": "(not #is_using_gamepad_override)",
              "binding_name_override": "#visible"
            }
          ],
          "controls": [
            {
              "dressing_room_button@common_buttons.light_text_button": {
                "$pressed_button_name": "button.dressing_room",
                "size": [ 120, 23 ],
                "enabled": "(not $store_disabled)",
                "$button_text": "emotes.change_emotes",
                "$default_text_color": "$light_button_default_text_color",

                "focus_change_down": "FOCUS_OVERRIDE_STOP",
                "focus_change_left": "emote_wheel",
                "focus_change_right": "emote_wheel",
                "bindings": [
                  {
                    "binding_name": "#dressing_room_button_visible",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "bottom_padding": {
          "type": "panel",
          "size": [ "100%", "fill" ]
        }
      }
    ]
  },

  "swap_emote_button@common_buttons.dark_text_button": {
    "$pressed_button_name": "button.rebind_emote",
    "size": [ "16%", "100%" ]
  }
}
