<?xml version='1.0' encoding='utf-8'?>
<panel>
  <translation id="title" type="new" value="Player Information Panel" />
  <layout class="arrange_horizontal_attachment" layout="-1,-1" offset="0" gap="8" />
  <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

  <!-- Personal Information on the left -->
  <container>
    <layout class="arrange_vertical_attachment" layout="-6,-5" offset="0" gap="8" />
    <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

    <container class="bordered_box">
      <layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="0" />
      <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

      <!-- Personal Information and Nationality information (tabbed) -->
      <container class="tabbed_container" id="mult" default_item="PerI" save_current_state="true" save_default_state="true">
        <widget class="person_personal_information_panel" id="PerI" vertical="true">
          <translation id="title" translation_id="333981" type="use" value="Personal Information[COMMENT: Player information; section title]" />
          <record id="object_property">
            <integer id="get_property" value="objt" />
            <integer id="set_property" value="objt" />
          </record>
        </widget>

        <widget class="person_personal_information_panel" file="player information nationalities" id="Nati" vertical="false">
          <translation id="title" translation_id="333939" type="use" value="Nationalities[COMMENT: Player information; section title for a box displaying information about a player's nationality, elligibility and languages spoken]" />
          <record id="object_property">
            <integer id="get_property" value="objt" />
            <integer id="set_property" value="objt" />
          </record>
        </widget>

        <!-- Backroom advice knowledge for staff as long as they aren't human and they are a both a player and a coach -->
        <widget class="backroom_advice_knowledge_panel" id="bac2">
          <translation id="title" translation_id="296527" type="use" value="Backroom Advice" />
          <record id="object_property">
            <integer id="get_property" value="objt" />
            <integer id="set_property" value="objt" />
          </record>
        </widget>

        <!-- Knowledge panel -->
        <widget class="non_player_knowledge_panel" id="ckp2" file="non player human knowledge">
          <translation id="title" translation_id="330425" type="use" value="Scouting Knowledge[COMMENT: Staff comparison type header]" />
          <record id="object_property">
            <integer id="get_property" value="objt" />
            <integer id="set_property" value="objt" />
          </record>
        </widget>
      </container>
    </container>


    <container>
      <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />
      <layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="8" />

      <!-- Happiness -->
      <container class="subsection_box">
        <translation id="title" translation_id="247463" type="use" value="Happiness" />
        <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

        <widget class="person_happiness_panel" id="phap">
          <record id="object_property">
            <integer id="get_property" value="objt" />
            <integer id="set_property" value="objt" />
          </record>
        </widget>
      </container>

      <!-- Tendencies (non-players) -->
      <container class="subsection_box" id="npt1">
        <translation id="title" translation_id="347330" type="use" value="Tendencies[COMMENT: Non person information; title for a list of tendencies/inclinations that the person may have]" />
        <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

        <widget class="non_player_tendencies_panel" id="nptp">
          <record id="object_property">
            <integer id="get_property" value="objt" />
            <integer id="set_property" value="objt" />
          </record>
        </widget>
      </container>
    </container>
  </container>
  <container>
    <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

    <!-- Other information on the right -->
    <container>
      <layout class="arrange_vertical_attachment" layout="-16,-9" offset="0" gap="8" />
      <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

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

        <!-- Position pitch for players -->
        <container class="subsection_box" id="posa">
          <translation id="title" translation_id="333996" type="use" value="Positional Abilities[COMMENT: Player information; section title for pitch showing the ability of a player in various positions]" />
          <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

          <!-- Show if person is a player -->
          <record id="object_property">
            <integer id="get_property" value="Pipl" />
            <integer id="set_property" value="Shwn" />
          </record>

          <!-- Player description in frame -->
          <container embed_in_frame="true">
            <layout class="arrange_horizontal_attachment" alignment="right" embed_in_frame="true" gap="0" offset="4" />
            <layout class="stick_to_sides_attachment" alignment="bottom" inset="1" layout_children="true" embed_in_frame="true" />
            <layout class="stick_to_sides_attachment" alignment="top,right" embed_in_frame="true" inset="4" />
            <layout class="fit_children_attachment" alignment="vertical" embed_in_frame="true" />
            <layout class="fit_children_attachment" alignment="horizontal" embed_in_frame="true" />

            <widget class="player_description_text" id="dect" spec="text, large" auto_size="all" embed_in_frame="true" multiline="false">
              <record id="object_property">
                <integer id="get_property" value="Pdes" />
              </record>
            </widget>
          </container>

          <widget class="player_positions_indicator_panel" file="player positions indicator horizontal" id="ppov">
            <record id="object_property">
              <integer id="get_property" value="objt" />
              <integer id="set_property" value="objt" />
            </record>
          </widget>
        </container>

        <!-- Knowledge panel for staff (but not player-staff) -->
        <container class="subsection_box" id="ckp1">
          <translation id="title" translation_id="251861" type="use" value="Knowledge[COMMENT: non player profile panel; title of panel showing scouting knowledge]" />
          <layout class="stick_to_sides_attachment" alignment="all" inset="0" layout_children="true" />

          <widget class="non_player_knowledge_panel" id="npkp" file="non player human knowledge">
            <record id="object_property">
              <integer id="get_property" value="objt" />
              <integer id="set_property" value="objt" />
            </record>
          </widget>
        </container>
      </container>

      <container>
        <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />
        <layout class="arrange_horizontal_attachment" layout="-5, -3" offset="0" gap="8" />

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

          <!-- Backroom advice knowledge for staff as long as they aren't human and they aren't a player (as there isn't space)-->
          <container class="subsection_box" id="bac1">
            <translation id="title" translation_id="296527" type="use" value="Backroom Advice" />
            <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

            <widget class="backroom_advice_knowledge_panel" id="bad1">
              <record id="object_property">
                <integer id="get_property" value="objt" />
                <integer id="set_property" value="objt" />
              </record>
            </widget>
          </container>

          <!-- Games played in position for players-->
          <container class="subsection_box" id="gppC">
            <translation id="title" translation_id="257322" type="use" value="Games Played In Position" />
            <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

            <!-- Show if person is a player -->
            <record id="object_property">
              <integer id="get_property" value="Pipl" />
              <integer id="set_property" value="Shwn" />
            </record>

            <widget class="player_games_in_position_panel" id="pgpp">
              <record id="object_property">
                <integer id="get_property" value="objt" />
                <integer id="set_property" value="objt" />
              </record>
            </widget>
          </container>
        </container>
        <!-- Preferred moves (players)-->
        <container class="subsection_box" id="ppm1">
          <translation id="title" translation_id="229993" type="use" value="Preferred Moves" />
          <layout class="stick_to_sides_attachment" alignment="all" layout_children="true" inset="0" />

          <widget class="preferred_moves_panel" file="player information preferred moves" id="pfmp">
            <record id="object_property">
              <integer id="get_property" value="objt" />
              <integer id="set_property" value="objt" />
            </record>
          </widget>
        </container>
      </container>
    </container>
  </container>
</panel>