/********************************************************
+*   (c) Mojang. All rights reserved                       *
+*   (c) Microsoft. All rights reserved.                   *
+*********************************************************/

{
  "namespace": "simple_inprogress",

  "title_text": {
    "type": "label",
    "layer": 2,
    "text": "xbl.savePurchase.saveButton",
    "color": "$title_text_color",
    "shadow": false
  },

  "main_panel": {
    "type": "panel",
    "size": "$dialog_size",
    "controls": [
      {
        "common_panel@common.common_panel": {
          "size": [ "100%", "100%" ],
          "$dialog_background": "dialog_background_hollow_3"
        }
      },
      {
        "title@simple_inprogress.title_text": {
          "offset": [ 10, 9 ],
          "size": [ "100%", 15 ],
          "anchor_to": "top_middle",
          "anchor_from": "top_middle",
          "text": "#in_progress_title",
          "bindings": [
            {
              "binding_name": "#in_progress_title"
            }
          ]
        }
      },
      {
        "main_content": {
          "anchor_from": "top_left",
          "anchor_to": "top_left",
          "size": [ "100%-21px", "100%-52px" ],
          "offset": [ 10, 24 ],
          "type": "label",
          "layer": 1,
          "$in_progress_text_binding": "#in_progress_text_binding",
          "text": "$in_progress_text_binding",
          "color": "$sub_header_text_color",
          "shadow": false,
          "bindings": [
            {
              "binding_name": "$in_progress_text_binding",
              "binding_condition": "once"
            }
          ]
        }
      },
      {
        "progress_loading_bars@play.progress_loading_bars": {
          "offset": [ 0, 20 ],
          "anchor_from": "center",
          "anchor_to": "center"
        }
      }
    ]
  },

  // -----------------------------------------------
  //
  //    screen
  //
  // -----------------------------------------------

  "simple_inprogress_screen@common.base_screen": {
    "$dialog_size": [ 200, 100 ],
    "$screen_content": "simple_inprogress.simple_inprogress_screen_content",
    "force_render_below": true
  },

  "simple_inprogress_screen_content": {
    "type": "panel",
    "controls": [
      {
        "root_panel": {
          "type": "panel",
          "controls": [
            { "main_panel@simple_inprogress.main_panel": { "layer": 1 } }
          ]
        }
      }
    ]
  }
}