Jump to content

[Help] Link to National team in Player Profile doesn't work


SkaldfraNorden

Recommended Posts

I edited the player profile personal details panel and it now looks like this

keko-profile.png

Just like I wanted. :)

Except, one thing. When I click on national team flag or name, it doesn't take me to its squad. Anyone knows what might be the problem.

Here's the edited panel, if helps

<!-- Personal Details -->
<panel>
 <layout class="arrange_vertical_attachment" alignment="top,extend" offset="5" gap="4"/>
 <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0" />

 <!-- WITH PORTRAIT -->
 <!-- this version of the table is used if the player portrait is visible -->
 <widget class="table" id="pld1" mode="printable, fill_rows" layout="20,140,20,140" fixed_size_rows="true" row_spacing="0" row_height="18">

   <list id="column_properties">
     <record indx="0" alignment="left,centre_y"/>
     <record indx="1" alignment="left,centre_y" />
     <record indx="2" alignment="right,centre_y" />
     <record indx="3" alignment="right,centre_y" colour="selection" />
     <record indx="4" alignment="right,centre_y" />
   </list>

   <!-- small inset from sides of table -->
   <list id="column_display_properties">
     <record indx="0" left="0" sort_disabled="true"/>
     <record indx="1" left="6" sort_disabled="true"/>
     <record indx="2" left="6" sort_disabled="true"/>
     <record indx="3" rght="6" sort_disabled="true"/>
     <record indx="4" rght="6" sort_disabled="true"/>
   </list>

   <!-- custom row graphics -->
   <list id="row_properties">
     <record indx="9">
       <flags id="appearance" value="table/custom/stripe/row"/>
     </record>
     <record indx="10">
       <flags id="appearance" value="table/custom/stripe/row"/>
     </record>
     <record indx="13">
       <flags id="appearance" value="table/custom/stripe/row" />
     </record>
     <record indx="14">
       <flags id="appearance" value="table/custom/stripe/row"/>
     </record>
   </list>


   <!-- Attribute Analyser Container -->
   <container class="group_box" id="over" row="0" col="0" column_span="5" row_span="9">
     <layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="0"/>
     <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

     <!--mugshot-->
     <widget class="picture" id="ppic" image_alignment="bottom" scale_picture="false" keep_aspect_ratio="true"/>



   </container>
   <!-- Attribute Analyser Container -->

<!-- Logo and Picture Container -->
	<widget class="group_box" row="0" col="0" column_span="4" row_span="9">

     <!-- Club Logo -->
		<widget class="picture" id="pict" transparency="0.2" scale_picture="true" keep_aspect_ratio="true" height="176" width="176" image_alignment="center">
       <layout class="centre_in_parent_attachment" alignment="horizontal" offset="-165" priority="1"/>
	<layout class="centre_in_parent_attachment" alignment="vertical" offset="5" priority="1"/>
       <layout class="stick_to_sides_attachment" alignment="bottom" inset="1" priority="1"/>

       <!-- tells the picture to listen to the 'main picture' global property being set, and set its own file property from it -->
       <attachment class="get_global_attachment" get_property="mnpc" set_property="file" skip_if_null="false"/>

       <!-- tells the picture to listen for the 'main picture needs recolouring' property and sets its own 'should recolour' property from it -->
       <attachment class="get_global_attachment" get_property="mprc" set_property="srec" skip_if_null="false"/>

       <!-- the background, foreground and outline colours of the object we use for recolouring the default main picture if there is one, and it should be recoloured -->
       <attachment class="get_global_attachment" get_property="bkcl" set_property="rrep"/>
       <attachment class="get_global_attachment" get_property="fcol" set_property="grep"/>
       <attachment class="get_global_attachment" get_property="ocol" set_property="brep"/>
     </widget>

     <!-- Player Picture -->
     <widget class="picture" id="ppic" auto_size="all">
       <layout class="centre_in_parent_attachment" alignment="horizontal" offset="-85" priority="1"/>
       <layout class="stick_to_sides_attachment" alignment="bottom" inset="0" priority="1"/>
     </widget>
	</widget>



   <!-- Temporary Row Fillers - the picture and logo should possibly be put in their own table -->
   <widget class="label" col="0" row="1" />
   <widget class="label" col="0" row="2" />
   <widget class="label" col="0" row="3" />
   <widget class="label" col="0" row="4" />
   <widget class="label" col="0" row="5" />
   <widget class="label" col="0" row="6" />
   <widget class="label" col="0" row="7" />

   <!-- Nationality -->
   <widget class="nation_button" id="pfna" col="3" row="0" column_span="2" icon_alignment="right,can_scale" dspf="1"/>

   <!-- International Appearances -->
   <widget class="international_appearances_label" id="pfcg" col="3" row="1" column_span="2"/>

   <!-- Age -->
   <widget class="label" id="pfag" col="3" row="2" column_span="2"/>

   <!-- Date Of Birth -->
   <widget class="label" id="pdob" col="3" row="3" column_span="2"/>

   <!-- Height -->
   <widget class="height_label" id="phei" col="3" row="4" column_span="2"/>

   <!-- Weight -->
   <widget class="weight_label" id="pwei" col="3" row="5" column_span="2"/>

   <!-- Preferred Foot -->
   <widget class="label" id="pfot" col="3" row="6" column_span="2"/>

   <!-- Wage -->
   <widget class="label" id="wagw" col="3" row="7" column_span="2"/>

<!-- Contract Expiry -->
   <widget class="label" id="pexp" col="3" row="9" column_span="2"/>

   <!-- Value -->
   <widget class="label" id="pval" col="3" row="8" column_span="2"/>

   <!--Extra Info -->
   <widget class="text" id="pinf" spec="text" col="1" row="9" column_span="4" alignment="left,centre_y" style="semi_bold" colour="profile extra text"/>

 </widget>

 <!-- WITHOUT PORTRAIT -->
 <!-- this version of the table is used if the player portrait is hidden -->
 <widget class="table" id="pld2" mode="fill_rows, stripe_rows, printable" layout="-1,-1,-1" fixed_size_rows="true" row_spacing="0" row_height="20">

   <list id="headings">
     <record text="Personal Details" alignment="left, centre_y" column_span="3"/>
   </list>

   <list id="column_properties">
     <record indx="0" alignment="left,centre_y"/>
     <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" text="Nationality" col="0" row="0" column_span="2" />
   <widget class="nation_button" id="pfna" col="1" row="0" column_span="2" icon_alignment="right,can_scale" dspf="1"/>

   <!-- Caps + Goals -->
   <widget class="label" text="International" col="0" row="1" column_span="2" />
   <widget class="international_appearances_label" id="pfcg" col="1" row="1" column_span="2" />

   <!-- DOB -->
   <widget class="label" text="Born" col="0" row="2" column_span="2" />
   <widget class="label" id="pdob" col="1" row="2" column_span="2" />

   <!-- Age -->
   <widget class="label" text="Age" col="0" row="3" column_span="2" />
   <widget class="label" id="pfag" col="1" row="3" column_span="2" />

   <!-- Player Position -->
   <widget class="label" text="Position" col="0" row="4" column_span="2" />
   <widget class="label" id="pprs" col="1" row="4" column_span="2" />

   <!-- Foot -->
   <widget class="label" text="Preferred Foot" col="0" row="5" column_span="2" />
   <widget class="label" id="pfot" col="1" row="5" column_span="2" />

   <!-- Height -->
   <widget class="label" text="Height[COMMENT - player profile panel; height label]" col="0" row="6" column_span="2" />
   <widget class="height_label" id="phei" col="1" row="6" column_span="2" />

   <!-- Weight -->
   <widget class="label" text="Weight[COMMENT - player profile panel; weight label]" col="0" row="7" column_span="2" />
   <widget class="weight_label" id="pwei" col="1" row="7" column_span="2" />

   <!-- Value -->
   <widget class="label" text="Value" col="0" row="8" column_span="2" />
   <widget class="label" id="pval" col="1" row="8" column_span="2" />

   <!-- Wage Details -->
   <widget class="label" text="Basic Wage" col="0" row="9" column_span="2" />
   <widget class="label" id="wagw" col="1" row="9" column_span="2" />

   <!--Contract Expires -->
   <widget class="label" text="Contract Expires" col="0" row="10" column_span="2" />
   <widget class="label" id="pexp" col="1" row="10" column_span="2" />

   <!--Extra Info -->
   <widget class="text" spec="text" id="pinf" col="0" row="11" column_span="3" colour="profile extra text" alignment="right, centre_y"/>

 </widget>

</panel>

Cheers

Link to post
Share on other sites

OK, I've figured out that if a return the nation button back to the old position, below player picture it works, but it doesn't when it's in the 1st row. Maybe the row positioning problem? I find it strange beacuse I just copied the code from ***player without portrait*** code, and changed the column from 1 to 3.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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