Jump to content

Player profile spacing issue


papamogl

Recommended Posts

Hey guys

I found a skin I like and tried customising it a bit to my personal liking. One small problem I've encountered: below the player stats and picture there's a lot of unused space.

98616924.th.png

Is there a way this space could be used? Probably by making the players stats section and player picture section larger? How is that done in other skins?

Here's the code of the player profile personal detail.xml (most of the code is not by me but by the original skinner. I've just customized some tiny parts)

<!-- 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="right,centre_y"/>
     <record indx="1" alignment="left,centre_y" />
     <record indx="2" alignment="right,centre_y" />
     <record indx="3" alignment="left,centre_y" />
     <record indx="4" alignment="left,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="10">
       <flags id="appearance" value="table/custom/stripe/row"/>
     </record>
     <record indx="11">
       <flags id="appearance" value="table/custom/stripe/row"/>
     </record>
     <record indx="14">
       <flags id="appearance" value="table/custom/stripe/row" />
     </record>
     <record indx="15">
       <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="10">
     <layout class="arrange_horizontal_attachment" alignment="fill" offset="0" gap="0"/>
     <layout class="stick_to_sides_attachment" alignment="vertical" layout_children="true" inset="0" />

<!-- Club Logo --> <widget class="picture" id="pict" transparency="0.4" scale_picture="true" keep_aspect_ratio="true" height="150" width="150" image_alignment="centre">
<layout class="centre_in_parent_attachment" alignment="horizontal" offset="-200" 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" scale_picture="true" keep_aspect_ratio="true" height="150" width="150" image_alignment="left">
       <layout class="centre_in_parent_attachment" alignment="horizontal" offset="-80" priority="1"/>
       <layout class="stick_to_sides_attachment" alignment="bottom" inset="1" priority="1"/>
     </widget>


<!-- Attribute Analyser --> <container id="ppaa" file="player profile attribute analyser">  
<layout class="centre_in_parent_attachment" alignment="horizontal" offset="120" /> 
<layout class="stick_to_sides_attachment" alignment="bottom" inset="1" /> 
</container> 
</container> 
<!-- Attribute Analyser Container -->  


   <!-- 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="1" row="10" column_span="1" icon_alignment="left,can_scale" dspf="1" style="semi_bold"/>

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

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

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

   <!-- Height -->
   <widget class="height_label" id="phei" col="1" row="12" column_span="2" style="semi_bold"/>

   <!-- Weight -->
   <widget class="weight_label" id="pwei" col="1" row="13" column_span="2" size="7" />

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

   <!-- Preferred Foot Label -->
   <widget class="label" id="text" text="Preferred Foot" col="3" row="13" column_span="2" size="7" />

   <!-- Wage -->
   <widget class="label" id="wagw" col="1" row="14" column_span="2" style="semi_bold"/>

   <!-- Contract Expiry -->
   <widget class="label" id="pexp" col="1" row="15" column_span="2" size="7" />

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

   <!-- Value Label -->
   <widget class="label" id="text" text="Estimated Value[COMMENT: player profile; value label]" col="3" row="15" column_span="2" size="7" />

   <!--Extra Info -->
   <widget class="text" id="pinf" spec="text" col="0" row="16" column_span="4" alignment="centre_x,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>

Thanks in advance for any help

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