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

  <boolean id="should_force_refresh" value="true" />

  <container id="over" row="0" col="0" column_span="5" row_span="11">
    <layout class="arrange_vertical_attachment" layout="25,100,-1" offset="0" gap="0" />
    <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />
      <container/>
      <container id="over" row="0" col="0" column_span="5" row_span="11">
        <layout class="arrange_horizontal_attachment" layout="-1,180" offset="0" gap="0" />
        <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />
          <container/>
          <!--Start Club Logo -->
          <widget class="picture" title="Team Logo" id="mnpV" transparency="1" image_alignment="top, left" scale_picture="true">
            <layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
            <layout class="stick_to_sides_attachment" alignment="right" inset="10"/>
            <record id="object_property">
              <integer id="get_property" value="mnpc" />
            </record>
          </widget>
      </container>
      <container/>
  </container>

  <!-- coloured bar texture -->
  <widget class="picture" id="colb" file="boxes/bergkamp/gradient/middle" rthr="15"> 
  <layout class="stick_to_sides_attachment" alignment="top" inset="221"/>
  <layout class="stick_to_sides_attachment" alignment="right" inset="3"/>
  <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>
    <!-- set the colour of the image to the team background colour -->
    <record id="object_property">
      <integer id="get_property" value="tbcl" />
      <integer id="set_property" value="colr" />
    </record> 
  </widget>

  <widget class="picture" id="text" file="boxes/bergkamp/gradient/left" rthr="15" image_alignment="top, left" scale_picture="true"> 
  <layout class="stick_to_sides_attachment" alignment="top" inset="275"/>
  <layout class="stick_to_sides_attachment" alignment="left" inset="-3"/>
    <!-- set the colour of the image to the team background colour -->
    <record id="object_property">
      <integer id="get_property" value="tbcl" />
      <integer id="set_property" value="colr" />
    </record> 
  </widget>

  <widget class="picture" id="tex" file="boxes/bergkamp/gradient/right" rthr="15" image_alignment="top, left" scale_picture="true" transparency="1"> 
  <layout class="stick_to_sides_attachment" alignment="top" inset="275"/>
  <layout class="stick_to_sides_attachment" alignment="right" inset="3"/>
    <!-- set the colour of the image to the team background colour -->
    <record id="object_property">
      <integer id="get_property" value="ttcl" />
      <integer id="set_property" value="colr" />
    </record> 
  </widget>

  <container class="subsection_box">
    <translation id="title" translation_id="247436" type="use" value="Personal Details" />
    <layout class="arrange_vertical_attachment" alignment="bottom,extend" gap="0" />
    <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

    <container class="vertical_adaptive_container" id="PDvc" inset="0" offset="0">

      <container priority="1" default_height="170">

        <!-- profile picture -->
        <widget class="picture" id="prop">
          <boolean id="scale_picture" value="true" />
          <boolean id="keep_aspect_ratio" value="true" />
          <flags id="image_alignment" value="centre" />

          <attachment class="test_setting_attachment" get_setting="show_portraits" default_value="true" set_property="hidn">
            <list id="value">
              <boolean value="false" />
            </list>
          </attachment>

          <layout class="stick_to_sides_attachment" alignment="all" inset="0" />

          <record id="object_property">
            <list id="get_properties">
              <record>
                <integer id="get_property" value="fcgn" />
                <!--Facegen data request-->
              </record>
              <record>
                <integer id="get_property" value="Pfke" />
                <!--Fake name request-->
              </record>
              <record>
                <integer id="get_property" value="prpc" />
                <integer id="set_property" value="valu" />
              </record>
            </list>
          </record>
        </widget>

        <!--squad number-->
        <container width="100" id="sqco">
          <layout class="arrange_vertical_attachment" alignment="top" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" />
          <layout class="stick_to_sides_attachment" alignment="bottom" inset="21"/>
          <layout class="stick_to_sides_attachment" alignment="left" />
          <layout class="fit_children_attachment" alignment="vertical,fill" />

          <widget class="text" spec="text,small" auto_size="vertical" font="fonts/letterpressed">
            <translation id="text" translation_id="316630" type="use" value="no.[COMMENT: title for displaying a squad number on the player profile panel]" />
          </widget>

          <widget class="squad_number_label" id="SqNu" spec="text,large" font="fonts/letterpressed" size="18">
            <record id="object_property">
              <integer id="get_property" value="Psnu" />
            </record>
          </widget>
        </container>

        <!--age-->
        <container width="100" id="sqco">
          <layout class="arrange_vertical_attachment" alignment="top" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" />
          <layout class="stick_to_sides_attachment" alignment="bottom,right" />
          <layout class="fit_children_attachment" alignment="vertical,fill" />

          <widget class="text" spec="text,small" alignment="right" auto_size="vertical" font="fonts/letterpressed">
            <translation id="text" translation_id="316631" type="use" value="age[COMMENT: title for displaying a player's age on the player profile panel]" />
          </widget>

          <widget class="label" id="age " alignment="right" spec="text,large" font="fonts/letterpressed" size="18">
            <record id="object_property">
              <integer id="get_property" value="Page" />
            </record>
          </widget>

          <widget class="editable_client_object_property_panel" id="dobc">
            <layout class="stick_to_sides_attachment" alignment="right" />
            <record id="object_property">
              <integer id="get_property" value="Pdob" />
            </record>
            <record id="widget_properties" spec="text,small" alignment="right" auto_size="all" display_format="0" font="fonts/letterpressed" />
          </widget>
        </container>

      </container>

      <!--playing position row-->
      <container class="plain_box" default_height="40" minimum_height="40" priority="1">
        <layout class="arrange_vertical_attachment" layout="-1" offset="0" gap="0" />
        <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

	<!--sccomplished position-->
	<widget class="text" id="subs"  size="11" style="shadowed,bold" alignment="centre_x,centre_y" display_format="2">
          <layout class="stick_to_sides_attachment" alignment="right" inset="0"  />
	    <record id="object_property">
              <list id="get_properties">
                <record>
                  <integer id="get_property" value="subt" />
                  <integer id="set_property" value="text" />
                </record>
                <record>
                  <integer id="get_property" value="ttcl" />
                  <integer id="set_property" value="white" />
                </record>
              </list>
            </record>
	</widget>
      </container>

      <!--international stats row-->
      <container default_height="70" minimum_height="40" priority="1">
        <layout class="arrange_horizontal_attachment" layout="-1,80,-1" offset="0" />
        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true" />

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

          <!--int apps-->
          <widget class="international_appearances_label" spec="text,small" id="inta" alignment="centre_x,bottom">
            <integer id="int_apps_label_format" value="1" />
            <!-- 1 is for apps -->
            <record id="object_property">
              <integer id="get_property" value="Pist" />
            </record>
          </widget>

          <!--int goals-->
          <widget class="international_appearances_label" spec="text,small" id="intg" alignment="centre_x,top">
            <integer id="int_apps_label_format" value="2" />
            <!-- 2 is goals -->
            <record id="object_property">
              <integer id="get_property" value="Pist" />
            </record>
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" alignment="bottom,extend" offset="0" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

          <!--national flag-->
          <widget class="client_object_logo_picture" id="pnat" image_alignment="centre" scale_picture="true" keep_aspect_ratio="true">
            <record id="object_property">
              <integer id="get_property" value="PNat" />
              <integer id="set_property" value="objt" />
            </record>
          </widget>

          <!-- <widget class="nation_button" spec="text,small" id="intc" shpc="false" auto_size="vertical" alignment="centre" display_format="3">
            <record id="object_property">
              <integer id="get_property" value="Pnat" />
            </record>
          </widget>-->
        </container>

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

          <!--youth apps-->
          <widget class="international_appearances_label" spec="text,small" id="youa" alignment="centre_x,bottom">
            <integer id="int_apps_label_format" value="3" />
            <!-- 3 is for youth apps -->
            <record id="object_property">
              <integer id="get_property" value="Pist" />
            </record>
          </widget>

          <!--youth goals-->
          <widget class="international_appearances_label" spec="text,small" id="youg" alignment="centre_x,top">
            <integer id="int_apps_label_format" value="4" />
            <!-- 4 is for youth goals -->
            <record id="object_property">
              <integer id="get_property" value="Pist" />
            </record>
          </widget>

        </container>
      </container>

      <!--physical attributes row-->
      <container default_height="35" minimum_height="35" priority="1">
        <layout class="arrange_horizontal_attachment" layout="-1, -1, -1" offset="0" gap="0" />
        <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true" />

        <container>
          <layout class="arrange_vertical_attachment" layout="-2, -1" offset="0" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

          <!--weight-->
          <widget class="weight_label" spec="text,large,bold" id="weig" size="11" alignment="centre_x,bottom" font="fonts/letterpressed">
            <record id="object_property">
              <integer id="get_property" value="Pwei" />
            </record>
          </widget>
          <!--weight label-->
          <widget class="label" spec="text,small" alignment="centre_x,top" font="fonts/letterpressed">
            <translation id="text" translation_id="316634" type="use" value="weight[COMMENT: player personal details panel; text to be displayed under the player's weight, leave as lower case]" />
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

          <!--height-->
          <widget class="height_label" spec="text,large,bold" id="heig" size="10" alignment="centre_x,bottom" font="fonts/letterpressed">
            <record id="object_property">
              <integer id="get_property" value="Phei" />
            </record>
          </widget>
          <!--height label-->
          <widget class="label" spec="text,small" alignment="centre_x,top" font="fonts/letterpressed">
            <translation id="text" translation_id="316635" type="use" value="height[COMMENT: player personal details panel; text to be displayed under the player's height, leave as lower case]" />
          </widget>
        </container>

        <container>
          <layout class="arrange_vertical_attachment" layout="-2,-1" offset="0" gap="0" />
          <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

          <!--footedness-->
          <widget class="foot_label" spec="text,large,bold" id="foot" size="10" alignment="centre_x,bottom" font="fonts/letterpressed">
            <record id="object_property">
              <integer id="get_property" value="Pfot" />
            </record>
          </widget>
          <!--footedness label-->
          <widget class="label" spec="text,small" alignment="centre_x,top" font="fonts/letterpressed">
            <translation id="text" translation_id="316636" type="use" value="footed[COMMENT: player personal details panel; text to be displayed under the player's preferred footedness, leave as lower case]" />
          </widget>
        </container>
      </container>

      <!-- Player status icons -->
      <container class="bordered_box" appearance="boxes/plain/subtle/paper" priority="1">
        <layout class="fit_children_attachment" alignment="vertical" gap="0" offset="0" />
        <layout class="arrange_vertical_attachment" alignment="top" offset="0" />
        <layout class="stick_to_sides_attachment" alignment="horizontal" inset="10" />

        <widget class="player_status_all_button" id="psAB" file="player status all profile">
          <layout class="centre_in_parent_attachment" alignment="horizontal" />
          <record id="object_property">
            <integer id="get_property" value="Pnfa" />
          </record>
        </widget>
      </container>

      <!--player extra details (e.g. onloan at...)-->
      <widget class="player_extra_details_text" id="plex" default_height="20" priority="1" spec="text" alignment="centre_x,centre_y" style="semi_bold" colour="profile extra text" auto_size="vertical">
        <record id="object_property">
          <integer id="get_property" value="PExD" />
        </record>
      </widget>

      <!-- Attribute Analyser -->
      <container id="ppaa" priority="2">
        <layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
        <layout class="stick_to_sides_attachment" alignment="top,horizontal" layout_children="true" inset="0" />

          <container class="subsection_box" id="ovrv" appearance="">
            <string id="title" value="" />
            <!-- there are two panels here: one for goalkeepers, and one for outfield players
			          only one panel is visible at any time -->
            <layout class="fit_children_attachment" alignment="vertical,fill" offset="0" gap="0" />
            <layout class="stick_to_sides_attachment" alignment="top" inset="0" />
            <layout class="stick_to_sides_attachment" alignment="top,horizontal" layout_children="true" inset="0" />

            <!-- outfield player analyser panel : visible by default -->
            <widget class="person_attributes_analyser_panel" id="ofap" file="bergkamp player attribute analyser outfield" hidden="false" auto_size="vertical" >
              <record id="object_property">
                <integer id="get_property" value="objt"/>
                <integer id="set_property" value="objt"/>
              </record>
            </widget>
            <!-- goalkeeper player analyser panel : hidden by default -->
            <widget class="person_attributes_analyser_panel" id="gkap" file="bergkamp player attribute analyser goalkeeper" hidden="true" auto_size="vertical" >
              <record id="object_property">
                <integer id="get_property" value="objt"/>
                <integer id="set_property" value="objt"/>
              </record>
            </widget>
          </container>
        <!-- subsection box -->
      </container>

      <container height="3" priority="5"/>

      <widget id="cKit" class="kit_icon" height="140" image_alignment="centre_x,bottom" scale_picture="true" kit_zoom_level="2" priority="6">
        <layout class="stick_to_sides_attachment" alignment="bottom" inset="20" />
        <record id="object_property">
          <list id="get_properties">
            <record>
              <integer id="get_property" value="Pers" />
              <integer id="set_property" value="objt" />
            </record>
            
          </list>
        </record>
      </widget>

    </container>

  </container>


  <!-- coloured title bar image -->
  <widget class="picture" id="hlbx" file="interface/header/overline" rthr="8">
  <layout class="stick_to_sides_attachment" alignment="top" inset="220"/>
  <layout class="stick_to_sides_attachment" alignment="right" inset="3"/>
  <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>
    <!-- set the colour of the image to the team background colour -->
    <record id="object_property">
      <integer id="get_property" value="ttcl" />
      <integer id="set_property" value="colr" />
    </record>
  </widget>

</panel>