<?xml version='1.0' encoding='utf-8'?>
<panel>
  <boolean id="hide_atp_when_showing_filters" value="true" />

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

  <layout class="stick_to_sides_attachment" alignment="vertical" inset="4" layout_children="true" />
  <layout class="stick_to_sides_attachment" alignment="horizontal" inset="4" layout_children="true" />

  <!-- main area -->
  <container id="main">
    <layout class="arrange_horizontal_attachment" alignment="right, extend" offset="0" gap="8" />
    <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

    <container class="titled_box" id="plti" alignment="left">
      <layout class="arrange_vertical_attachment" alignment="top, extend" offset="0" />
      <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

      <container height="30" embed_in_frame="true">
        <layout class="arrange_horizontal_attachment" alignment="left" gap="0" offset="0" embed_in_frame="true" />
        <layout class="stick_to_sides_attachment" alignment="top" layout_children="true" embed_in_frame="true" />
        <layout class="stick_to_sides_attachment" alignment="top, left" inset="0" embed_in_frame="true" />
        <layout class="fit_children_attachment" alignment="horizontal, fill" embed_in_frame="true" />

        <widget class="view_menu_popup" id="plvi" appearance="menu/view/single" auto_tick_exclusive="true" auto_size="horizontal" fixed="false" tkex="true" embed_in_frame="true" />
      </container>
      
      <!-- buttons area -->
      <container height="30" embed_in_frame="true">
        <layout class="arrange_horizontal_attachment" alignment="right" offset="0" embed_in_frame="true" />
        <layout class="stick_to_sides_attachment" alignment="top" layout_children="true" embed_in_frame="true" />
        <layout class="stick_to_sides_attachment" alignment="top, right" inset="0" embed_in_frame="true" />
        <layout class="fit_children_attachment" alignment="horizontal, fill" embed_in_frame="true" />

        <container embed_in_frame="true">
          <layout class="arrange_horizontal_attachment" alignment="right" gap="0" offset="2" embed_in_frame="true" />
          <layout class="stick_to_sides_attachment" alignment="top" inset="0" layout_children="true" embed_in_frame="true" />

          <layout class="fit_children_attachment" alignment="vertical" offset="0" embed_in_frame="true" />
          <layout class="fit_children_attachment" alignment="horizontal, fill" embed_in_frame="true" />

          <!--team container stuff-->
          <widget class="embedded_action_button" id="askp" auto_size="horizontal" height="24" appearance="button/embedded/split/button" embed_in_frame="true">
            <translation id="text" translation_id="344655" type="use" value="Quick Pick[COMMENT - team screen team selection, contains the former Ask To Pick menu but also acts as a standalone button which picks the team, renamed for accuracy]" />
          </widget>
          <widget class="popup_button" id="apic" fixed="true" width="20" height="24" appearance="button/embedded/split/menu" embed_in_frame="true" />
        </container>

        <!-- filter menu -->
        <widget class="embedded_filter_button" id="plsf" target="plti" auto_size="horizontal" height="24" embed_in_frame="true" />
      </container>

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

        <widget class="client_object_list_table" id="pltb" database_table_type="1" mode="fill_rows, stripe_rows, printable, store_sort_state, drag_rows, drop_on_rows, auto_hide_columns, show_insert_column_popup" column_mode="resize_columns, move_columns, custom_views" popup_menu_class="popup_button_table_header">

          <boolean id="auto_size_rows" value="true" />
          <boolean id="dont_restore_selection" value="true" />
          <boolean id="save_current_state" value="true" />
          <boolean id="save_default_state" value="true" />

          <integer id="contextual_handler_column_id" value="Pnms" />

          <!-- default sort by playing position (primary), then picked position, then name -->
          <list id="default_sort_column">
            <integer value="PtsL" />
            <integer value="PpsC" />
          </list>

          <!--properties for each object we always want to request, regardless of whether or not they're displayed 
							 (this can help when for example supplying a selected object to another panel to display further info)-->
          <!--these can be omitted, they're just a time saver-->
          <list id="Spid">
            <integer value="PPra" />
          </list>

          <!--default view-->
          <flags id="default_view" value="sltn" />

          <!--available views-->
          <list id="viws">

            <record id="sltn">
              <translation id="name" translation_id="326989" type="use" value="Selection Info[COMMENT: button in view_menu on squad screens; choose to view club stats]" />
              <record id="view">
                <flags id="PtsL" />                <!-- squad number -->
                <flags id="Pnfo" />                <!-- status info -->
                <flags id="Pnms" />                <!-- person name -->
                <flags id="PSag" auto_hide_priority="1130" />                <!-- person age -->
                <flags id="Phei" auto_hide_priority="1150" />                <!-- height -->
                <flags id="Pwei" auto_hide_priority="1170" />                <!-- weight -->
                <record id="PpsC" auto_hide_priority="1000" />                <!-- position -->
                <record id="Pmor" auto_hide_priority="1050" />                <!-- player morale -->
                <record id="Pfrm" auto_hide_priority="1100" />                <!-- player form -->
                <record id="Pcon" auto_hide_priority="1010" />                <!-- player condition -->
                <record id="Poav" auto_hide_priority="1020" />                <!-- overall average rating -->
                <flags id="Pdva" auto_hide_priority="1120" />                <!-- player value -->
              </record>
            </record>

            <!-- shown for international teams -->
            <record id="csln">
              <translation id="name" translation_id="275847" type="use" value="Club Selection[COMMENT: button in view_menu on squad screens; choose to view club stats]" />
              <record id="view">
                <flags id="PtsL" />                <!-- picked info -->
                <flags id="Pnfo" />                <!-- player status/info -->
                <flags id="Pnms" />                <!-- person name -->
                <record id="PpsC" auto_hide_priority="1000" />                <!-- position -->
                <record id="Pmor" auto_hide_priority="1050" />                <!-- player morale -->
                <record id="Pfrm" auto_hide_priority="1100" />                <!-- player form -->
                <record id="Pcon" auto_hide_priority="1010" />                <!-- player condition -->
                <flags id="Poap" />                <!-- overall appearances -->
                <flags id="Pogl" />                <!-- overall goals -->
                <record id="Poav" auto_hide_priority="1020" />                <!-- overall average rating -->
              </record>

              <record id="object_list_view_context">
                <integer id="player_stats_scope" value="5" />
              </record>
            </record>

            <!-- shown for international teams -->
            <record id="intf">
              <translation id="name" translation_id="275848" type="use" value="International Selection[COMMENT: button in view_menu on squad screens; choose to view international stats]" />
              <record id="view">
                <flags id="PtsL" />                <!-- picked info -->
                <flags id="Pnfo" />                <!-- player status/info -->
                <flags id="Pnms" />                <!-- person name -->
                <record id="PpsC" auto_hide_priority="1000" />                <!-- position -->
                <record id="Pmor" auto_hide_priority="1050" />                <!-- player morale -->
                <record id="Pfrm" auto_hide_priority="1100" />                <!-- player form -->
                <record id="Pcon" auto_hide_priority="1010" />                <!-- player condition -->
                <flags id="Poap" />                <!-- overall appearances -->
                <flags id="Pogl" />                <!-- overall goals -->
                <record id="Poav" auto_hide_priority="1020" />                <!-- overall average rating -->
              </record>

              <record id="object_list_view_context">
                <integer id="player_stats_scope" value="7" />
              </record>
            </record>

            <record id="coac">
              <translation id="name" translation_id="257336" type="use" value="Assistant Reports[COMMENT: player list view]" />
              <record id="view">
                <flags id="PtsL" />
                <!-- picked info -->
                <flags id="Pnfo" />
                <!-- player status/info -->
                <flags id="Pnms" />
                <!-- person name -->
                <flags id="Ppec"/>
                <!-- personality -->
                <flags id="Pbpc" />
                <!-- best position -->
                <flags id="Pbrc" />
                <!-- role -->
                <flags id="Pbdc" />
                <!-- duty -->
                <flags id="Pcac" />
                <!-- currant ability -->
                <flags id="Pppc" />
                <!-- potential ability -->
                <flags id="Pscc" />
                <!-- scout recommendation -->
              </record>
            </record>

            <record id="fitn">
              <translation id="name" translation_id="247571" type="use" value="Fitness" />
              <record id="view">
                <flags id="PtsL" />
                <!-- picked info -->
                <flags id="Pnfo" />
                <!-- player status/info -->
                <flags id="Pnms" />
                <!-- person name -->
                <flags id="PpsC" />
                <!-- position -->
                <record id="Pcon" auto_hide_priority="900" />
                <!-- player condition -->
                <record id="Pfit" auto_hide_priority="1000" />
                <!-- player fitness-->
                <record id="Pcsr" auto_hide_priority="1100" />
                <!-- player condition string (match fit, lacking match fitness etc.)-->
              </record>
            </record>

            <record id="mora">
              <translation id="name" translation_id="227839" type="use" value="Morale" />
              <boolean id="tick" value="false" />
              <record id="view">
                <flags id="PtsL" />
                <!-- picked info -->
                <flags id="Pnfo" />
                <!-- status info -->
                <flags id="Pnms" />
                <!-- person name -->
                <record id="Pmor" auto_hide_priority="900" />
                <!-- player morale -->
                <record id="Pfrm" auto_hide_priority="1100" />
                <!-- player form -->
                <record id="Pcon" auto_hide_priority="1000" />
                <!-- player condition -->
              </record>

              <record id="object_list_view_context">
                <integer id="player_stats_scope" value="5" />
              </record>
            </record>
            
            <record id="slcp">
              <string id="name" value="CAPA[COMMENT: button in view_menu on squad screens; choose to view club stats]"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- squad number -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <flags id="PCAB"/>
                <!-- player CA -->
                <flags id="PPAB"/>
                <!-- player PA -->


              </record>
            </record>

            <record id="----" />

            <record id="ment">
              <string id="name" value="Mentality"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- squad number -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pdec" auto_hide_priority="1000"/>
                <!-- decisions -->
                <record id="TPme" auto_hide_priority="800"/>
                <!-- creative freedom -->
              </record>
            </record>

            <record id="crea">
              <string id="name" value="Creative Freedom"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- squad number -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pcre" auto_hide_priority="1000"/>
                <!-- creativity -->
                <record id="Pfla" auto_hide_priority="900"/>
                <!-- flair -->
                <record id="TPcr" auto_hide_priority="800"/>
                <!-- creative freedom -->
              </record>
            </record>

            <record id="pass">
              <string id="name" value="Passing Style"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- squad number -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Ppas" auto_hide_priority="1000"/>
                <!-- passing -->
                <record id="TPps" auto_hide_priority="800"/>
                <!-- creative freedom -->
              </record>
            </record>

            <record id="clos">
              <string id="name" value="Closing Down"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- squad number -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Psta" auto_hide_priority="1000"/>
                <!-- stamina -->
                <record id="TPcd" auto_hide_priority="800"/>
                <!-- creative freedom -->
              </record>
            </record>

            <record id="tack">
              <string id="name" value="Tackling"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Ptac" auto_hide_priority="1000"/>
                <!-- tackling -->
                <record id="TPta" auto_hide_priority="800"/>
                <!-- tackling -->
              </record>
            </record>

            <record id="forw">
              <string id="name" value="Run From Deep[COMMENT: player tactic instruction, make runs from deep positions]"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pdec" auto_hide_priority="1000"/>
                <!-- decisions -->
                <record id="Potb" auto_hide_priority="1100"/>
                <!-- decisions -->
                <record id="TPfo" auto_hide_priority="800"/>
                <!-- forward runs -->
              </record>
            </record>

            <record id="runw">
              <string id="name" value="Run With Ball"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pdri" auto_hide_priority="1000"/>
                <!-- dribbling -->
                <record id="TPrw" auto_hide_priority="800"/>
                <!-- run with ball -->
              </record>
            </record>

            <record id="long">
              <string id="name" value="Long Shots"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Plsh" auto_hide_priority="1000"/>
                <!-- long shots -->
                <record id="TPls" auto_hide_priority="800"/>
                <!-- long shots -->
              </record>
            </record>

            <record id="tryt">
              <string id="name" value="Try Through Balls"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Ppas" auto_hide_priority="1000"/>
                <!-- passing -->
                <record id="Pcre" auto_hide_priority="1100"/>
                <!-- creativity -->
                <record id="TPtt" auto_hide_priority="800"/>
                <!-- forward runs -->
              </record>
            </record>

            <record id="crob">
              <string id="name" value="Cross Ball"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pcro" auto_hide_priority="1000"/>
                <!-- crossing -->
                <record id="TPcb" auto_hide_priority="800"/>
                <!-- cross ball -->
              </record>
            </record>

            <record id="crof">
              <string id="name" value="Cross From"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pcro" auto_hide_priority="1000"/>
                <!-- crossing -->
                <record id="TPcf" auto_hide_priority="800"/>
                <!-- cross from -->
              </record>
            </record>

            <record id="croa">
              <string id="name" value="Cross Aim"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pcro" auto_hide_priority="1000"/>
                <!-- crossing -->
                <record id="TPca" auto_hide_priority="800"/>
                <!-- cross aim -->
              </record>
            </record>

            <record id="wdpl">
              <string id="name" value="Wide Play"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pdri" auto_hide_priority="1000"/>
                <!-- dribbling -->
                <record id="TPwp" auto_hide_priority="800"/>
                <!-- wide play -->
              </record>
            </record>

            <record id="mark">
              <string id="name" value="Marking"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pmar" auto_hide_priority="1000"/>
                <!-- marking -->
                <record id="TPma" auto_hide_priority="800"/>
                <!-- marking -->
              </record>
            </record>

            <record id="mkti">
              <string id="name" value="Tight Marking"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pmar" auto_hide_priority="1000"/>
                <!-- marking -->
                <record id="TPmt" auto_hide_priority="800"/>
                <!-- mark tight -->
              </record>
            </record>

            <record id="free">
              <string id="name" value="Roam From Position[COMMENT: tactics; updated name for free role]"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pcre" auto_hide_priority="1000"/>
                <!-- creativity -->
                <record id="TPfr" auto_hide_priority="800"/>
                <!-- free role -->
              </record>
            </record>

            <record id="hold">
              <string id="name" value="Hold Up Ball"/>
              <record id="view">
                <flags id="PtsL"/>
                <!-- picked info -->
                <flags id="Pnfo"/>
                <!-- status info -->
                <flags id="Pnms"/>
                <!-- person name -->
                <record id="Pstr" auto_hide_priority="1000"/>
                <!-- strength -->
                <record id="TPhu" auto_hide_priority="800"/>
                <!-- hold up ball -->
              </record>
            </record>

          </list>

        </widget>

        <!-- panel showing squad selection rules for the next match -->
        <widget class="match_squad_info_panel" id="ssnm" />

      </container>

    </container>
    <!-- players titled box -->

  </container>
  <!-- main area -->

</panel><!-- panel -->