{
  "namespace": "common",

  "myanimexitpush": {
    "anim_type": "offset",
    "easing": "out_cubic",
    "duration": 0.3,
    "from": [0, 0],
    "to": [0, 0],
    "play_event": "screen.exit_push",
    "end_event": "screen.exit_end"
  },

  "myanimexitpop": {
    "anim_type": "offset",
    "easing": "out_cubic",
    "duration": 0.3,
    "from": [0, 0],
    "to": [0, 0],
    "play_event": "screen.exit_pop",
    "end_event": "screen.exit_end"
  },

  "base_screen_custom": {
    "type": "screen",
    "vr_mode": "$is_holographic",
    "$screen_content|default": "common.base_screen_empty_panel",
    "$screen_bg_content|default": "common.base_screen_empty_panel",
    "$screen_animations|default": [
      "@common.myanimexitpush",
      "@common.myanimexitpop"
    ],
    "$background_animations|default": [
      "@common.myanimexitpush",
      "@common.myanimexitpop"
    ],
    "$use_loading_bars|default": true,
    "$is_full_screen_layout|default": false,
    "$safezone_screen_matrix_layer|default": 2,
    "controls": [
      {
        "variables_button_mappings_and_controls": {
          "type": "input_panel",
          "hover_enabled": false,
          "prevent_touch_input": false,
          "ttsSectionContainer": true,
          "variables": [
            // Screen sizes - you should be using one of these unless explicitly told otherwise - in which case that size should be added as a variable here
            // Win10
            {
              //Desktop Texel Size: [376, 250]
              "requires": "$desktop_screen",
              "$narrow_screen_size": [280, "100% - 10px"], // Realms Pending Invitations, Add Players
              "$play_screen_size": [282, "100% - 50px"], // Play Screen
              "$tabbed_upsell_screen_size": [310, 173], // Trial Tabbed Upsell Screen
              "$realms_create_screen_size": [267, 240], // Realms Create
              "$large_screen_size": [317, "100% - 10px"], // Multiplayer Invitations
              "$store_screen_size": ["100% - 4px", "100% - 4px"], // Store Home
              "$skin_pack_screen_size": ["100% - 4px", "100% - 50px"], // Skin Pack
              "$resource_pack_screen_size": ["100% - 50px", "45%x + 65px"], // Texture Pack
              "$upsell_screen_size": ["177%y - 208.5px", "100% - 4px"], // Skin Pack Upsell
              "$create_world_upsell_screen_size": [360, 183],
              "$create_realm_upsell_screen_size": [360, 183],
              "$create_realm_upsell_play_screen_size": [360, 213],
              "$max_create_world_upsell_screen_size": [360, "100% - 4px"],
              "$min_resource_pack_screen_size": [372, 232.4],
              "$max_resource_pack_screen_size": [400, 246],
              "$max_upsell_screen_size": [250, 259.125],
              "$rating_prompt_screen_size": [250, 87],
              "$max_skin_pack_screen_size": [
                310,
                "56.25%x - 65.25px + 118.5px"
              ],
              "$extra_large_screen_size": ["100% - 4px", "100% - 4px"], // Skin Picker, Command Block screen
              "$extra_large_max_screen_size": [370, "100% - 50px"],
              "$xbl_immediate_signin_screen_size": [317, 158], // XBL Immediate Signin Popup
              "$xbl_optional_signin_screen_size": [317, 158], // XBL Optional Signin Popup
              "$xbl_console_signin_screen_size": [316, 161], // XBL Console Signin Popup
              "$xbl_console_signin_succeeded_screen_size": [230, "100% - 50px"], // XBL Console Signin Succeeded Popup
              "$xbl_first_launch_screen_size": [317, 146], // XBL First Launch Popup, Trial Upsell
              "$xbl_gamer_profile_screen_size": [260, "100% - 50px"], // XBL Console Signin Succeeded Popup
              "$modal_screen_size": [204, 140], // Pop-up dialogue boxes and modal progress screens
              "$tall_modal_screen_size": [204, 172],
              "$patch_notes_screen_size": [300, "100% - 4px"], // Patch Notes Screen
              "$sign_screen_size": [185, 90], // Sign Screen
              "$mob_effect_screen_size": ["90%", "90%"], // Mob Effect Screen
              "$purchase_coin_screen_size": ["90%", "17%x + 82px"], //Coin Purchase Screen
              "$purchase_coin_screen_size_extended": ["90%", "17%x + 117px"], //Coin Purchase Screen, with FAQ
              "$purchase_coin_screen_size_not_enough": ["90%", "17%x + 97px"], //Coin Purchase Screen, when not enough coins for current purchase
              "$purchase_coin_screen_size_extended_not_enough": [
                "90%",
                "17%x + 132px"
              ], //Coin Purchase Screen, when not enough coins for current purchase, with FAQ
              "$choose_realm_screen_size": ["70%", "85%"], //Choose Realm Screen
              "$custom_templates_screen_size": ["70%", "85%"], //Custom Templates Screen
              "$world_modal_screen_size": [290, 100], // world convert and world loading modal progress screens
              "$day_one_experience_intro_screen_size": ["60%", "85%"], // Day One Experience intro popup
              "$day_one_experience_import_progress_screen_size": ["80%", "90%"], // Day One Experience import progress modal screen
              "$world_conversion_complete_screen_size": [290, 160], // World Conversion complete modal screen
              "$gamepad_disconnect_screen_size": [300, 100], //custom gamepad disconnected modal size, to contain all languages in title
              "$storage_migration_progress_size": [290, 100],
              "$store_modal_screen_size": ["80%", "80%"]
            },
            // PE edition and VR
            {
              //Pocket Texel Size:  [320, 210]
              "requires": "($pocket_screen or $is_holographic)",
              "$narrow_screen_size": ["90.3225%", "100% - 4px"], // Realms Pending Invitations, Add Players
              "$play_screen_size": ["83.4375%", "100% - 4px"], // Play Screen
              "$tabbed_upsell_screen_size": [310, 173], // Trial Tabbed Upsell Screen
              "$realms_create_screen_size": ["71.2766%", "100% - 4px"], // Realms Create
              "$large_screen_size": ["70.3215%", "100% - 4px"], // Multiplayer Invitations
              "$store_screen_size": ["100% - 4px", "100% - 4px"], // Store Home, purchase Skin Pack
              "$skin_pack_screen_size": ["100% - 4px", "100% - 4px"], // Skin Pack
              "$resource_pack_screen_size": ["100% - 50px", "45%x + 65px"], // Texture Pack
              "$upsell_screen_size": ["100% - 76px", "100% - 4px"], // Skin Pack Upsell
              "$create_world_upsell_screen_size": ["100% - 4px", 223],
              "$create_realm_upsell_screen_size": ["100% - 4px", 223],
              "$create_realm_upsell_play_screen_size": ["100% - 4px", 219],
              "$max_create_world_upsell_screen_size": [
                "100% - 4px",
                "100% - 4px"
              ],
              "$min_resource_pack_screen_size": [306, 202.7],
              "$max_resource_pack_screen_size": [313.3, 206],
              "$max_upsell_screen_size": ["100% - 76px", "56.25%x + 118.5px"],
              "$max_skin_pack_screen_size": [
                "100% - 4px",
                "56.25%x - 65.25px + 118.5px"
              ],
              "$extra_large_screen_size": ["100% - 4px", "100% - 4px"], // Skin Picker, Command Block screen
              "$extra_large_max_screen_size": [370, "100% - 50px"],
              "$xbl_immediate_signin_screen_size": [316, 153], // XBL Immediate Signin Popup
              "$xbl_optional_signin_screen_size": [316, 153], // XBL Optional Signin Popup
              "$xbl_console_signin_screen_size": [316, 161], // XBL Console Signin Popup
              "$xbl_console_signin_succeeded_screen_size": [230, "100% - 4px"], // XBL Console Signin Succeeded Popup
              "$xbl_first_launch_screen_size": [316, 146], // XBL First Launch Popup, Trial Upsell
              "$xbl_gamer_profile_screen_size": [316, "100% - 4px"], // XBL Console Signin Succeeded Popup
              "$modal_screen_size": [204, 140], // Pop-up dialogue boxes and modal progress screens
              "$rating_prompt_screen_size": [250, 87],
              "$tall_modal_screen_size": [204, 172],
              "$patch_notes_screen_size": [300, "100% - 4px"], // Patch Notes Screen
              "$sign_screen_size": [185, 90], // Sign Screen
              "$mob_effect_screen_size": ["90%", "90%"], // Mob Effect Screen
              "$purchase_coin_screen_size": ["90%", "17%x + 82px"], //Coin Purchase Screen
              "$purchase_coin_screen_size_extended": ["90%", "17%x + 117px"], //Coin Purchase Screen, with FAQ
              "$purchase_coin_screen_size_not_enough": ["90%", "17%x + 97px"], //Coin Purchase Screen, when not enough coins for current purchase
              "$purchase_coin_screen_size_extended_not_enough": [
                "90%",
                "17%x + 132px"
              ], //Coin Purchase Screen, when not enough coins for current purchase, with FAQ
              "$choose_realm_screen_size": ["70%", "85%"], //Choose Realm Screen
              "$custom_templates_screen_size": ["70%", "85%"], //Custom Templates Screen
              "$world_modal_screen_size": [290, 100], // world convert and world loading modal progress screens
              "$day_one_experience_intro_screen_size": ["60%", "85%"], // Day One Experience intro popup
              "$day_one_experience_import_progress_screen_size": ["80%", "90%"], // Day One Experience import progress modal screen
              "$world_conversion_complete_screen_size": [290, 160], // World Conversion complete modal screen
              "$gamepad_disconnect_screen_size": [300, 100], //custom gamepad disconnected modal size, to contain all languages in title
              "$storage_migration_progress_size": [290, 100],
              "$store_modal_screen_size": ["100% - 20px", "100% - 20px"]
            }
          ],
          "button_mappings": [
            {
              "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"
            }
          ],
          "controls": [
            {
              "bg_no_safezone_screen_panel@$screen_bg_content": {
                "anims": "$background_animations",
                "animation_reset_name": "screen_animation_reset",
                "propagate_alpha": true,
                "disable_anim_fast_forward": true,
                "layer": 2
              }
            },
            {
              "safezone_screen_matrix@common.safezone_outer_matrix": {
                "anims": "$screen_animations",
                "animation_reset_name": "screen_animation_reset",
                "propagate_alpha": true,
                "disable_anim_fast_forward": true,
                "layer": "$safezone_screen_matrix_layer"
              }
            },
            {
              "screen_background@common_dialogs.full_screen_background": {
                "anims": "$screen_animations",
                "animation_reset_name": "screen_animation_reset",
                "propagate_alpha": true,
                "disable_anim_fast_forward": true,
                "layer": -1
              }
            }
          ]
        }
      },
      {
        "loading_bars_background": {
          "type": "image",
          "visible": "$use_loading_bars",
          "texture": "textures/ui/effect_background",
          "size": ["33%", "100%c + 16px"],
          "alpha": 0.0,
          "propagate_alpha": true,
          "animation_reset_name": "screen_animation_reset",
          "disable_anim_fast_forward": true,

          "controls": [
            {
              "loading_bars@common_store.progress_loading_bars": {
                "size": ["100%", "8%x"],
                "max_size": []
              }
            }
          ],

          "anims": [
            "@common.loading_bar_init_animation_push",
            "@common.loading_bar_init_animation_pop"
          ]
        }
      }
    ]
  }
}
