Jump to content

Comparison panel - highlight player


oi_oi_ginger_roy
 Share

Recommended Posts

I’m trying to create my own skin but I’m struggling to know how to get the selected player to be highlighted (within player overview screen) when looking at the comparison selector.

Attached is how I currently have it but I want the player who’s screen you’re on to have a different colour background row - see 2nd attachment  🤷🏻‍♂️ 

0324E730-9795-4733-9CAC-1140CA525E2C.jpeg

5CFA2578-841B-4994-813F-A30F1D949414.jpeg

Edited by oi_oi_ginger_roy
Link to post
Share on other sites

37 minutes ago, oi_oi_ginger_roy said:

I’m trying to create my own skin but I’m struggling to know how to get the selected player to be highlighted (within player overview screen) when looking at the comparison selector.

Attached is how I currently have it but I want the player who’s screen you’re on to have a different colour background row - see 2nd attachment  🤷🏻‍♂️ 

 

Spoiler

0324E730-9795-4733-9CAC-1140CA525E2C.jpeg

 

 

Spoiler

5CFA2578-841B-4994-813F-A30F1D949414.jpeg

 

Try adding this to the table widget - mode="fill_rows,stripe_rows,no_scrolling,show_bullets,select_rows"
if i remember correct, it's either the fill_rows or the select_rows that highlight the name, but i'm not 100% sure.

Link to post
Share on other sites

7 hours ago, snowofman said:

Try adding this to the table widget - mode="fill_rows,stripe_rows,no_scrolling,show_bullets,select_rows"
if i remember correct, it's either the fill_rows or the select_rows that highlight the name, but i'm not 100% sure.

Thanks for the reply

So nearly there - it now highlights the row once clicked but is there a way of it auto-selecting the player who's profile you are on, so it defaults to that player as selected?

Link to post
Share on other sites

8 minutes ago, oi_oi_ginger_roy said:

Thanks for the reply

So nearly there - it now highlights the row once clicked but is there a way of it auto-selecting the player who's profile you are on, so it defaults to that player as selected?

Should be in the same line as above., else i'm not sure where it picks it up without some testing
 


 

Link to post
Share on other sites

16 minutes ago, oi_oi_ginger_roy said:

I'm not sure if something else i have done is conflicting it but it only highlights the row once clicked - by default none are selected. I'm baffled lol

you can try and add the widget used, might be easier to see without testing once i'm home

Link to post
Share on other sites

This is what i've put and it just doesn't highlight the player unless i click on the person's name

 

            <!-- Ability list table -->
            <widget class="table" id="calL" mode="fill_rows,stripe_rows,select_rows" layout="24,-5,-3,-3">
                <list id="column_widget_properties">
                    <record indx="0" alignment="left,centre_y" />
                    <record indx="1" alignment="left,centre_y" />
                    <record indx="2" alignment="left,centre_y" />
                    <record indx="3" alignment="left,centre_y"/>
                </list>

                <list id="column_table_properties">
                    <record indx="0" sort_disabled="true" left="5" />
                    <record indx="1" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="227966" type="use" value="Player" />
                        </record>
                    </record>
                    <record indx="2" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="314426" type="use" value="Ability[COMMENT: player popup info panel - scout current ability rating]" />
                            <translation id="hint" translation_id="310135" type="use" value="Current Ability[COMMENT: contract offer screen - comments table]" />
                        </record>
                    </record>
                    <record indx="3" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="314427" type="use" value="Potential[COMMENT: player popup info panel - scout potential ability rating]"/>
                            <translation id="hint" translation_id="310136" type="use" value="Potential Ability[COMMENT: contract offer screen - comments table]" />
                        </record>
                    </record>

                </list>
            </widget>

Link to post
Share on other sites

Try this

 

<container id="main">
            <attachment_group class="vertical_arrange" vertical_alignment="top,extend" />

 <widget class="text" id="cdsc" auto_size="vertical" colour="faded text" size="small" />

<!-- Ability list table -->
            <widget class="table" id="calL" mode="fill_rows,stripe_rows,select_rows" layout="24,-5,-3,-3">
                <list id="column_widget_properties">
                    <record indx="0" alignment="left,centre_y" colour="faded text" />
                    <record indx="1" alignment="left,centre_y" />
                    <record indx="2" alignment="left,centre_y" />
                    <record indx="3" alignment="left,centre_y"/>
                </list>

                <list id="column_table_properties">
                    <record indx="0" sort_disabled="true" left="5" />
                    <record indx="1" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="227966" type="use" value="Player" />
                        </record>
                    </record>
                    <record indx="2" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="314426" type="use" value="Ability[COMMENT: player popup info panel - scout current ability rating]" />
                            <translation id="hint" translation_id="310135" type="use" value="Current Ability[COMMENT: contract offer screen - comments table]" />
                        </record>
                    </record>
                    <record indx="3" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="314427" type="use" value="Potential[COMMENT: player popup info panel - scout potential ability rating]"/>
                            <translation id="hint" translation_id="310136" type="use" value="Potential Ability[COMMENT: contract offer screen - comments table]" />
                        </record>
                    </record>

                </list>
            </widget>

</container>

 

Edit: the container might not be needed in your setup.

Edited by snowofman
Link to post
Share on other sites

Still no joy :(

This is my whole panel, not sure if something else is affecting it

 

 

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

    <container>
        <layout class="arrange_vertical_attachment" alignment="top,extend" offset="4" gap="10" />
        <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />

        <widget class="text" auto_size="vertical" font="title" colour="accent">
            <translation id="text" translation_id="248428" type="use" value="Comparison" />
        </widget>

        <container id="main">
            <layout class="arrange_vertical_attachment" alignment="top,extend" offset="0" gap="10" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" apply_to_children="true" />

            <container class="main_subtle_box">
                <layout class="vertical_arrange_autosize"/>

                <widget class="text" id="cdsc" auto_size="vertical" colour="faded text" size="small" />

            </container>


            <!-- Ability list table -->
            <widget class="table" id="calL" mode="fill_rows,stripe_rows,select_rows" layout="24,-5,-3,-3">
                <list id="column_widget_properties">
                    <record indx="0" alignment="left,centre_y" colour="faded text" />
                    <record indx="1" alignment="left,centre_y" />
                    <record indx="2" alignment="left,centre_y" />
                    <record indx="3" alignment="left,centre_y"/>
                </list>

                <list id="column_table_properties">
                    <record indx="0" sort_disabled="true" left="5" />
                    <record indx="1" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="227966" type="use" value="Player" />
                        </record>
                    </record>
                    <record indx="2" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="314426" type="use" value="Ability[COMMENT: player popup info panel - scout current ability rating]" />
                            <translation id="hint" translation_id="310135" type="use" value="Current Ability[COMMENT: contract offer screen - comments table]" />
                        </record>
                    </record>
                    <record indx="3" sort_disabled="true" >
                        <record id="column_heading">
                            <flags id="alignment" value="left,centre_y" />
                            <translation id="text" translation_id="314427" type="use" value="Potential[COMMENT: player popup info panel - scout potential ability rating]"/>
                            <translation id="hint" translation_id="310136" type="use" value="Potential Ability[COMMENT: contract offer screen - comments table]" />
                        </record>
                    </record>

                </list>
            </widget>

        </container>

        <!-- No scout report -->
        <container id="nsrc" width="230">
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="10" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" />
            <layout class="stick_to_sides_attachment" alignment="left" inset="0" apply_to_children="true" />

            <!--explanatory text-->
            <widget class="text" alignment="centre" spec="text" auto_size="vertical">
                <translation id="text" translation_id="320496" type="use" value="You need to request a member of your scouting staff to compile a report on this player.[COMMENT: scout report; need to scout advice]" />
                <layout class="stick_to_sides_attachment" alignment="horizontal" />
            </widget>
            <widget class="button" id="sctP" click_event="sctc" auto_size="horizontal" height="30">
                <translation id="text" translation_id="243421" type="use" value="Scout Player" />
                <layout class="centre_in_parent_attachment" alignment="horizontal" />
            </widget>
        </container>

        <!-- No Coach Report-->
        <container id="ncrc" width="230">
            <layout class="arrange_vertical_attachment" alignment="top" offset="10" gap="0" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" apply_to_children="true" />
            <layout class="stick_to_sides_attachment" alignment="left" inset="0" />

            <!--explanatory text-->
            <widget class="text" alignment="centre" spec="text" size="large" style="semi_bold, embossed" auto_size="vertical">
                <translation id="text" translation_id="320498" type="use" value="You need to have at least one coach at your team to compile a report on this player.[COMMENT: coach report; need staff advice]" />
            </widget>
            <widget class="text" auto_size="vertical" alignment="centre" size="8">
                <translation id="text" translation_id="326089" type="use" value="You can find staff to hire via the Staff Search.[COMMENT: team report; need to scout sub advice]" />
            </widget>
            <widget class="spacer" height="10" />
            <widget class="link_appearance_button" click_event="gtss">
                <translation id="text" translation_id="320500" type="use" value="Staff Search[COMMENT: team report; link to the staff search]" />
                <layout class="centre_in_parent_attachment" alignment="horizontal" />
            </widget>
        </container>

        <!-- No national report-->
        <container id="nnrc" width="230">
            <layout class="arrange_vertical_attachment" alignment="top" offset="0" gap="10" />
            <layout class="stick_to_sides_attachment" alignment="horizontal" apply_to_children="true" />
            <layout class="stick_to_sides_attachment" alignment="left" inset="0" />

            <!--explanatory text-->
            <widget class="text" id="info" alignment="centre" spec="text" style="semi_bold, embossed" auto_size="all" />
            <widget class="button" id="sctn" click_event="sctn" auto_size="horizontal">
                <translation id="text" translation_id="243421" type="use" value="Scout Player" />
                <layout class="centre_in_parent_attachment" alignment="horizontal" />
            </widget>
        </container>

        <!-- Already being scounted -->
        <container id="Arbs" width="230">
            <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" />
            <layout class="stick_to_sides_attachment" alignment="left" inset="0" />

            <!--explanatory text-->
            <widget class="text" id="arbt" alignment="centre" spec="text" size="large" style="semi_bold, embossed" auto_size="vertical">
                <translation id="text" translation_id="447600" type="use" value="This player is being scouted by [%person#1] and the report will be available shortly.[COMMENT:scout report, scouting in progress]" />
            </widget>
        </container>

        <container id="naSP" width="230">
            <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" />
            <layout class="stick_to_sides_attachment" alignment="left" inset="0" />

            <!--explanatory text-->
            <widget class="text" alignment="centre" spec="text" size="large" style="semi_bold, embossed" auto_size="all">
                <translation id="text" translation_id="435189" type="use" value="Unavailable[COMMENT: no scouting report available; was ID 247303 but some languages need specific translations here]" />
            </widget>
        </container>

    </container>
</panel>

 

Link to post
Share on other sites

ahh that helped..

 

Inset this line 

<flags id="cham" value="tables/custom/league/main continental/row" colour="primary"/>

like this

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

<flags id="cham" value="tables/custom/league/main continental/row" colour="primary"/>

 

 

 

Link to post
Share on other sites

5 minutes ago, oi_oi_ginger_roy said:

Is there a go to thread/manual that explains what everything does in more detail?

I know how to code so kinda understand what everything does but i'm more a trial an error person and it's taking ages  :confused:

sadly not, everything is trial and error and remembering after that

Link to post
Share on other sites

1 hour ago, snowofman said:

sadly not, everything is trial and error and remembering after that

That's what i thought, still it's enjoyable learning.

 

Whilst you're there though, I don't suppose you know the widget code for the honours section do you, please? - i want to add the attached, to my club overview screen i am creating? ;)

IMG_8059.jpg

Link to post
Share on other sites

42 minutes ago, oi_oi_ginger_roy said:

That's what i thought, still it's enjoyable learning.

 

Whilst you're there though, I don't suppose you know the widget code for the honours section do you, please? - i want to add the attached, to my club overview screen i am creating? ;)

IMG_8059.jpg

If you unpack the "panels" folder from inside the game, you have all panels in the game..might be faster for you to search that way for any code you might need

then you can always ask for name on panels if you can't find it :)

i believe the name of this file is "honours info panel.xml" in the teams folder

 

 

Edit: steam-games\steamapps\common\Football Manager 2022\data\game - it's the path for the files

Edited by snowofman
Link to post
Share on other sites

nvm.. forget the above other then the files you can unpack.

 

here is the code you've asked for

 

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

            <container class="scrolling_box" fit_content_horizontal="true" fit_content_vertical="false">
                <container class="container" id="hnrs">
                    <layout class="arrange_horizontal_attachment" alignment="left" offset="0" />
                    <layout class="fit_children_attachment" alignment="horizontal,fill" offset="0"/>
                    <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" />
                </container>
            </container>
    </container>

Link to post
Share on other sites

9 minutes ago, snowofman said:

nvm.. forget the above other then the files you can unpack.

 

here is the code you've asked for

 

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

            <container class="scrolling_box" fit_content_horizontal="true" fit_content_vertical="false">
                <container class="container" id="hnrs">
                    <layout class="arrange_horizontal_attachment" alignment="left" offset="0" />
                    <layout class="fit_children_attachment" alignment="horizontal,fill" offset="0"/>
                    <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" />
                </container>
            </container>
    </container>

All working. Thanks again for the help

image.jpg

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...