/********************************************************
+*   (c) Mojang. All rights reserved                       *
+*   (c) Microsoft. All rights reserved.                   *
+*********************************************************/

{
  "namespace": "rating_prompt",

  "padding_horizontal": {
    "type": "panel",
    "size": [ 2, "100%" ]
  },

  "padding_vertical": {
    "type": "panel",
    "size": [ "100%", 2 ]
  },

  "rating_prompt_yes_label": {
    "type": "panel",
    "layer": 2,
    "controls": [
      {
        "button_label": {
          "type": "label",
          "color": "$text_color",
          "text": "#ButtonName",
          "bindings": [
            {
              "binding_name": "#ButtonName"
            }
          ]
        }
      }
    ]
  },

  "rating_prompt_no_label": {
    "type": "panel",
    "layer": 2,
    "controls": [
      {
        "button_label": {
          "type": "label",
          "color": "$text_color",
          "text": "gui.no"
        }
      }
    ]
  },

  "rating_prompt_yes_button@common_buttons.light_content_button": {
    "$pressed_button_name": "button.rating_yes_button",
    "$button_content": "rating_prompt.rating_prompt_yes_label"
  },
  "rating_prompt_no_button@common_buttons.light_content_button": {
    "$pressed_button_name": "button.rating_no_button",
    "$button_content": "rating_prompt.rating_prompt_no_label"
  },

  "dialog_image": {
    "type": "image",
    "layer": 2,
    "texture": "#texture",
    "size": [ 71, "71%x" ],
    "bindings": [
      {
        "binding_name": "#texture"
      }
    ]
  },

  "dialog_image_with_border": {
    "type": "image",
    "layer": 1,
    "texture": "textures/ui/Grey",
    "size": [ "100%", "100%-4px" ],
    "controls": [
      {
        "dialog_image@rating_prompt.dialog_image": {}
      }
    ]
  },

  "button_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%-77px", "100%" ],
    "controls": [
      {
        "padding_3@rating_prompt.padding_vertical": {}
      },
      {
        "yes_button@rating_prompt.rating_prompt_yes_button": {
          "size": [ "100%-2px", "50%-2px" ]
        }
      },
      {
        "no_button@rating_prompt.rating_prompt_no_button": {
          "size": [ "100%-2px", "50%-2px" ]
        }
      }
    ]
  },

  "image_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ 73, "100%" ],
    "controls": [
      {
        "padding_2@rating_prompt.padding_vertical": {}
      },
      {
        "dialog_image_with_border@rating_prompt.dialog_image_with_border": {}
      }
    ]
  },

  "main_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", "100%" ],
    "controls": [
      {
        "padding_0@rating_prompt.padding_horizontal": {}
      },
      {

        "image_panel@rating_prompt.image_panel": {}
      },
      {
        "padding_1@rating_prompt.padding_horizontal": {}
      },
      {
        "button_panel@rating_prompt.button_panel": {}
      }
    ]
  },

  // -----------------------------------------------
  //
  //    screen
  //
  // -----------------------------------------------
  "rating_prompt_screen@common.base_screen": {
    "$screen_content": "rating_prompt.rating_prompt_screen_content"
  },

  "rating_prompt_screen_content@common_dialogs.main_panel_no_buttons": {
    "size": "$rating_prompt_screen_size",
    "$title_panel": "common_dialogs.standard_title_label",
    "$text_name": "#title",
    "$title_text_binding_type": "global",
    "$child_control": "rating_prompt.main_panel",
    "$show_close_button": false
  }
}
