{
  "namespace": "battle",

  "main": {
    "type": "panel",
    "size": ["100%", "100%"],
    "controls": [
      {
        "battle_menu": {
          "type": "image",
          "texture": "textures/ui/battle/white_transparency",
          "color": [0.749, 0.168, 0.211],
          "layer": 1,
          "keep_ratio": true,
          "fill": true,
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "size": ["100%", "29%"],
          "controls": [
            {
              "main_buttons_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": [
                        {
                          "left_button_panel@battle.button_stack": {
                            "size": ["100%", "100%"],
                            "layer": 3,
                            "$button": "battle.battle_action_button"
                          }
                        },
                        {
                          "move_selection_button@battle.button_stack": {
                            "size": ["100%", "100%"],
                            "layer": 3,
                            "offset": ["55%", "20%"],
                            "anchor_from": "center",
                            "anchor_to": "center",
                            "$button": "battle.move_selection_button"
                          }
                        },
                        {
                          "button_grid_middle": {
                            "type": "image",
                            "texture": "textures/ui/battle/white_transparency",
                            "color": ["black"],
                            "alpha": 0,
                            "layer": 1,
                            "keep_ratio": true,
                            "fill": true,
                            "anchor_from": "center",
                            "anchor_to": "center",
                            "size": ["80%", "95%"],
                            "offset": ["9%", 0],
                            "controls": [
                              {
                                "grid_panel@battle.button_stack": {
                                  "size": ["100%", "100%"],
                                  "layer": 4,

                                  "$button": "battle.grid_button"
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  },
                  {
                    "info_label": {
                      "type": "label",
                      "localize": false,
                      "text": "#form_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
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "actors_details_selection": {
          "type": "panel",
          "size": ["100%", "70%"],
          "offset": ["0%", "30%"],
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left",
          "controls": [
            {
              "opponent_actors@battle.button_stack": {
                "size": ["100%", "100%"],
                "layer": 21,

                "$button": "battle.ally_actor_details_button"
              }
            },
            {
              "ally_actors@battle.button_stack": {
                "size": ["100%", "100%"],
                "layer": 21,

                "$button": "battle.opponent_actor_details_button"
              }
            }
          ]
        }
      }
    ]
  },

  "simple_button@common_buttons.light_text_button": {
    "$pressed_button_name": "button.form_button_click",
    "$size|default": ["100%", "100%"],
    "size": "$size",
    "anchor_from": "center",
    "anchor_to": "center",
    "offset": [0, 0],
    "$border_visible": false,
    "$hover_text_index|default": 53,
    "controls": [
      {
        "default@$button_state_panel": {
          "$new_ui_button_texture": "$default_button_texture",
          "$text_color": "$default_text_color",
          "$secondary_text_color": "$light_button_secondary_default_text_color",
          "$content_alpha": "$default_content_alpha",
          "$border_color": "$light_border_default_color",
          "$border_layer": 2,
          "$default_state": true,
          "$button_alpha": "$default_button_alpha",
          "layer": 1
        }
      },
      {
        "hover@battle.button_hover_control": {
          "$new_ui_button_texture": "$hover_button_texture",
          "$text_color": "$hover_text_color",
          "$secondary_text_color": "$light_button_secondary_hover_text_color",
          "$content_alpha": 1,
          "$border_color": "$light_border_hover_color",
          "$border_layer": 4,
          "$hover_state": true,
          "$button_alpha": "$default_hover_alpha",
          "layer": 4
        }
      },
      {
        "pressed@$button_state_panel": {
          "$new_ui_button_texture": "$pressed_button_texture",
          "$text_color": "$pressed_text_color",
          "$secondary_text_color": "$light_button_secondary_pressed_text_color",
          "$button_offset|default": "$button_pressed_offset",
          "$content_alpha": "$pressed_alpha",
          "$border_color": "$light_border_pressed_color",
          "$border_layer": 5,
          "$pressed_state": true,
          "$button_alpha": "$default_pressed_alpha",
          "layer": 5
        }
      },
      {
        "locked@$button_state_panel": {
          "$new_ui_button_texture": "$locked_button_texture",
          "$text_color": "$locked_text_color",
          "$secondary_text_color": "$light_button_secondary_locked_text_color",
          "$content_alpha": "$locked_alpha",
          "$border_color": "$light_border_locked_color",
          "$button_image": "common_buttons.locked_button_image",
          "$border_layer": 1,
          "$locked_state": true,
          "layer": 1
        }
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "form_buttons"
      },
      {
        "binding_type": "collection",
        "binding_collection_name": "form_buttons",
        "binding_condition": "none",
        "binding_name": "#form_button_text",
        "binding_name_override": "#form_button_text"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not((%.1s * #form_button_text) = ' '))",
        "target_property_name": "#enabled"
      }
    ]
  },

  "button_stack": {
    "type": "stack_panel",
    "size": ["100%", "100%c"],
    "orientation": "vertical",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$button|default": "default_form.button",
    "factory": {
      "name": "buttons",
      "control_name": "$button"
    },
    "collection_name": "form_buttons",
    "bindings": [
      {
        "binding_name": "#form_button_length",
        "binding_name_override": "#collection_length"
      }
    ]
  },

  "button_hover_control": {
    "type": "image",
    "texture": "$new_ui_button_texture",
    "$hover_text_index|default": 0,
    "controls": [
      {
        "hover_text": {
          "type": "custom",
          "renderer": "hover_text_renderer",
          "allow_clipping": false,
          "layer": 30,
          "bindings": [
            {
              "binding_name": "#form_button_text",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_type": "view",
              "source_property_name": "(#form_button_text - (('%.' + $hover_text_index + 's') * #form_button_text))",
              "target_property_name": "#hover_text"
            },
            {
              "binding_type": "collection_details",
              "binding_collection_name": "form_buttons"
            }
          ]
        }
      }
    ]
  },

  "battle_action_button": {
    "type": "panel",
    "size": ["100%", "100%c"],
    "$bag_button_id": "battleButton:bag",
    "$pokemon_button_id": "battleButton:pokemon",
    "$run_button_id": "battleButton:run",

    "controls": [
      {
        "bag_button@battle.bag_button": {
          "bindings": [
            {
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not((#form_button_text - $bag_button_id) = #form_button_text))",
              "target_property_name": "#visible"
            }
          ]
        }
      },
      {
        "poke_button@battle.party_pokemon_button": {
          "bindings": [
            {
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not((#form_button_text - $pokemon_button_id) = #form_button_text))",
              "target_property_name": "#visible"
            }
          ]
        }
      },
      {
        "run_button@battle.run_button": {
          "bindings": [
            {
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not((#form_button_text - $run_button_id) = #form_button_text))",
              "target_property_name": "#visible"
            }
          ]
        }
      }
    ]
  },

  "bag_button": {
    "type": "panel",
    "size": ["100%", "7%x"],
    "offset": ["-45.5%", "-13%"],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "form_button@battle.simple_button": {
          "$default_button_texture": "textures/ui/battle/menu_bag",
          "$hover_button_texture": "textures/ui/battle/menu_bag_hover",
          "$pressed_button_texture": "textures/ui/battle/menu_bag",
          "$locked_button_texture": "textures/ui/battle/menu_bag_disabled",
          "$hover_text_index": 16,
          "$size": ["25%", "80%"]
        }
      }
    ]
  },

  "party_pokemon_button": {
    "type": "panel",
    "size": ["100%", "7%x"],
    "offset": ["-45.5%", "-26%"],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "form_button@battle.simple_button": {
          "$default_button_texture": "textures/ui/battle/menu_poke",
          "$hover_button_texture": "textures/ui/battle/menu_poke_hover",
          "$pressed_button_texture": "textures/ui/battle/menu_poke",
          "$locked_button_texture": "textures/ui/battle/menu_poke_disabled",
          "$hover_text_index": 20,
          "$size": ["25%", "80%"]
        }
      }
    ]
  },

  "run_button": {
    "type": "panel",
    "size": ["100%", "7%x"],
    "offset": ["-45.5%", "-38%"],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "form_button@battle.simple_button": {
          "$default_button_texture": "textures/ui/battle/menu_run",
          "$hover_button_texture": "textures/ui/battle/menu_run_hover",
          "$pressed_button_texture": "textures/ui/battle/menu_run",
          "$locked_button_texture": "textures/ui/battle/menu_run_disabled",
          "$hover_text_index": 16,
          "$size": ["25%", "80%"]
        }
      }
    ]
  },

  "move_selection_button": {
    "type": "panel",
    "size": ["10%", "60%"],
    "anchor_from": "center",
    "anchor_to": "center",
    "layer": 15,
    "controls": [
      {
        "button@battle.simple_button": {
          "$default_button_texture": "textures/ui/battle/moveSelection_badge_background",
          "$hover_button_texture": "textures/ui/battle/moveSelection_blank_badge",
          "$pressed_button_texture": "textures/ui/battle/moveSelection_blank_badge",
          "$locked_button_texture": "textures/ui/battle/moveSelection_badge_background",
          "$border_visible": false,
          "$hover_text_index": 27
        }
      },
      {
        "front_image": {
          "type": "image",
          "alpha": 1,
          "size": ["85%", "85%"],
          "layer": 16,
          "anchor_from": "center",
          "anchor_to": "center",
          "bindings": [
            {
              "binding_type": "collection_details",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_name": "#form_button_texture_file_system",
              "binding_name_override": "#texture_file_system",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_name": "#form_button_texture",
              "binding_name_override": "#texture",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#form_button_text",
        "binding_name_override": "#form_button_text",
        "binding_type": "collection",
        "binding_collection_name": "form_buttons"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not((#form_button_text - 'battleButton:move_selection') = #form_button_text))",
        "target_property_name": "#visible"
      }
    ]
  },

  "grid_button_check_id@battle.move_button": {
    "$button_id|default": "b:1_",
    "bindings": [
      {
        "binding_name": "#form_button_text",
        "binding_name_override": "#form_button_text",
        "binding_type": "collection",
        "binding_collection_name": "form_buttons"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not((#form_button_text - $button_id) = #form_button_text))",
        "target_property_name": "#visible"
      }
    ]
  },

  "grid_button": {
    "type": "panel",
    "size": ["100%", "100%c"],
    "controls": [
      {
        "1@battle.grid_button_check_id": {
          "$icon_offset": ["-15%", "-14%"],
          "$offset": ["-19%", "25%"],
          "$button_id": "b:1_"
        }
      },
      {
        "2@battle.grid_button_check_id": {
          "$icon_offset": ["-15%", "-14%"],
          "$offset": ["-19%", "80%"],
          "$button_id": "b:2_"
        }
      },
      {
        "3@battle.grid_button_check_id": {
          "$icon_offset": ["15%", "-14%"],
          "$offset": ["21.5%", "-175%"],
          "$button_id": "b:3_"
        }
      },
      {
        "4@battle.grid_button_check_id": {
          "$icon_offset": ["15%", "-14%"],
          "$offset": ["21.5%", "-120%"],
          "$button_id": "b:4_"
        }
      }
    ]
  },

  "move_button": {
    "type": "panel",
    "size": ["100%", "7%x"],
    "offset": "$offset",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "controls": [
      {
        "button": {
          "type": "panel",
          "anchor_from": "center",
          "anchor_to": "center",
          "size": ["40%", "150%"],
          "controls": [
            {
              "form_button@battle.simple_button": {
                "$default_button_texture": "textures/ui/battle/moveSelection",
                "$hover_button_texture": "textures/ui/battle/moveSelection_hover",
                "$pressed_button_texture": "textures/ui/battle/moveSelection",
                "$locked_button_texture": "textures/ui/battle/moveSelection_locked",
                "$hover_text_index": 53
              }
            }
          ]
        }
      },
      {
        "name": {
          "type": "label",
          "size": ["100%", "100%"],
          "offset": ["40%", "20%"],
          "layer": 10,
          "anchor_from": "center",
          "anchor_to": "center",
          "text": "#text",
          "color": "black",
          "bindings": [
            {
              "binding_type": "collection",
              "binding_collection_name": "form_buttons",
              "binding_condition": "none",
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "((%.15s * (#form_button_text - (%.21s * #form_button_text))) - '_')",
              "target_property_name": "#text"
            }
          ]
        }
      },
      {
        "icon": {
          "type": "image",
          "layer": 10,
          "size": [20, 20],
          "offset": "$icon_offset",
          "texture": "#texture",
          "bindings": [
            {
              "binding_type": "collection",
              "binding_collection_name": "form_buttons",
              "binding_condition": "none",
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "(('textures/ui/gui/attacks/' + (%.8s * (#form_button_text - (%.4s * #form_button_text)))) - '_')",
              "target_property_name": "#texture"
            }
          ]
        }
      },
      {
        "pp_text": {
          "type": "label",
          "size": ["100%", "100%"],
          "offset": ["45%", "89%"],
          "layer": 11,
          "anchor_from": "center",
          "anchor_to": "center",
          "text": "#text",
          "font_scale_factor": 0.8,
          "color": "white",
          "bindings": [
            {
              "binding_type": "collection",
              "binding_collection_name": "form_buttons",
              "binding_condition": "none",
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "((%.7s * (#form_button_text - (%.36s * #form_button_text))) - '_')",
              "target_property_name": "#text"
            }
          ]
        }
      },
      {
        "null@battle.pp_bar": {
          "$bar": "_null",
          "size": ["0%", "29%"]
        }
      },
      {
        "0@battle.pp_bar": {
          "$bar": "_0",
          "size": ["0%", "29%"]
        }
      },
      {
        "1@battle.pp_bar": {
          "$bar": "_1",
          "size": ["1.965%", "29%"]
        }
      },
      {
        "2@battle.pp_bar": {
          "$bar": "_2",
          "size": ["3.93%", "29%"]
        }
      },
      {
        "3@battle.pp_bar": {
          "$bar": "_3",
          "size": ["5.895%", "29%"]
        }
      },
      {
        "4@battle.pp_bar": {
          "$bar": "_4",
          "size": ["7.86%", "29%"]
        }
      },
      {
        "5@battle.pp_bar": {
          "$bar": "_5",
          "size": ["9.825%", "29%"]
        }
      },
      {
        "6@battle.pp_bar": {
          "$bar": "_6",
          "size": ["11.79%", "29%"]
        }
      },
      {
        "7@battle.pp_bar": {
          "$bar": "_7",
          "size": ["13.755%", "29%"]
        }
      },
      {
        "8@battle.pp_bar": {
          "$bar": "_8",
          "size": ["15.72%", "29%"]
        }
      },
      {
        "9@battle.pp_bar": {
          "$bar": "_9",
          "size": ["17.685%", "29%"]
        }
      },
      {
        "10@battle.pp_bar": {
          "$bar": "_10",
          "size": ["19.65%", "29%"]
        }
      },
      {
        "11@battle.pp_bar": {
          "$bar": "_11",
          "size": ["21.615%", "29%"]
        }
      },
      {
        "12@battle.pp_bar": {
          "$bar": "_12",
          "size": ["23.58%", "29%"]
        }
      },
      {
        "13@battle.pp_bar": {
          "$bar": "_13",
          "size": ["25.545%", "29%"]
        }
      },
      {
        "14@battle.pp_bar": {
          "$bar": "_14",
          "size": ["27.51%", "29%"]
        }
      },
      {
        "15@battle.pp_bar": {
          "$bar": "_15",
          "size": ["29.475%", "29%"]
        }
      },
      {
        "16@battle.pp_bar": {
          "$bar": "_16",
          "size": ["31.44%", "29%"]
        }
      },
      {
        "17@battle.pp_bar": {
          "$bar": "_17",
          "size": ["33.405%", "29%"]
        }
      },
      {
        "18@battle.pp_bar": {
          "$bar": "_18",
          "size": ["35.37%", "29%"]
        }
      },
      {
        "19@battle.pp_bar": {
          "$bar": "_19",
          "size": ["37.335%", "29%"]
        }
      },
      {
        "20@battle.pp_bar": {
          "$bar": "_20",
          "size": ["39.3%", "29%"]
        }
      }
    ]
  },

  "pp_bar": {
    "$bar|default": "",
    "type": "image",
    "texture": "textures/ui/battle/white_shaded",
    "color": [0.1, 0.6, 1],
    "layer": 10,
    "anchor_from": "bottom_left",
    "anchor_to": "bottom_left",
    "fill": true,
    "size": ["40%", "29%"],
    "offset": ["30.3%", "19%"],
    "bindings": [
      {
        "binding_type": "collection",
        "binding_collection_name": "form_buttons",
        "binding_condition": "none",
        "binding_name": "#form_button_texture",
        "binding_name_override": "#form_button_texture"
      },
      {
        "binding_type": "view",
        "source_property_name": "((#form_button_texture - (%.2s * #form_button_texture)) = $bar)",
        "target_property_name": "#visible"
      }
    ]
  },

  "ally_actor_details_button_check_id@battle.ally_actor_button": {
    "$button_id|default": "b:opponent_1_",
    "bindings": [
      {
        "binding_name": "#form_button_text",
        "binding_name_override": "#form_button_text",
        "binding_type": "collection",
        "binding_collection_name": "form_buttons"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not((#form_button_text - $button_id) = #form_button_text))",
        "target_property_name": "#visible"
      }
    ]
  },

  "opponent_actor_details_button_check_id@battle.opponent_actor_button": {
    "$button_id|default": "b:opponent_1_",
    "bindings": [
      {
        "binding_name": "#form_button_text",
        "binding_name_override": "#form_button_text",
        "binding_type": "collection",
        "binding_collection_name": "form_buttons"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not((#form_button_text - $button_id) = #form_button_text))",
        "target_property_name": "#visible"
      }
    ]
  },

  "opponent_actor_details_button": {
    "type": "panel",
    "size": ["100%", "100%c"],
    "controls": [
      {
        "1@battle.opponent_actor_details_button_check_id": {
          "offset": ["-41%", "-33%"],
          "$button_id": "§0§0§1"
        }
      },
      {
        "2@battle.opponent_actor_details_button_check_id": {
          "offset": ["-41%", "-13%"],
          "$button_id": "§0§0§2"
        }
      },
      {
        "3@battle.opponent_actor_details_button_check_id": {
          "offset": ["-41%", "13%"],
          "$button_id": "§0§0§3"
        }
      },
      {
        "4@battle.opponent_actor_details_button_check_id": {
          "offset": ["-41%", "33%"],
          "$button_id": "§0§0§4"
        }
      }
    ]
  },

  "ally_actor_details_button": {
    "type": "panel",
    "size": ["100%", "100%c"],
    "controls": [
      {
        "1@battle.ally_actor_details_button_check_id": {
          "offset": ["32%", "-33%"],
          "$button_id": "§0§a§1"
        }
      },
      {
        "2@battle.ally_actor_details_button_check_id": {
          "offset": ["32%", "-13%"],
          "$button_id": "§0§a§2"
        }
      },
      {
        "3@battle.ally_actor_details_button_check_id": {
          "offset": ["32%", "13%"],
          "$button_id": "§0§a§3"
        }
      },
      {
        "4@battle.ally_actor_details_button_check_id": {
          "offset": ["32%", "33%"],
          "$button_id": "§0§a§4"
        }
      }
    ]
  },

  "battle_actor_button@common.button": {
    "$pressed_button_name": "button.form_button_click",
    "$default_button_texture": "textures/ui/battle/opponent",
    "$hover_button_texture": "textures/ui/battle/opponent",
    "$pressed_button_texture": "textures/ui/battle/opponent",
    "$locked_button_texture": "textures/ui/battle/opponent",
    "enabled": false,
    "size": [90, 23]
  },

  "battle_actor_entity_icon_overlay": {
    "type": "image",
    "size": [40, 40],
    "texture": "textures/ui/battle/pokemon_warning",
    "$actor_icon_offset|default": [0, 0],
    "offset": "$actor_icon_offset",
    "controls": [
      {
        "entity_icon": {
          "type": "image",
          "size": [40, 40],
          "anchor_from": "center",
          "anchor_to": "center",
          "layer": 25,
          "bindings": [
            {
              "binding_type": "collection_details",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_name": "#form_button_texture_file_system",
              "binding_name_override": "#texture_file_system",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            },
            {
              "binding_name": "#form_button_texture",
              "binding_name_override": "#texture",
              "binding_type": "collection",
              "binding_collection_name": "form_buttons"
            }
          ]
        }
      }
    ]
  },

  "variable_progress_bar": {
    "layer": 2,
    "clip_pixelperfect": false,
    "type": "image",
    "texture": "textures/ui/filled_progress_bar",
    "clip_direction": "left",
    "$color_id|default": "G",
    "bindings": [
      {
        "binding_type": "collection",
        "binding_collection_name": "form_buttons",
        "binding_condition": "none",
        "binding_name": "#form_button_text",
        "binding_name_override": "#form_button_text"
      },
      {
        "binding_type": "view",
        "source_property_name": "( ( %.3s * ( #form_button_text - (%.60s * #form_button_text) ) ) * 1 )",
        "target_property_name": "#clip_ratio"
      },
      {
        "binding_type": "view",
        "source_property_name": "((%.1s * (#form_button_text - (%.58s * #form_button_text))) = $color_id)",
        "target_property_name": "#visible"
      }
    ]
  },

  "dynamic_progress_bar": {
    "type": "panel",
    "size": ["100%", "100%"],
    "anchor_from": "center",
    "anchor_to": "center",
    "controls": [
      {
        "empty_progress_bar@common.empty_progress_bar": {
          "layer": 1
        }
      },
      {
        "green@battle.variable_progress_bar": {
          "color": [0.5, 1.0, 0.5, 1.0],
          "$color_id": "G"
        }
      },
      {
        "yellow@battle.variable_progress_bar": {
          "color": [1, 0.9, 0, 1.0],
          "$color_id": "Y"
        }
      },
      {
        "red@battle.variable_progress_bar": {
          "color": [1, 0, 0, 1.0],
          "$color_id": "R"
        }
      }
    ]
  },

  "battle_actor_description": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": ["100%", 40],
    "$text_alignment|default": "left",
    "$text_offset|default": [0, 0],

    "controls": [
      {
        "spacer": {
          "type": "panel",
          "size": ["100%", "3%"]
        }
      },
      {
        "details_text": {
          "type": "label",
          "text": "#text",
          "color": [0.768, 0.768, 0.768],
          "font_scale_factor": 1,
          "offset": "$text_offset",
          "size": ["100%", "65%"],
          "text_alignment": "$text_alignment",
          "bindings": [
            {
              "binding_type": "collection",
              "binding_collection_name": "form_buttons",
              "binding_condition": "none",
              "binding_name": "#form_button_text",
              "binding_name_override": "#form_button_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "( (%.58s * #form_button_text) - '_' )",
              "target_property_name": "#text"
            }
          ]
        }
      },
      {
        "spacer": {
          "type": "panel",
          "size": ["100%", "3%"]
        }
      },
      {
        "hp_bar": {
          "type": "panel",
          "size": ["100%", "21%"],
          "anchor_from": "center",
          "anchor_to": "center",
          "layer": 30,
          "controls": [
            {
              "health_text": {
                "type": "label",
                "text": "#text",
                "color": "white",
                "font_scale_factor": 0.8,
                "size": ["100%", "100%"],
                "offset": ["0%", "0%"],
                "font_type": "smooth",
                "text_alignment": "center",
                "layer": 32,
                "bindings": [
                  {
                    "binding_type": "collection",
                    "binding_collection_name": "form_buttons",
                    "binding_condition": "none",
                    "binding_name": "#form_button_text",
                    "binding_name_override": "#form_button_text"
                  },
                  {
                    "binding_type": "view",
                    "source_property_name": "(#form_button_text - (%.62s * #form_button_text))",
                    "target_property_name": "#text"
                  }
                ]
              }
            },
            {
              "health_bar@battle.dynamic_progress_bar": {}
            }
          ]
        }
      }
    ]
  },

  "ally_actor_button@battle.battle_actor_button": {
    "controls": [
      {
        "details_overlay": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": ["100%", "100%"],
          "controls": [
            {
              "actor_description@battle.battle_actor_description": {}
            },
            {
              "spacing": {
                "type": "panel",
                "size": ["5%", "100%"]
              }
            },
            {
              "entity_icon_overlay@battle.battle_actor_entity_icon_overlay": {}
            }
          ]
        }
      }
    ]
  },

  "opponent_actor_button@battle.battle_actor_button": {
    "controls": [
      {
        "details_overlay": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": ["100%", "100%"],
          "controls": [
            {
              "entity_icon_overlay@battle.battle_actor_entity_icon_overlay": {}
            },
            {
              "actor_description@battle.battle_actor_description": {}
            }
          ]
        }
      }
    ]
  }
}
