{
  "namespace": "realmsPlus_purchase_warning",

  "realmsPlus_purchase_warning_screen@common.base_screen": {
    "$screen_content": "realmsPlus_purchase_warning.purchase_warning_screen_content",
    "force_render_below": true,
    "$fill_alpha": 1,
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ]
  },

  "purchase_warning_screen_content": {
    "type": "panel",
    "controls": [
      {
        "main_panel@common_dialogs.main_panel_one_button": {
          "$text_name": "store.realmsPlus.purchase.warningDialog.title",
          "$button_panel": "realmsPlus_purchase_warning.warning_modal_button_panel",
          "$child_control": "realmsPlus_purchase_warning.warning_modal_main_panel",
          "size": "$world_conversion_complete_screen_size"
        }
      }
    ]
  },

  "warning_modal_main_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100% - 10px", "100% - 10px" ],
    "controls": [
      {
        "art_panel": {
          "type": "panel",
          "size": [ "fill", "100%" ],
          "controls": [
            {
              "art": {
                "type": "image",
                "texture": "textures/ui/realms_purchase_warning",
                "layer": 1
              }
            }
          ]
        }
      },
      {
        "padding": {
          "type": "panel",
          "size": [ "5px", "100%" ]
        }
      },
      {
        "text_panel": {
          "type": "stack_panel",
          "orientation": "vertical",
          "size": [ "65%", "100%" ],
          "controls": [
            {
              "description_panel": {
                "type": "panel",
                "size": [ "100%", "100%c" ],
                "controls": [
                  {
                    "description_text": {
                      "type": "label",
                      "size": [ "100%", "default" ],
                      "font_type": "smooth",
                      "text": "store.realmsPlus.purchase.warningDialog.body",
                      "color": "$store_white_text_color"
                    }
                  }
                ]
              }
            },
            {
              "padding": {
                "type": "panel",
                "size": [ "100%", "fill" ]
              }
            },
            {
              "checkbox_with_label_panel": {
                "type": "stack_panel",
                "orientation": "horizontal",
                "size": [ "100%", "10px" ],
                "controls": [
                  {
                    "checkbox_panel@common.checkbox": {
                      "size": [ "100%c", "100%" ],
                      "$toggle_name": "#understand_purchase_warning"
                    }
                  },
                  {
                    "padding": {
                      "type": "panel",
                      "size": [ "2px", "100%" ]
                    }
                  },
                  {
                    "label_panel": {
                      "type": "panel",
                      "size": [ "fill", "100%" ],
                      "controls": [
                        {
                          "label_text": {
                            "type": "label",
                            "size": [ "100%", "100%" ],
                            "text": "store.realmsPlus.purchase.warningDialog.checkbox",
                            "font_type": "smooth",
                            "anchor_from": "bottom_left",
                            "anchor_to": "bottom_left",
                            "color": "$store_white_text_color"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  },

  "warning_modal_button_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", "100%" ],
    "controls": [
      {
        "back_button@common_buttons.light_text_button": {
          "size": [ "50% - 3px", "100%" ],
          "$pressed_button_name": "button.goBack",
          "$button_text": "store.realmsPlus.purchase.warningDialog.button.back"
        }
      },
      {
        "padding": {
          "type": "panel",
          "size": [ "6px", "100%" ]
        }
      },
      {
        "continue_button@common_buttons.light_text_button": {
          "size": [ "50% - 3px", "100%" ],
          "$pressed_button_name": "button.continue",
          "$button_text": "store.realmsPlus.purchase.warningDialog.button.continue",
          "bindings": [
            {
              "binding_name": "#is_understand_checked",
              "binding_name_override": "#enabled"
            }
          ]
        }
      }
    ]
  }

}
