Jump to content

FM23: Players Faces on Subs Bench (not shirts)


stevemc
 Share

Recommended Posts

Evening all,

I'm after having the players faces on the subs bench in match, instead of shirts. I had this set up in FM21 and FM22 but for some reason I can't get it to work in FM23 - any Ideas?

I know it's controlled by this file:
/Users/NAME/Library/Application Support/Sports Interactive/Football Manager 2023/skins/fm23BaseTrans/panels/widgets/match players bar widget.xml

 

FM23: Standard Bench (I want faces instead of the shirts)

image.thumb.png.e39f6e7ce334c29578e82cdd6a23c839.png

So it looks like this (face, number, heart):

image.png.073700133243d26e9e1d99a1630323ca.png

 

FM23 Code in match players bar widget.xml

Quote

<panel>
    <list id="properties_to_add_to_context">
        <integer value="Ttea"/>
    </list>

    <list id="properties_to_forward">
        <record get_property="aprn" target="bpic" set_property="file"/>
        <record get_property="rrep" target="bpic" set_property="rrep"/>
    </list>

    <flags id="titA" value="menus/standard/heading_item"/>

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

    <widget class="picture" file="boxes/custom/match/card/paper" id="bpic" scale_picture="true" keep_aspect_ratio="false"/>

    <container class="container_with_mouse_events" id="cefw">
        <attachment_group class="vertical_arrange" vertical_alignment="bottom,extend"  vertical_offset="0,0,0,0" horizontal_inset="0" vertical_gap="0"/>

        <container>
            <attachment_group class="vertical_arrange" vertical_alignment="top,extend" vertical_offset="0" horizontal_inset="2" vertical_gap="2"/>

            <container height="6"/>

            <container  height="16">
                <attachment_group class="horizontal_arrange" horizontal_layout="16,-1,16" horizontal_gap="0" horizontal_offset="0"/>

                <!--Goal icon if needed-->
                <widget class="client_object_property_panel" property="MPgl" id="MPgl">
                    <record id="widget_properties">
                        <flags id="scale_picture" value="false" />
                        <flags id="image_alignment" value="top" />
                        <flags id="auto_size" value="horizontal"/>
                        <boolean id="label_disabled" value="true"/>
                    </record>
                </widget>

                <!-- Position-->
                <widget class="client_object_property_panel" property="Pshp" alignment="bottom,centre_x" height="16">
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>
                    <record id="object_property" get_property="objt" set_property="objt" />
                    <record id="widget_properties">
                        <string id="appearance" value=""/>
                        <boolean id="disabled" value="true"/>
                        <string id="size" value="xsmall"/>
                        <boolean id="wants_mouse_events" value="false"/>
                    </record>
                </widget>

                <!--injury/sub icon if needed-->
                <widget class="client_object_property_panel" property="PinD" id="PinD">
                    <record id="widget_properties">
                        <flags id="label_disabled" value="true" />
                    </record>
                </widget>

            </container>

            <!--name-->
            <widget class="person_button"  id="name" font="title" alignment="centre,can_scale" auto_size="vertical" disable_link="true" size="small" format="[%person#1-shirt]" navigation_focus_target="false">
                <record id="object_property" get_property="objt" set_property="valu" />
            </widget>

            <container>
                <attachment_group class="horizontal_arrange" horizontal_alignment="middle" horizontal_offset="4" horizontal_gap="2" vertical_inset="4"/>
                
                <!-- Player picture -->
                <widget class="object_portrait_picture" id="pict" scale_picture="true" image_alignment="left, bottom">
                    <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>

                    <record id="object_property">
                        <integer id="get_property" value="objt"/>
                        <integer id="set_property" value="objt"/>
                    </record>
                </widget>
                
                <container>
                    <layout class="stick_to_sides_attachment" alignment="top,right" inset="0" apply_to_children="true"/>

                    <!--injury/red/yellow card -->
                    <container class="inner_box_no_margin" id="inji" height="16" width="16" oSin="true">
                    </container>

                </container>

                <container>
                  <layout class="arrange_vertical_attachment" layout="50, 20" offset="-10" gap="-12"/>
                  <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true"/>
                  <layout class="stick_to_sides_attachment" alignment="right" inset="-20" />
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" />

                <!--shirt-->
                <container width="38">
                    <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
                    <widget class="shirt_number_label" id="PsnS"/>
                    <container>
                        <layout class="stick_to_sides_attachment" alignment="top,right" inset="0" apply_to_children="true"/>
                        <widget class="picture" file="icons/16px/slightly injured" height="16" width="16" id="inji" scale_picture="true"/>
                    </container>
                </container>

                  <!--condition icon-->
                  <widget class="client_object_property_panel" property="PcOI" width="16" navigation_focus_target="false" id="PcOI">
                      <record id="object_property" get_property="objt" set_property="objt" />
                      <record id="widget_properties">
                          <boolean id="label_disabled" value="true" />
                          <boolean id="show_hover_popup" value="false" />
                          <integer id="width" value="16" />
                          <flags id="icon_alignment" value="centre"/>
                      </record>
                  </widget>
                    
                </container>

            </container>

        </container>

        <container class="main_box_no_margin" appearance="boxes/custom/darken/no margin/paper" height="27">
            <attachment_group class="horizontal_arrange" horizontal_alignment="middle" horizontal_offset="0" vertical_inset="0" horizontal_gap="4"/>

            <widget class="body_language_widget" id="Pmtc" label_disabled="true" width="16" icon_alignment="centre" appearance="" navigation_focus_target="false">

            </widget>

            <widget class="match_rating_label_formatted" id="rtIc" format="[%fraction#1-2.1]" dont_format_numeric_grouping="true" alignment="centre"  navigation_focus_target="false" auto_size="horizontal" wants_mouse_events="false">

            </widget>

        </container>
    </container>

    <!--The button that will get clicks-->
    <widget class="popup_button" id="abtn" appearance="buttons/custom/over state only/square/button" down_arrow_appearance="" fixed="true" select_event="acsl" default_focus="true"/>

</panel>

 

Code that worked in FM22 from the match players bar widget.xml but doesn't work in FM23:

Quote

<panel>
    <list id="properties_to_add_to_context">
        <integer value="Ttea"/>
    </list>

    <list id="properties_to_forward">
        <record get_property="aprn" target="bpic" set_property="file"/>
        <record get_property="rrep" target="bpic" set_property="rrep"/>
    </list>

    <flags id="titA" value="menus/standard/heading_item"/>

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

    <widget class="picture" file="boxes/custom/match/card/paper" id="bpic" scale_picture="true" keep_aspect_ratio="false"/>

    <container class="container_with_mouse_events" id="cefw">
        <attachment_group class="vertical_arrange" vertical_alignment="bottom,extend"  vertical_offset="0,0,0,0" horizontal_inset="0" vertical_gap="0"/>

        <container>
            <attachment_group class="vertical_arrange" vertical_alignment="top,extend" vertical_offset="0" horizontal_inset="2" vertical_gap="2"/>

            <container height="6"/>

            <container  height="16">
                <attachment_group class="horizontal_arrange" horizontal_layout="16,-1,16" horizontal_gap="0" horizontal_offset="0"/>

                <!--Goal icon if needed-->
                <widget class="client_object_property_panel" property="MPgl" id="MPgl">
                    <record id="widget_properties">
                        <flags id="scale_picture" value="false" />
                        <flags id="image_alignment" value="top" />
                        <flags id="auto_size" value="horizontal"/>
                        <boolean id="label_disabled" value="true"/>
                    </record>
                </widget>

                <!-- Position-->
                <widget class="client_object_property_panel" property="Pshp" alignment="bottom,centre_x" height="16">
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>
                    <record id="object_property" get_property="objt" set_property="objt" />
                    <record id="widget_properties">
                        <string id="appearance" value=""/>
                        <boolean id="disabled" value="true"/>
                        <string id="size" value="xsmall"/>
                        <boolean id="wants_mouse_events" value="false"/>
                    </record>
                </widget>

                <!--injury/sub icon if needed-->
                <widget class="client_object_property_panel" property="PinD" id="PinD">
                    <record id="widget_properties">
                        <flags id="label_disabled" value="true" />
                    </record>
                </widget>

            </container>

            <!--name-->
            <widget class="person_button"  id="name" font="title" alignment="centre,can_scale" auto_size="vertical" disable_link="true" size="small" format="[%person#1-shirt]" navigation_focus_target="false">
                <record id="object_property" get_property="objt" set_property="valu" />
            </widget>

            <container>
                <attachment_group class="horizontal_arrange" horizontal_alignment="middle" horizontal_offset="4" horizontal_gap="2" vertical_inset="4"/>
                
                <!-- Player picture -->
                <widget class="object_portrait_picture" id="pict" scale_picture="true" image_alignment="left, bottom">
                    <layout class="stick_to_sides_attachment" alignment="vertical" inset="0"/>
                    <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0"/>

                    <record id="object_property">
                        <integer id="get_property" value="objt"/>
                        <integer id="set_property" value="objt"/>
                    </record>
                </widget>
                
                <container>
                    <layout class="stick_to_sides_attachment" alignment="top,right" inset="0" apply_to_children="true"/>

                    <!--injury/red/yellow card -->
                    <container class="inner_box_no_margin" id="inji" height="16" width="16" oSin="true">
                    </container>

                </container>

                <container>
                  <layout class="arrange_vertical_attachment" layout="50, 20" offset="-10" gap="-12"/>
                  <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true"/>
                  <layout class="stick_to_sides_attachment" alignment="right" inset="-20" />
                  <layout class="stick_to_sides_attachment" alignment="all" inset="0" />

                  <!--shirt-->
                  <container class="tactics_icon_info_panel" id="PsnS" file="" icon_flags="show_number,dont_colour_number,dont_use_player_kits_back" width="38">
                      <layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
                      
                    <widget class="tactics_kit_picture" id="kitp" />

                  </container>

                  <!--condition icon-->
                  <widget class="client_object_property_panel" property="PcOI" width="16" navigation_focus_target="false" id="PcOI">
                      <record id="object_property" get_property="objt" set_property="objt" />
                      <record id="widget_properties">
                          <boolean id="label_disabled" value="true" />
                          <boolean id="show_hover_popup" value="false" />
                          <integer id="width" value="16" />
                          <flags id="icon_alignment" value="centre"/>
                      </record>
                  </widget>
                    
                </container>

            </container>

        </container>

        <container class="main_box_no_margin" appearance="boxes/custom/darken/no margin/paper" height="27">
            <attachment_group class="horizontal_arrange" horizontal_alignment="middle" horizontal_offset="0" vertical_inset="0" horizontal_gap="4"/>

            <widget class="body_language_widget" id="Pmtc" label_disabled="true" width="16" icon_alignment="centre" appearance="" navigation_focus_target="false">

            </widget>

            <widget class="match_rating_label_formatted" id="rtIc" format="[%fraction#1-2.1]" dont_format_numeric_grouping="true" alignment="centre"  navigation_focus_target="false" auto_size="horizontal" wants_mouse_events="false">

            </widget>

        </container>
    </container>

    <!--The button that will get clicks-->
    <widget class="popup_button" id="abtn" appearance="buttons/custom/over state only/square/button" down_arrow_appearance="" fixed="true" select_event="acsl" default_focus="true"/>

</panel>

 

Edited by stevemc
Link to post
Share on other sites

24 minutes ago, karlcole said:

Hi,

 

What do we need to change? mine is also not showing?

 

Thanks 

in the widgets/match players bar widget.xml

look for the line with class="person_button" in this line put in colour="text" and you should be good

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...