Jump to content
Sports Interactive Community
fenomeno9

Adding "Media description" to the player info panel?

Recommended Posts

Hi fellow FMers. I would like to add a players media description into my skin, i know which file i have to put it into, but know know the code. This is where i would like to have it:

14mrhhs.jpg

Share this post


Link to post
Share on other sites

It is in the player details.xml file which i suppose represents what you see when you click on OVERVIEW -> INFORMATION on a player in game, but not sure but that seems to be the only place i can find a piece of code mentioning the subject.

But i can't simply copy past it from there, have tried, wont work.

Here is the code (see the part marked in red near the bottom):

<?xml version='1.0' encoding='utf-8'?>

<panel>

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

<container>

<layout class="arrange_vertical_attachment" alignment="top,extend" offset="-1" gap="0" />

<layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

<widget class="table" id="left" mode="fill_rows, stripe_rows, printable" layout="-1,-1,-1" fixed_size_rows="true" row_spacing="0" row_height="18">

<list id="column_properties">

<record indx="0" />

<record indx="1" alignment="right,centre_y" colour="selection" />

<record indx="2" alignment="right,centre_y" colour="selection" />

</list>

<!-- small inset from sides of table -->

<list id="column_display_properties">

<record indx="0" left="4" sort_disabled="true" />

<record indx="1" rght="4" sort_disabled="true" />

<record indx="2" rght="4" sort_disabled="true" />

</list>

<!-- Nationality -->

<widget class="label" col="0" row="0" column_span="2">

<translation id="text" translation_id="227841" type="use" value="Nationality" />

</widget>

<widget class="editable_client_object_property_panel" id="pfna" col="1" row="0" column_span="2">

<record id="object_property">

<integer id="get_property" value="Pnat" />

</record>

<record id="widget_properties" icon_alignment="left,can_scale" display_format="1"/>

</widget>

<!-- International Appearances -->

<widget class="label" col="0" row="1" column_span="2">>

<translation id="text" translation_id="227820" type="use" value="International" />

</widget>

<widget class="international_appearances_label" id="piap" Ualt="false" col="1" row="1" column_span="2">

<record id="object_property">

<integer id="get_property" value="Pist" />

</record>

</widget>

<!-- DOB -->

<widget class="label" col="0" row="3" column_span="2">

<translation id="text" translation_id="227787" type="use" value="Born" />

</widget>

<!-- Date Of Birth -->

<widget class="editable_client_object_property_panel" id="pd1b" col="1" row="3" column_span="2">

<record id="object_property">

<integer id="get_property" value="Pdob" />

</record>

<record id="widget_properties" display_format="0" />

</widget>

<!-- Age -->

<widget class="label" col="0" row="2" column_span="2">

<translation id="text" translation_id="229407" type="use" value="Age" />

</widget>

<widget class="label" id="pfag" col="1" row="2" column_span="2">

<record id="object_property">

<integer id="get_property" value="Page" />

</record>

</widget>

<!-- Player Position -->

<widget class="label" col="0" row="4" column_span="2">

<translation id="text" translation_id="227884" type="use" value="Position" />

</widget>

<widget class="position_label" id="pbrs" col="1" row="4" column_span="2" display_format="2">

<record id="object_property">

<integer id="get_property" value="Pnps" />

</record>

</widget>

<!-- Foot -->

<widget class="label" col="0" row="5" column_span="2">

<translation id="text" translation_id="227955" type="use" value="Preferred Foot" />

</widget>

<widget class="foot_label" id="pfot" col="1" row="5" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pfot" />

</record>

</widget>

<!-- Height -->

<widget class="label" col="0" row="6" column_span="2">

<translation id="text" translation_id="247660" type="use" value="Height[COMMENT - player profile panel; height label]" />

</widget>

<widget class="height_label" id="phei" col="1" row="6" column_span="2">

<record id="object_property">

<integer id="get_property" value="Phei" />

</record>

</widget>

<!-- Weight -->

<widget class="label" col="0" row="7" column_span="2">

<translation id="text" translation_id="247661" type="use" value="Weight[COMMENT - player profile panel; weight label]" />

</widget>

<widget class="weight_label" id="pwei" col="1" row="7" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pwei" />

</record>

</widget>

<!-- Value -->

<widget class="label" col="0" row="8" column_span="2">

<translation id="text" translation_id="227806" type="use" value="Value" />

</widget>

<widget class="value_label" id="pval" col="1" row="8" column_span="2" >

<translation id="hint" translation_id="227806" type="use" value="Value" />

<record id="object_property">

<integer id="get_property" value="Pdva" />

</record>

</widget>

<!-- Wage Details -->

<widget class="label" col="0" row="9" column_span="2">

<translation id="text" translation_id="242768" type="use" value="Basic Wage" />

</widget>

<widget class="editable_client_object_property_panel" id="wagw" col="1" row="9" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pcww" />

</record>

</widget>

<!--Contract Expires -->

<widget class="label" col="0" row="10" column_span="2">

<translation id="text" translation_id="227785" type="use" value="Contract Expires" />

</widget>

<widget class="editable_client_object_property_panel" id="pexp" col="1" row="10" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pcex" />

</record>

<record id="widget_properties" format="[%date#1-shortest]"/>

</widget>

<widget class="label" col="0" row="11" column_span="2">

<translation id="text" translation_id="227783" type="use" value="Squad Status" />

</widget>

<widget class="squad_status_label" id="sqst" col="1" row="11" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pccs" />

</record>

</widget>

<widget class="label" col="0" row="12" column_span="2">

<translation id="text" translation_id="227963" type="use" value="Reputation" />

</widget>

<widget class="reputation_label" id="repU" col="1" row="12" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pcrp" />

</record>

</widget>

<widget class="label" col="0" row="13" column_span="2">

<translation id="text" translation_id="247713" type="use" value="Personality" />

</widget>

<widget class="personality_label" id="peRs" col="1" row="13" column_span="2" >

<record id="object_property">

<integer id="get_property" value="PPst"/>

</record>

</widget>

<widget class="label" col="0" row="14" column_span="2">

<translation id="text" translation_id="319499" type="use" value="Media Description[COMMENT: personal information screen; text indicating a person's media description]" />

</widget>

<widget class="player_description_text" id="dect" col="1" row="14" column_span="2" >

<record id="object_property">

<integer id="get_property" value="Pdes" />

</record>

</widget>

<!--Extra Info -->

<widget class="player_extra_details_text" spec="text" id="pinf" col="0" row="16" column_span="3" colour="profile extra text" alignment="right, centre_y" >

<record id="object_property">

<integer id="get_property" value="PExD" />

</record>

</widget>

<widget class="label" id="cobp" col="0" row="15" column_span="2">

<translation id="text" translation_id="291327" type="use" value="Media Handling Style[COMMENT: player transfer panel; how staff handles media]" />

</widget>

<widget class="media_handling_label" id="mhst" col="1" row="15" column_span="2">

<record id="object_property">

<integer id="get_property" value="Pmst" />

</record>

</widget>

</widget>

</container>

</panel>

Share this post


Link to post
Share on other sites

@michaelmyrrayuk:

Thanks, but that didnt help.

The code looks like this now, with no changes (none at all, not even i error or the like):

<!--playing position row-->

<container priority="4" default_height="40" minimum_height="40">

<layout class="arrange_vertical_attachment" layout="-5,-3" offset="0" gap="5" />

<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

<!--best position-->

<widget class="position_label" spec="text,large,bold" id="bpos" size="13" alignment="centre_x,bottom" display_format="0" font="fonts/letterpressed">

<record id="object_property">

<integer id="get_property" value="Pnps" />

</record>

</widget>

<!--accomplished position-->

<widget class="position_label" id="apos" alignment="centre_x,top" display_format="0" size="small">

<record id="object_property">

<integer id="get_property" value="PAps" />

</record>

</widget>

<!--media description-->

<widget class="label" alignment="centre_x, bottom" font="fonts/letterpressed">

<translation id="text" translation_id="319499" type="use" value="Media Description[COMMENT: personal information screen; text indicating a person's media description]" />

</widget>

<widget class="player_description_text" id="Pdes" spec="text,large" style="bold" auto_size="vertical" size="11" alignment="centre_x,top" multiline="true">

<record id="object_property">

<integer id="get_property" value="Pdes" />

</record>

</widget>

</container>

<!--Squad status row-->

<container default_height="40" minimum_height="30" priority="99">

<layout class="arrange_horizontal_attachment" layout="-1, -1, -1" offset="0" gap="0" />

<layout class="stick_to_sides_attachment" alignment="vertical" inset="0" layout_children="true" />

<container>

<layout class="arrange_vertical_attachment" layout="-3,-2" offset="0" gap="0" />

<layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

Share this post


Link to post
Share on other sites

Even like this i doesnt work (styled in the same way like the "best position" coding just above. Nothing changes:

<widget class="player_description_text" spec="text,large,bold" id="Pdes" size="11" alignment="centre_x,bottom" display_format="0" font="fonts/letterpressed">

<record id="object_property">

<integer id="get_property" value="Pdes" />

</record>

</widget>

Should both the ID and the VALUE be "Pdes"? Because they differ in the coding for "Best position" and "Accomplished position", "bpos"/"Pnps" in the first and "apos"/"PAps" in the latter. And is the widget class supposed to be "player_description_text" without the word label in it like the others have ("position_label")?

Share this post


Link to post
Share on other sites

Yes different bits use different ids and combination of ids (it's trial and error as to what works and what doesn't) as well as classes.

The problem you have with the second to last example is with the layout of your code, you need to change the bold bit of this code:

<!--playing position row-->

<container priority="4" default_height="40" minimum_height="40">

<layout class="arrange_vertical_attachment" layout="-5,-3" offset="0" gap="5" />

<layout class="stick_to_sides_attachment" alignment="horizontal" inset="0" layout_children="true" />

You need to add another value in their as at the moment you are telling it to only display two items, you need to change it to something like:

<layout class="arrange_vertical_attachment" layout="-5,-3,-3" offset="0" gap="5" />

To get the newly added third item to display, though changing the numbers to suit.

Share this post


Link to post
Share on other sites

Its quite handy on the inbox scout reports too.

Share this post


Link to post
Share on other sites

So what is the correct slice of coding to get this implemented? I am keen to have this information on my player details screen

Share this post


Link to post
Share on other sites
So what is the correct slice of coding to get this implemented? I am keen to have this information on my player details screen

read Bryans quote. 3 posts up.

Share this post


Link to post
Share on other sites

That's the wonderful Steklo skin, with added mods/panels etc..

Grab what panels/mods you want here:

http://community.sigames.com/showthread.php/414358-FM15-Skinning-mods

Background (Save in the Steklo backgrounds folder, resize it to the same as the others in that folder)

http://www.pptbackgrounds.net/uploads/light-blue-abstract-lines-backgrounds-wallpapers.jpg

Steklo skin:

http://community.sigames.com/showthread.php/408272-Released!-FM15-Steklo-X5

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...