{
  "namespace": "phud_battleWait",

  "main": {
    "type": "image",
    "texture": "textures/ui/battle/white_transparency",
    "color": [0.749, 0.168, 0.211],
    "layer": 1000,
    "keep_ratio": true,
    "fill": true,
    "anchor_from": "bottom_left",
    "anchor_to": "bottom_left",
    "size": ["100%", "30%"],
    "controls": [
      {
        "main_holder": {
          "type": "stack_panel",
          "size": ["100%", "95%"],
          "orientation": "horizontal",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "controls": [
            {
              "menu_extra": {
                "type": "image",
                "texture": "textures/ui/battle/white_transparency",
                "color": [0.137, 0.125, 0.125],
                "layer": 2,
                "keep_ratio": true,
                "fill": true,
                "anchor_from": "bottom_left",
                "anchor_to": "bottom_left",
                "size": ["85%", "100%"],
                "controls": [
                  {
                    "text": {
                      "type": "label",
                      "anchor_from": "top_middle",
                      "anchor_to": "top_middle",
                      "text": "#text",
                      "layer": 1002,
                      "localize": true,
                      "font_size": "normal",
                      "text_alignment": "center",
                      "offset": [0, 0],
                      "bindings": [
                        {
                          "binding_type": "view",
                          "source_control_name": "elements",
                          "source_property_name": "#battleLog",
                          "target_property_name": "#log_text"
                        },
                        {
                          "binding_type": "view",
                          "source_property_name": "(#log_text - (%.62s * #log_text))",
                          "target_property_name": "#text"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "info_label": {
                "type": "label",
                "localize": false,
                "text": "#text",
                "color": "default",
                "alpha": 1,
                "text_alignment": "center",
                "font_scale_factor": 1,
                "anchor_from": "center",
                "anchor_to": "center",
                "size": ["fill", "100%"],
                "layer": 3,
                "shadow": false,
                "bindings": [
                  {
                    "binding_type": "view",
                    "source_control_name": "elements",
                    "source_property_name": "#battleLog",
                    "target_property_name": "#info_label"
                  },
                  {
                    "binding_type": "view",
                    "source_property_name": "((%.60s * #info_label) - '_')",
                    "target_property_name": "#text"
                  }
                ]
              }
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "elements",
        "source_property_name": "#battleLog",
        "target_property_name": "#battleLog"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not (#battleLog = ''))",
        "target_property_name": "#visible"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not (#battleLog = ''))",
        "target_property_name": "#enabled"
      }
    ]
  }
}
