Jump to content

Big/Small selector panels changing on each click


_Ben_
 Share

Recommended Posts

I'm sure this was an actual issue a couple of years ago but everyone found a workaround...

You will notice the four panels on the right (2 small at the top and 2 big at the bottom) change whenever I move to another player:

cafd0e165c9542c0934861124af998a2.gif

Thanks!

 

Link to post
Share on other sites

11 minutes ago, Tyburn said:

Do you have widgets in those containers outside the selector container? They all need to be inside the selector container. At least that was my issue with some selector panels in FM21 anyway.

Well, I don't actually have any containers around the widgets but adding anything seems to destroy it all!

<panel dont_set_embedded_title="true">
	<container id="SUBP" class="inner_box_no_margin" >
		<layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="2" />
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" />
	</container>

	<widget class="popup_button" id="popv" auto_size="horizontal" height="15" click_event="msis" appearance="tcs/buttons/header/sec/button" red_replacement="secondary" fixed="true">
		<layout class="stick_to_sides_attachment" alignment="top,right" inset="8" />
	</widget>

	<!-- ATTRIBUTE ANALYSER -->
	<widget file="player/tcs/overview/selector/big/attribute analyser" id="paAn" class="client_object_viewer_xml_panel" late_loading="true">
		<translation id="title" translation_id="334971" type="use" value="Attribute Analysis" />
	</widget>

	<!-- COMPARISON -->
	<widget class="player_scout_reports_panel" id="psCa" file="player/tcs/overview/selector/big/comparison alt" late_loading="true">
		<translation id="title" type="use" value="Comparison" />
	</widget>	

</panel>

 

Link to post
Share on other sites

How do you define the selector in the parent panel - the player overview , and/or the player details ? There are some properties for the selectors to hold them on the same selected widget. 

Can you share a code snippet ?


There is also an general option like " Automatically override custom panels " .. Find it in preferences. When this is checked, the game changes panels to the " context needed" .

 

Link to post
Share on other sites

2 hours ago, BuzzR said:

How do you define the selector in the parent panel - the player overview , and/or the player details ? There are some properties for the selectors to hold them on the same selected widget. 

Can you share a code snippet ?

This is in player overview and I feel that this must be where the problem lies as I've tested selectors from other skin makers and still having the same issue.

		<container class="bordered_box"  default_width="150" minimum_width="150"  priority="1">
			<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/> 
			<!-- SMALL PANEL ON TOP  -->
			<container class="client_object_viewer_selector_panel" id="dua0" file="player/player overview small selector panel" save_session_state="true">
				<integer id="default_for_unemployed_managers" value="teli"/>
				<integer id="default_for_international_managers_other_team" value="teli"/>
				<integer id="default_for_everyone_else" value="teli"/>
				<integer id="default_for_versus_mode" value="teli"/>
			</container> 
		</container>

<widget class="vertical_divider"/>

 

2 hours ago, BuzzR said:

There is also an general option like " Automatically override custom panels " .. Find it in preferences. When this is checked, the game changes panels to the " context needed" .

I've tried this ticked and unticked, with no change:

b640bfdebf8c3b966d1ddb72cdf477a7.png

Link to post
Share on other sites

I think I know the problem.. You have the same id to multiple selectors...

change there ids. id="dua01" , id="dua02" etc.

<container class="client_object_viewer_selector_panel" id="dua0" file="player/player overview small selector panel" save_session_state="true">

 

Link to post
Share on other sites

15 minutes ago, BuzzR said:

I think I know the problem.. You have the same id to multiple selectors...

change there ids. id="dua01" , id="dua02" etc.

<container class="client_object_viewer_selector_panel" id="dua0" file="player/player overview small selector panel" save_session_state="true">

 

You are a amazing! These are the kind of things I'd never know to look out for. Now, as soon as I can get a workaround for the sidebar, or SI fix it on 85% zoom, I can actually get started!

I'd really like to learn more about skinning, rather than just asking for advice and help - where did you learn this kind of thing from?

Edited by _Ben_
Link to post
Share on other sites

33 minutes ago, _Ben_ said:

You are a amazing! These are the kind of things I'd never know to look out for. Now, as soon as I can get a workaround for the sidebar, or SI fix it on 85% zoom, I can actually get started!

I'd really like to learn more about skinning, rather than just asking for advice and help - where did you learn this kind of thing from?

Glad it worked.

I know the feeling, just one more change to the skin and then I will play the game.. I am saying this for the past week :lol: - and I've played only one match from the release of the beta.

I am far for knowledgeable about skinning fm.. Got a little bit of experience last year - with nothing to do during lockdown I've build my own skin for fm21 - a collage of other skins with some changes of my own. 

I did it mostly because I am old and my eyes are so bad even with glasses :kriss:, so I am playing on a large (4K) resolution 3840x2160 but with a zoom of 150% and nothing was showing the way I wanted to. 

I am constantly lurking this forum :eek: , searching the files from other skins to understand how other did it , snooping around inside the game files and obviously asking the guys here .. the mods are great, and there are a lot of guys willing to help out.

Check the pinned posts from Michael , but I think you are beyond starter level :cool:

 

Edited by BuzzR
spelling
Link to post
Share on other sites

2 hours ago, BuzzR said:

Glad it worked.

I know the feeling, just one more change to the skin and then I will play the game.. I am saying this for the past week :lol: - and I've played only one match from the release of the beta.

I am far for knowledgeable about skinning fm.. Got a little bit of experience last year - with nothing to do during lockdown I've build my own skin for fm21 - a collage of other skins with some changes of my own. 

I did it mostly because I am old and my eyes are so bad even with glasses :kriss:, so I am playing on a large (4K) resolution 3840x2160 but with a zoom of 150% and nothing was showing the way I wanted to. 

I am constantly lurking this forum :eek: , searching the files from other skins to understand how other did it , snooping around inside the game files and obviously asking the guys here .. the mods are great, and there are a lot of guys willing to help out.

Check the pinned posts from Michael , but I think you are beyond starter level :cool:

 

I think my problem comes with building my own stuff. I'm happy moving stuff over but, for example, I want to add the below box (in red) to my panel:

e57899388119c38889eed0fb143d1e4e.png

I have, literally, lifted that from my FM21 skin:

Spoiler
       <!-- Morale & Training -->
        <container class="main_box" draw_vertical_dividers="true">
            <attachment class="horizontal_arrange" horizontal_layout="-1,-1" horizontal_gap="16"/>

            <container>
                <attachment class="horizontal_arrange" horizontal_layout="-4,-1"/>
                <widget class="label" colour="faded text">
                    <translation id="text" translation_id="227839" type="use" value="Morale" />
                </widget>
                <widget class="editable_client_object_property_panel">
                    <record id="widget_info" class="morale_label" ShTx="false" default_path="icons/custom/morale/normal/default" path="icons/custom/morale/normal" alignment="right,centre_y" style="bold" should_recolour="true"/>
                    <record id="widget_properties" alignment="right,centre_y"/>
                    <record id="object_property" get_property="Pmor"/>
                </widget>

            </container>

            <container>
                <attachment class="horizontal_arrange" horizontal_layout="-4,-2"/>
                <widget class="label" colour="faded text">
                    <translation id="text" translation_id="242773" type="use" value="Training" />
                </widget>
                <widget class="training_rating_label_formatted" appearance="boxes/plain/standard/paper" font="text" size="normal" should_recolour="false" alignment="right,centre_y">
                    <string id="format" value="[%fraction#1-3.2]" />
                    <boolean id="dont_format_numeric_grouping" value="true" />
                    <string id="hint_if_no_value" value="-" />
                    <record id="object_property" get_property="Ptrt"/>
                </widget>
            </container>

        </container>


        <!-- Condition & Sharpness -->
        <container class="main_subtle_box" draw_vertical_dividers="true" appearance="FME/alternate/paper">
            <attachment class="horizontal_arrange" horizontal_layout="-1,-1" horizontal_gap="16"/>
            <container>
                <attachment class="horizontal_arrange" horizontal_layout="-4,-1"/>
                <widget class="label" colour="faded text">
                    <translation id="text" translation_id="227793" type="use" value="Condition" />
                </widget>
                <widget class="client_object_property_panel" property="PcOI" height="25" alignment="right,centre_y">
                    <record id="object_property" get_property="objt" set_property="objt" />
                </widget>
            </container>
            <container>
                <attachment class="horizontal_arrange" horizontal_layout="-4,-1"/>
                <widget class="label" colour="faded text">
                    <translation id="text" translation_id="395316" type="use" value="Sharpness" />
                </widget>
                <widget class="client_object_property_panel" property="PftI" height="25" alignment="right,centre_y">
                    <record id="object_property" get_property="objt" set_property="objt" />
                </widget>
            </container>
        </container>

 

but just cannot get it working in my panel! I know that I need to build some kind of container but I don't know which one, nor can I place things inside containers already there!

player attributes boxes panel.xml

---

EDIT: I mean, I've found a nice workaround as seen here but the thing still remains - the building of stuff terrifies me!

Edited by _Ben_
Link to post
Share on other sites

Here is a partial solution as I don't know the right id for the training property widget. Got it from some other skin back for the fm21.

There is a table that is added. You can alter the layout or the row_height of the table.

If you add another widget - if you get the training property id - you should add it considering the row indexes.

<!-- Additional attributes table -->
				<container class="client_object_viewer_xml_panel" id="attT">
					<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

					<widget class="table" layout="-1, 80" mode="fill_rows, printable" row_height="22" row_spacing="0">
						<record id="object_property" get_property="objt" set_property="objt" />
						<list id="column_table_properties">
							<record index="0" left="8" sort_disabled="true"/>
							<record index="1" right="8" sort_disabled="true"/>
						</list>
									
						<!-- Condition -->
						<widget class="label" row="0" column="0" column_span="2">
							<record id="object_property" get_property="Pcon" name="true"/>
						</widget>
						<widget class="editable_client_object_property_panel" id="conv" row="0" column="1" column_span="2">
							<record id="widget_info" class="player_condition_icon_widget" appearance=""  label_disabled="true" icon_alignment="right"/>
							<record id="widget_properties" alignment="right,centre_y"/>
							<record id="object_property" get_property="PcOI"/>
						</widget>
						<!-- Fitness -->
						<widget class="label" row="1" column="0" column_span="2" >
							<record id="object_property" get_property="Pfit" name="true"/>
						</widget>
						<widget class="editable_client_object_property_panel" id="fitv" row="1" column="1" column_span="2">
							<record id="widget_info" class="player_match_sharpness_icon_widget" alignment="right,centre_y" appearance=""  label_disabled="true" icon_alignment="right"/>
							<record id="widget_properties" alignment="right,centre_y"/>
							<record id="object_property" get_property="PftI"/>
						</widget>
						<!-- Morale-->
						<widget class="label" row="2" column="0" column_span="1" >
							<record id="object_property" get_property="Pmor" name="true"/>
						</widget>
						<widget class="editable_client_object_property_panel" id="fmor" row="2" column="1" column_span="2">
							<record id="widget_info" class="morale_label" alignment="right,centre_y" icon_alignment="left" should_recolour="true"/>
							<record id="widget_properties" alignment="right,centre_y"/>
							<record id="object_property" get_property="Pmor"/>
						</widget>
																
						
					</widget>
				</container>

 

player attributes panel.xml

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