<panel title="Player Profile Panel">

  <!-- PANEL PROPERTIES -->

  <!-- attribute colouring -->
  <integer id="exca" value="16" />
  <!-- excellent threshold -->
  <integer id="excn" value="11" />
  <!-- normal threshold -->
  <integer id="excl" value="6" />
  <!-- low threshold -->

  <!-- Set Current View -->
  <integer id="current_view_menu" value="attv" />

  <!-- MAIN AREA -->
  <layout class="stick_to_sides_attachment" alignment="all" inset="0" />

  <container class="titled_box" id="tibx" title="Player Profile">
    <layout class="arrange_vertical_attachment" alignment="bottom, extend" offset="0" gap="1"/>
    <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />
    <layout class="stick_to_sides_attachment" alignment="all" inset="0" />

    <!-- buttons area -->
    <container id="btna" 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="top" inset="0" 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,fill" embed_in_frame="true"/>

      <!-- player view menu -->
      <widget class="embedded_popup_button" id="attv" text="Views[COMMENT: embedded popup menu used to change to some alternative views]" sele="attr" auto_size="horizontal" fixed="true" auto_tick_exclusive="false" embed_in_frame="true" appearance="menu/embedded/view" save_current_state="true" save_default_state="true" save_item_ticks="true" save_selection="false">
        <list id="items">
          <!-- ids match the multi-box individual panel ids below! -->
          <record id="over" name="Overview[COMMENT: player profile view menu item: Overview (polygon)]" event_id="ovat"/>
          <record id="attr" name="Attributes[COMMENT: player profile view menu item: attributes]" event_id="ovat" ticked="true"/>
          <record id="----"/>
          <record id="shtr" name="Show recent attribute changes[COMMENT: text on player_profile panel to toggle the attribute change arrows RE-TRANSLATE FOR FM2008]" event_id="shtc" auto_tick="true"/>
        </list>

        <!--<record id="select_event">
          <flags id="event_id" value="mbse" />
          --><!-- the multi-box select event --><!--
          <flags id="event_target" value="pamb" />
          --><!-- the multi-box itself --><!--
        </record>-->

      </widget>
      <!-- view menu -->

    </container>
    <!-- buttons -->

    <!-- Show Training Effects 
		<widget class="check_box" text="Show recent effects of training[COMMENT: text on player_profile panel to toggle the effects of training]" id="shtr" clke="shtr" auto_size="all" save_current_state="true" save_default_state="true" embed_in_frame="true">
			<layout class="stick_to_sides_attachment" alignment="top,right" embed_in_frame="true" inset="7"/>
		</widget>-->

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

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

        <!-- Personal Details -->
        <container id="pdet" file="player profile personal details"/>

        <!-- Multi box for different views -->
        <container class="multi_box" id="pamb">

          <flags id="top_kind" value="group_box" />
          <flags id="top_layout" value="horizontal" />
          <record id="top_properties">
            <flags id="auto_size" value="vertical" />
          </record>

          <flags id="bottom_kind" value="group_box"/>
          <flags id="bottom_layout" value="horizontal" />
          <record id="bottom_properties">
            <flags id="auto_size" value="vertical" />
          </record>

          <flags id="contents_kind" value="gbox" />
          <flags id="default_item" value="attr" />

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

          <!-- Attributes Container -->
          <container class="group_box" id="attr">
            <layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="4"/>
            <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

            <!-- Technical Table -->
            <container id="tech" file="player profile technical attributes"/>

            <!-- Mental Table -->
            <container id="ment" file="player profile mental attributes"/>

            <!-- Physical Table -->
            <container id="ment" file="player profile physical attributes"/>

          </container>
          <!-- Attributes Container -->

          <!-- Attribute Analyser Container -->
          <container class="group_box" id="over">
            <layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="0"/>
            <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

            <!-- Attribute Analyser -->
            <container id="ppaa" file="player profile attribute analyser"/>

          </container>
          <!-- Attribute Analyser Container -->

        </container>
        <!-- Multi box -->

      </container>

      <container class="player_availability_panel" id="pavl"/>

    </container>

    <container class="player_stats_panel" id="pstp"/>
  </container>
</panel>