BuzzR Posted October 26, 2021 Share Posted October 26, 2021 (edited) Hi, I am trying to set up Transfer Status and Loan Status labels on player personal details panel.xml and the widgets from player transfer information.xml do not work as intended. Version 1 doesn't show something on value label, and Version 2 show Not Set on value label but the player has the status Listed on transfer panel. I've also attached the player personal details panel.xml if necessary. Any help appreciated. Thanks. <!-- Version 1 --> <!-- Transfer Status --> <container class="vertical_label_value_pair" value_widget="TStaV" label_widget="TsL" gap="2"> <widget class="label" id="TsL"> <translation id="text" translation_id="227953" type="use" value="Transfer Status" /> </widget> <widget class="client_object_label" id="TStaV" font="value" size="small"> <record id="object_property" get_property="TSta" /> </widget> </container> <!-- Loan Status --> <container class="vertical_label_value_pair" value_widget="LStaV" label_widget="LsL" gap="2"> <widget class="label" id="LsL"> <translation id="text" translation_id="247489" type="use" value="Loan Status" /> </widget> <widget class="client_object_label" id="LStaV" font="value" size="small"> <record id="object_property" get_property="LSta" /> </widget> </container> Or <!-- Version 2 --> <!-- Transfer Status --> <container class="vertical_label_value_pair" value_widget="TStaV" label_widget="TsL" gap="2"> <widget class="label" id="TsL"> <translation id="text" translation_id="227953" type="use" value="Transfer Status" /> </widget> <widget class="transfer_status_label" id="TStaV" font="value" size="small"> <record id="object_property" get_property="TSta" /> </widget> </container> <!-- Loan Status --> <container class="vertical_label_value_pair" value_widget="LStaV" label_widget="LsL" gap="2"> <widget class="label" id="LsL"> <translation id="text" translation_id="247489" type="use" value="Loan Status" /> </widget> <widget class="loan_status_label" id="LStaV" font="value" size="small"> <record id="object_property" get_property="LSta" /> </widget> </container> player personal details panel.xml Edited October 26, 2021 by BuzzR added FM22 to title Link to post Share on other sites More sharing options...
BuzzR Posted October 27, 2021 Author Share Posted October 27, 2021 I managed to figure it out, so if anyone is interested here it is how I've done it.. 1. Duplicate panels\player\player transfer information small.xml to panels\player\player transfer information small 2.xml for example. 2. Strip it down to what info you want, I've only needed Transfer Status and Loan Status. here Is my example : <!-- Modified player tranfer information small 2.xml --> <panel> <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0"/> <boolean id="should_force_refresh" value="true" /> <container> <attachment_group class="vertical_arrange" vertical_alignment="top,extend" vertical_offset="0" vertical_gap="0" horizontal_alignment="horizontal" horizontal_inset="0" /> <container class="horizontal_arrange_container" alignment="fill" inset="0" offset="0"> <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" /> <!-- Transfer status --> <container class="vertical_label_value_pair" value_widget="trnc" label_widget="TrL"> <widget class="label" id="TrL" size="small"> <translation id="text" translation_id="227953" type="use" value="Transfer Status" /> </widget> <widget class="transfer_status_label" id="trnc" size="small" /> </container> <!-- Loan status --> <container class="vertical_label_value_pair" value_widget="lonc" label_widget="LsL"> <widget class="label" id="LsL" size="small"> <translation id="text" translation_id="247489" type="use" value="Loan Status" /> </widget> <widget class="loan_status_label" id="lonc" size="small"/> </container> </container> </container> </panel> 3. Duplicate panels\player\player overview small selector panel.xml to panels\player\player overview small selector panel 2.xml for example 4. Strip it down to only one item - our player transfer information small 2 that we've created at step 2. Here is my example : <!-- player overview small selector panel 2.xml --> <panel navigation_container="true"> <container id="SUBP"> <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0" /> <layout class="stick_to_sides_attachment" alignment="all" inset="0" /> </container> <widget class="player_transfer_information_small_panel" file="player/player transfer information small 2" id="ptri" late_loading="true"> <!--<translation id="title" translation_id="227953" type="use" value="Transfer Status" /> --> </widget> </panel> 5. Add the selector to panels\player\player personal details panel.xml to any of the 3 containers : <!-- Transfer and Loan status --> <container class="vertical_adaptive_container" default_height="-3" offset="0" inset="0" gap="0" mode="distribute_equally"> <record id="default_properties" file="player/player overview small selector panel 2" save_session_state="true" default_width="-1" /> <container class="client_object_viewer_selector_panel" id="cos11" file="player/player overview small selector panel 2" save_session_state="true" default_height="-1" default_width="-1" priority="3"> </container> </container> 6. Enjoy the result. 2 Link to post Share on other sites More sharing options...
lugui Posted October 27, 2021 Share Posted October 27, 2021 5 horas atrás, BuzzR disse: I managed to figure it out, so if anyone is interested here it is how I've done it.. 1. Duplicate panels\player\player transfer information small.xml to panels\player\player transfer information small 2.xml for example. 2. Strip it down to what info you want, I've only needed Transfer Status and Loan Status. here Is my example : <!-- Modified player tranfer information small 2.xml --> <panel> <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0"/> <boolean id="should_force_refresh" value="true" /> <container> <attachment_group class="vertical_arrange" vertical_alignment="top,extend" vertical_offset="0" vertical_gap="0" horizontal_alignment="horizontal" horizontal_inset="0" /> <container class="horizontal_arrange_container" alignment="fill" inset="0" offset="0"> <layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true" /> <!-- Transfer status --> <container class="vertical_label_value_pair" value_widget="trnc" label_widget="TrL"> <widget class="label" id="TrL" size="small"> <translation id="text" translation_id="227953" type="use" value="Transfer Status" /> </widget> <widget class="transfer_status_label" id="trnc" size="small" /> </container> <!-- Loan status --> <container class="vertical_label_value_pair" value_widget="lonc" label_widget="LsL"> <widget class="label" id="LsL" size="small"> <translation id="text" translation_id="247489" type="use" value="Loan Status" /> </widget> <widget class="loan_status_label" id="lonc" size="small"/> </container> </container> </container> </panel> 3. Duplicate panels\player\player overview small selector panel.xml to panels\player\player overview small selector panel 2.xml for example 4. Strip it down to only one item - our player transfer information small 2 that we've created at step 2. Here is my example : <!-- player overview small selector panel 2.xml --> <panel navigation_container="true"> <container id="SUBP"> <layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true" inset="0" /> <layout class="stick_to_sides_attachment" alignment="all" inset="0" /> </container> <widget class="player_transfer_information_small_panel" file="player/player transfer information small 2" id="ptri" late_loading="true"> <!--<translation id="title" translation_id="227953" type="use" value="Transfer Status" /> --> </widget> </panel> 5. Add the selector to panels\player\player personal details panel.xml to any of the 3 containers : <!-- Transfer and Loan status --> <container class="vertical_adaptive_container" default_height="-3" offset="0" inset="0" gap="0" mode="distribute_equally"> <record id="default_properties" file="player/player overview small selector panel 2" save_session_state="true" default_width="-1" /> <container class="client_object_viewer_selector_panel" id="cos11" file="player/player overview small selector panel 2" save_session_state="true" default_height="-1" default_width="-1" priority="3"> </container> </container> 6. Enjoy the result. Thanks for sharing it so detailed, worked just fine! Link to post Share on other sites More sharing options...
BuzzR Posted October 27, 2021 Author Share Posted October 27, 2021 1 hour ago, lugui said: Thanks for sharing it so detailed, worked just fine! Glad it was useful ! 1 Link to post Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now