<?xml version='1.0' encoding='utf-8'?>
<panel>
  <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

  <!-- These colours are used for setting colours on the bars based on their values: Low, Medium and High. 
        If you don't set one of these then the default condition colours will be used -->
  <string id="colL" value="red2" />
  <string id="colM" value="yellow3" />
  <string id="colH" value="green2" />

  <container class="bordered_box">
    <layout class="arrange_horizontal_attachment" layout="-1,-1,-3" inset="0" offset="4" gap="10" />
    <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

    <!-- Condition -->
    <container>
      <layout class="arrange_vertical_attachment" alignment="top" offset="1" />
      <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="2" />

      <container>
        <layout class="fit_children_attachment" alignment="vertical" offset="0" />
        <layout class="arrange_horizontal_attachment" alignment="right, extend"  offset="0" />
        <layout class="stick_to_sides_attachment" alignment="top" layout_children="true" inset="0" />

        <!-- Condition label -->
        <widget class="text" id="conl" alignment="left,centre_y" multiline="false" auto_size="vertical">
          <record id="object_property">
            <integer id="get_property" value="Pcon" />
            <boolean id="name" value="true" />
          </record>
        </widget>

        <!-- Condition value -->
        <widget class="condition_label" id="conv" alignment="right, centre_y" style="bold" auto_size="all">
          <record id="object_property">
            <integer id="get_property" value="Pcon" />
          </record>
        </widget>
      </container>

      <!-- Condition percentage bar -->
      <widget class="horizontal_percentage_bar" id="conb" max_value="100" label_width="0" bar_value_colour="green2" height="22" />
    </container>

    <!-- Fitness -->
    <container>
      <layout class="arrange_vertical_attachment" alignment="top" offset="1" />
      <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

      <container>
        <layout class="fit_children_attachment" alignment="vertical" offset="0" />
        <layout class="arrange_horizontal_attachment" alignment="right, extend" inset="0" offset="0" />
        <layout class="stick_to_sides_attachment" alignment="top" layout_children="true" inset="0" />

        <!--fitness label-->
        <widget class="text" id="fitl" alignment="left,centre_y" multiline="false" auto_size="vertical">
          <record id="object_property">
            <integer id="get_property" value="Pfit" />
            <boolean id="name" value="true" />
          </record>
        </widget>

        <!-- Fitness value -->
        <widget class="condition_label" id="fitv" auto_size="all" style="bold">
          <record id="object_property">
            <integer id="get_property" value="Pfit" />
          </record>
        </widget>
      </container>

      <!-- Fitness percentage bar -->
      <widget class="horizontal_percentage_bar" id="fitb" max_value="100" label_width="0" height="22" />
    </container>

    <container class="plain_box" appearance="boxes/plain/subtle/paper">
      <layout class="arrange_horizontal_attachment" alignment="left, extend" inset="0" offset="0" />
      <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

      <!--Injury text-->
      <widget class="fitness_label" id="fitL" multiline="true" alignment="centre_x, top">
        <record id="object_property">
          <integer id="get_property" value="Pcsr" />
        </record>
      </widget>

    </container>
  </container>
</panel>