<panel>

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

  <!-- This container exists simply to cacth mouse enter events and convert them to animation triggers -->
  <container height="50" WMev="true">
    <layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>

    <!-- Convert mouse enter/exit events into screen-wide animation triggers -->
    <attachment class="animation_relay_attachment" event_id="msen">
      <record id="action_event">
        <flags id="event_id" value="SliM"/>
        <integer id="evfl" value="7" />
        <flags id="evtg" value="root" />
      </record>
    </attachment>
    <attachment class="animation_relay_attachment" event_id="msex">
      <record id="action_event">
        <flags id="event_id" value="SloM"/>
        <integer id="evfl" value="7" />
        <flags id="evtg" value="root" />
      </record>
    </attachment>
  </container>

    <container class="picture" id="pict" file="icons/logos/itvsport" scale_picture="true" keep_aspect_ratio="true" height="40" width="200" image_alignment="right">
    <layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
    <layout class="stick_to_sides_attachment" alignment="right" inset="30"/>
    </container>

  <!-- widget drop-down -->
  <container height="36">
    <layout class="stick_to_sides_attachment" alignment="bottom,right" inset="0"/>
    <layout class="fit_children_attachment" alignment="horizontal, fill" gap="2" offset="10"/>

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

      <widget class="icon_button" id="maxm" icon="icons/match/bigger" icon_alignment="centre,can_scale" appearance="button/match/pitch/button" auto_size="vertical" width="40" />
      <widget class="icon_button" id="wdgl" clke="shwl" icon="icons/match/widgets" icon_alignment="left,can_scale" secondary_icon="menu/down" secondary_icon_alignment="right,can_scale" secondary_icon_enabled="true" appearance="button/match/pitch/button" auto_size="vertical" width="50" hint="Click to access a wide range of matchday information options[COMMENT: match screen; hint text for match day information widgets button]"/>
    </container>
  </container>

  <!-- rail cam controls -->
  <container id="rail" height="36">
    <layout class="stick_to_sides_attachment" alignment="bottom,left" inset="0"/>
    <layout class="fit_children_attachment" alignment="horizontal, fill" gap="5" offset="10"/>

    <container>
      <layout class="centre_in_parent_attachment" alignment="vertical" offset="0" layout_children="true"/>
      <layout class="arrange_horizontal_attachment" alignment="left" gap="5" offset="10"/>
      <layout class="fit_children_attachment" alignment="horizontal, fill" gap="5" offset="10"/>
      <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>
      <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>

      <widget class="icon_button" send_repeat_events_on_hold="true" icon="icons/match/plus" icon_alignment="centre,can_scale" appearance="button/match/pitch/button" auto_size="vertical" width="40">
        <record id="click_event">
          <flags id="event_id" value="stZI" />
          <flags id="event_target" value="scrC" />
        </record>
      </widget>
      <widget class="icon_button" send_repeat_events_on_hold="true" icon="icons/match/minus" icon_alignment="left,can_scale" appearance="button/match/pitch/button" auto_size="vertical" width="40">
        <record id="click_event">
          <flags id="event_id" value="stZO" />
          <flags id="event_target" value="scrC" />
        </record>
      </widget>
      <widget class="icon_button" send_repeat_events_on_hold="true" icon="icons/match/left" icon_alignment="left,can_scale" appearance="button/match/pitch/button" auto_size="vertical" width="40">
        <record id="click_event">
          <flags id="event_id" value="stRL" />
          <flags id="event_target" value="scrC" />
        </record>
      </widget>
      <widget class="icon_button" send_repeat_events_on_hold="true" icon="icons/match/right" icon_alignment="left,can_scale" appearance="button/match/pitch/button" auto_size="vertical" width="40">
        <record id="click_event">
          <flags id="event_id" value="stRR" />
          <flags id="event_target" value="scrC" />
        </record>
      </widget>
      <widget class="button" text="Reset" appearance="button/match/pitch/button" auto_size="all" font="fonts/match_panel_title">
        <record id="click_event">
          <flags id="event_id" value="stRZ" />
          <flags id="event_target" value="scrC" />
        </record>
      </widget>
    </container>
  </container>
  
    <!--captions-->
  <widget class="match_caption_panel" id="MCap">
    <layout class="stick_to_sides_attachment" alignment="bottom" inset="10" />
    <layout class="centre_in_parent_attachment" alignment="horizontal" />
  </widget>

  <!-- Match information widget-->
  <container class="match_floating_panel_base" title="Match Information" width="290" height="155" id="minf">
    <translation id="title" translation_id="233151" type="use" value="Match Information" />
    <attachment kind="sizeable_attachment" maximum_height="250" maximum_width="400" minimum_height="150" minimum_width="270" />
   <record id="widget_info">
      <symbol id="class" value="match_info_panel"/>
      <string id="file" value="match info floating" translate="false"/>
    </record>
  </container>

  <!-- Match overview widget-->
  <container class="match_floating_panel_base" title="Match Overview[COMMENT: match screen - name of floating panel that shows the match overview.]" width="410" height="128" id="bmin">
    <record id="widget_info">
      <symbol id="class" value="match_info_panel"/>
      <string id="file" value="match info floating 2" translate="false"/>
    </record>
  </container>

  <!-- Match stats widget-->
  <container class="match_floating_panel_base" title="Match Stats" width="420" height="360" id="mtst" reduce_alpha="mstl" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="700" maximum_width="500" minimum_height="200" minimum_width="200"/>
    <record id="widget_info">
      <symbol id="class" value="match_stats_panel"/>
      <string id="file" value="match stats floating" translate="false"/>
    </record>
  </container>

  <!-- Action zones widget-->
  <container class="match_floating_panel_base" title="Action Zones" width="280" height="220" id="mazp" reduce_alpha="azpt">
    <record id="widget_info">
      <symbol id="class" value="match_action_zones_panel"/>
      <string id="file" value="match action zones small" translate="false"/>
      <colour id="ptlc" name="grey5"/>
    </record>
  </container>

  <!-- Radar widget-->
  <container class="match_floating_panel_base" title="Radar" width="220" height="180" id="mrdr" reduce_alpha="ptch">
    <record id="widget_info">
      <symbol id="class" value="match_pitch_panel"/>
      <boolean id="vertical" value="false"/>
      <flags id="forced_camera_view" value="-1"/>
      <boolean id="pitch_use_3d" value="false"/>
      <boolean id="pitch_display_time" value="false"/>
      <boolean id="pitch_display_notifications" value="false"/>
      <boolean id="pitch_draw_dugout" value="false"/>
      <real id="pitch_player_radius" value="0.3"/>
      <boolean id="pitch_draw_technical_area" value="false"/>
      <boolean id="pitch_dont_draw_icons_off_pitch" value="true"/>
      <boolean id="pitch_display_scores" value="false"/>
      <boolean id="pitch_dont_draw_ads" value="true"/>
    </record>
  </container>

  <!-- Home player ratings widget-->
  <container class="match_floating_panel_base" title="Home Player Ratings" width="260" height="330" id="hfMs" reduce_alpha="mtst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="400" minimum_height="200" minimum_width="260"/>
    <record id="widget_info">
      <symbol id="class" value="home_match_team_stats_floating_panel"/>
      <boolean id="use_short_name_format" value="true"/>
    </record>
  </container>

  <!-- Away player ratings widget-->
  <container class="match_floating_panel_base" title="Away Player Ratings" width="260" height="330" id="afMs" reduce_alpha="mtst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="400" minimum_height="200" minimum_width="260"/>
    <record id="widget_info">
      <symbol id="class" value="away_match_team_stats_floating_panel"/>
      <boolean id="use_short_name_format" value="true"/>
    </record>
  </container>

  <!-- Home assistant manager analysis widget -->
  <container class="match_floating_panel_base" title="Home Assistant Analysis" width="300" height="400" id="Mhan" reduce_alpha="mafl" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="500" minimum_height="250" minimum_width="250"/>
    <record id="widget_info">
      <symbol id="class" value="match_home_analysis_panel"/>
      <string id="file" value="match analysis floating" translate="false"/>
    </record>
  </container>

  <!-- Away assistant manager analysis widget -->
  <container class="match_floating_panel_base" title="Away Assistant Analysis" width="300" height="400" id="Maan" reduce_alpha="mafl" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="500" minimum_height="250" minimum_width="250"/>
    <record id="widget_info">
      <symbol id="class" value="match_away_analysis_panel"/>
      <string id="file" value="match analysis floating" translate="false"/>
    </record>
  </container>

  <!-- Home player motivation widget-->
  <container class="match_floating_panel_base" title="Home Player Body Language" width="260" height="330" id="htms" reduce_alpha="mtst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="200" minimum_height="200" minimum_width="260"/>
    <record id="widget_info">
      <symbol id="class" value="match_home_team_motivation_short_panel"/>
      <string id="file" value="match team motivation floating" translate="false"/>
      <boolean id="use_short_name_format" value="true"/>
    </record>
  </container>

  <!-- Away player motivation widget-->
  <container class="match_floating_panel_base" title="Away Player Body Language" width="260" height="330" id="atms" reduce_alpha="mtst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="400" minimum_height="200" minimum_width="260"/>
    <record id="widget_info">
      <symbol id="class" value="match_away_team_motivation_short_panel"/>
      <string id="file" value="match team motivation floating" translate="false"/>
      <boolean id="use_short_name_format" value="true"/>
    </record>
  </container>

  <!-- Home player performance widget-->
  <container class="match_floating_panel_base" title="Home Player Performance" width="260" height="330" id="htps" reduce_alpha="mtst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="400" minimum_height="200" minimum_width="260"/>
    <record id="widget_info">
      <symbol id="class" value="match_home_team_performance_short_panel"/>
      <string id="file" value="match team performance floating" translate="false"/>
      <boolean id="use_short_name_format" value="true"/>
    </record>
  </container>

  <!-- Away player performance widget-->
  <container class="match_floating_panel_base" title="Away Player Performance" width="260" height="330" id="atps" reduce_alpha="mtst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="400" minimum_height="200" minimum_width="260"/>
    <record id="widget_info">
      <symbol id="class" value="match_away_team_performance_short_panel"/>
      <string id="file" value="match team performance floating" translate="false"/>
      <boolean id="use_short_name_format" value="true"/>
    </record>
  </container>

  <!-- Home Formation widget-->
  <container class="match_floating_panel_base" title="Home Formation" width="200" height="310" id="hmtt" reduce_alpha="pwtc">
    <record id="widget_info">
      <symbol id="class" value="match_formation_panel"/>
      <integer id="team_index" value="0"/>
      <boolean id="read_only" value="true"/>
      <boolean id="pitch_draw_for_tactics_screen" value="false"/>
      <integer id="pitch_kit_height" value="32"/>
      <integer id="pitch_kit_width" value="34"/>
      <boolean id="pitch_show_names" value="false"/>
      <boolean id="pitch_show_names_as_hint" value="true"/>
      <boolean id="pitch_dont_use_player_properties" value="true"/>
    </record>
  </container>

  <!-- Away Formation widget-->
  <container class="match_floating_panel_base" title="Away Formation" width="200" height="310" id="amtt" reduce_alpha="pwtc">
    <record id="widget_info">
      <symbol id="class" value="match_formation_panel"/>
      <integer id="team_index" value="1"/>
      <boolean id="read_only" value="true"/>
      <boolean id="pitch_draw_for_tactics_screen" value="false"/>
      <integer id="pitch_kit_height" value="32"/>
      <integer id="pitch_kit_width" value="34"/>
      <boolean id="pitch_show_names" value="false"/>
      <boolean id="pitch_show_names_as_hint" value="true"/>
      <boolean id="pitch_dont_use_player_properties" value="true"/>
    </record>
  </container>

  <!-- Match report widget-->
  <container class="match_floating_panel_base" title="Match Report" width="260" height="250" id="mtrp" reduce_alpha="mrit" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="700" maximum_width="400" minimum_height="100" minimum_width="200"/>
    <record id="widget_info">
      <symbol id="class" value="match_report_panel"/>
      <string id="file" value="match report small" translate="false"/>
    </record>
  </container>

  <!-- Latest Scores widget-->
  <container class="match_floating_panel_base" title="Latest Scores" width="370" height="220" id="mlsp" reduce_alpha="mlst" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="500" maximum_width="500" minimum_height="100" minimum_width="200"/>
    <record id="widget_info">
      <symbol id="class" value="match_latest_scores_panel"/>
      <string id="file" value="match latest scores floating" translate="false"/>
      <boolean id="save_current_state" value="true"/>
    </record>
  </container>

  <!-- Latest Event Updates widget-->
  <container class="match_floating_panel_base" title="Latest Event Updates[COMMENT: match screen panel; information on goals, red cards, injuries etc from all matches taking place on a matchday]" width="370" height="90" id="mgup" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="500" maximum_width="500" minimum_height="60" minimum_width="200"/>
    <record id="widget_info">
      <symbol id="class" value="match_goal_update_panel"/>
      <string id="file" value="match goal update floating" translate="false"/>
    </record>
  </container>

  <!-- League Table widget-->
  <container class="match_floating_panel_base" title="League Table" width="350" height="226" id="mltp" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="600" maximum_width="500" minimum_height="100" minimum_width="200"/>
    <record id="widget_info">
      <symbol id="class" value="match_league_table_panel"/>
      <boolean id="MLTf" value="true"/>
    </record>
  </container>

  <!-- debug -->
  <container class="match_floating_panel_base" text="Debug" width="450" height="560" id="mtdb" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="560" maximum_width="400"/>
    <record id="widget_info">
      <symbol id="class" value="match_debug_panel"/>
    </record>
  </container>

  <!-- controller -->
  <container class="match_floating_panel_base" title="Controller[COMMENT - debug only]" width="300" height="165" id="mctr" file="match floating panel base resizeable">
    <attachment kind="sizeable_attachment" maximum_height="165" maximum_width="300"/>
    <record id="widget_info">
      <symbol id="class" value="match_controller_panel"/>
    </record>
  </container>

    <widget class="picture" id="pict" file="icons/logos/mbc" scale_picture="true" keep_aspect_ratio="true" height="150" width="280"  image_alignment="centre">
    <layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
    <layout class="stick_to_sides_attachment" alignment="right" inset="10"/>
    </widget>

  <!--slide-out scores-->
  <widget class="match_titlebar_panel" id="MHDr" file="match title bar score" height="190">
    <layout class="stick_to_sides_attachment" alignment="top" inset="-40"/>
    <layout class="stick_to_sides_attachment" alignment="left" inset="10"/>
            
    <!--home button-->
    <widget class="button" id="homb" click_event="home" auto_size="all" appearance="boxes/scoreboard2/home">
      <layout class="centre_in_parent_attachment" alignment="vertical" offset="0"/>
    <layout class="stick_to_sides_attachment" alignment="left" inset="40"/>
    </widget>

    <!--comp logo-->
    <widget class="picture" id="no" scale_picture="true" alignment="centre_y,left" keep_aspect_ratio="true" height="60" width="60">
    <layout class="stick_to_sides_attachment" alignment="top" inset="52"/>
    <layout class="stick_to_sides_attachment" alignment="left" inset="48"/>
    <boolean id="keep_aspect_ratio" value="true" />
      <flags id="image_alignment" value="centre_x,left" />
      <record id="object_property">
        <integer id="get_property" value="no" />
      </record>
    </widget>

    <container width="500">
    <layout class="stick_to_sides_attachment" alignment="top" inset="73"/>
    <layout class="stick_to_sides_attachment" alignment="left" inset="138"/>

    <widget class="fixture_name_text" auto_size="horizontal" id="no" spec="text,large,bold" size="11" alignment="top,left" colour="white">
      <layout class="stick_to_sides_attachment" alignment="top" inset="0"/>
      <layout class="stick_to_sides_attachment" alignment="left" inset="0"/>
          <layout class="stick_to_sides_attachment" alignment="vertical" inset="35"/>

      <record id="object_property">
        <integer id="get_property" value="FxNm" />
      </record>
    </widget>

    </container>

  </widget>

  <!--in-between highlights summary panel-->
  <widget class="match_in_between_highlights_panel" id="MVSp">
    <layout class="centre_in_parent_attachment" alignment="all"/>
  </widget>

  <!-- panel containing list of available info widgets -->
  <container class="plain_box" id="wlbx" appearance="pitch/boxes/black/paper" hidden="true">
    <layout class="arrange_vertical_attachment" alignment="top" offset="8" gap="8"/>
    <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="8"/>

    <layout class="stick_to_sides_attachment" alignment="bottom" inset="32"/>
    <layout class="stick_to_sides_attachment" alignment="right" inset="0"/>

    <layout class="fit_children_attachment" alignment="horizontal" offset="8"/>
    <layout class="fit_children_attachment" alignment="vertical,fill" offset="10" gap="8"/>

    <widget class="table" id="wltb" layout="16, -1" width="180">
      <integer id="row_height" value="17"/>
      <integer id="row_spacing" value="6"/>
      <integer id="column_spacing" value="6"/>
      <boolean id="stretch_to_fit_rows" value="true"/>
      <flags id="mode" value="none" />

      <list id="column_properties">
        <record indx="1" colour="match text"/>
      </list>

    </widget>

    <widget class="button" text="Minimise All[COMMENT: match screen - button on tv view that will minimise all information widgets.]" id="mabt" click_event="miaw"/>
    <widget class="button" text="Restore All[COMMENT: match screen - button on tv view that will restore all the information widgets that have been minimised.]" id="rabt" click_event="reaw" hidden="true"/>
  </container>

</panel>
