Jump to content

Help with player attribute panel


zero13

Recommended Posts

Hi,

I working to make some modification to the player attribute panel based on Ares skin, but there seems some issues that the attribute analyzer cannot be located at the centre, and the wage and contract expiry date were both misaligned with others above. Would anyone please help check what's wrong to my modification? Thanks.

(Sorry I don't know how to display the photo here and thus ph link is attached)

https://www.dropbox.com/s/n1b273kw3mxubsi/Player%20Attribute.jpg?dl=0

The code is as follows:

<panel>

<layout class="arrange_horizontal_attachment" alignment="top" offset="0" gap="0" />

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

<!-- WITH PORTRAIT -->

<!-- this version of the table is used if the player portrait is visible -->

<container class="vertical_adaptive_container" offset="0" inset="0" gap="0" mode="distribute_equally">

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

<list id="column_properties">

<record indx="0" height="10" />

<record indx="1" alignment="left,centre_y" auto_size="vertical" />

<record indx="2" alignment="right,centre_y" auto_size="vertical" />

<record indx="3" alignment="left,centre_y" auto_size="vertical" />

<record indx="4" alignment="left,centre_y" auto_size="vertical" />

</list>

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

<list id="column_display_properties">

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

<record indx="1" left="3" top="1" right="2" bottom="1" sort_disabled="true" />

<record indx="2" left="3" top="1" bottom="1" sort_disabled="true" />

<record indx="3" rght="3" top="1" bottom="1" sort_disabled="true" />

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

</list>

<!-- custom row graphics -->

<list id="row_properties">

<record indx="8">

<flags id="appearance" value="tables/standard/alternate/row" />

</record>

<record indx="9">

<flags id="appearance" value="tables/standard/alternate/row" />

</record>

<record indx="12">

<flags id="appearance" value="tables/standard/alternate/row" />

</record>

<record indx="13">

<flags id="appearance" value="tables/standard/alternate/row" />

</record>

</list>

<container class="horizontal_adaptive_container" offset="0" inset="0" gap="0" mode="distribute_equally">

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

<widget class="client_object_profile_picture" id="prop" scale_picture="yes" keep_aspect_ratio="true" image_alignment="centre">

<attachment class="test_setting_attachment" get_setting="show_portraits" default_value="true" set_property="hidn">

<list id="value">

<boolean value="false" />

</list>

</attachment>

<layout class="stick_to_sides_attachment" alignment="left" inset="0" />

<record id="object_property">

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

<integer id="set_property" value="objt" />

</record>

</widget>

<!-- Attribute Analyser Container -->

<container id="over">

<layout class="arrange_vertical_attachment" layout="-1" offset="-1" gap="-1" />

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

<!-- Attribute Analyser -->

<container id="ppaa">

<layout class="fit_children_attachment" alignment="horizontal" offset="0" gap="0" />

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

<container class="subsection_box" id="ovrv" appearance="">

<string id="title" value="" />

<!-- there are two panels here: one for goalkeepers, and one for outfield players

only one panel is visible at any time -->

<layout class="fit_children_attachment" alignment="horizontal,fill" offset="0" gap="0" />

<layout class="stick_to_sides_attachment" alignment="top, fill" inset="0" />

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

<!-- outfield player analyser panel : visible by default -->

<widget class="person_attributes_analyser_panel" id="ofap" file="player attribute analyser outfield" hidden="false" auto_size="vertical" />

<!-- goalkeeper player analyser panel : hidden by default -->

<widget class="person_attributes_analyser_panel" id="gkap" file="player attribute analyser goalkeeper" hidden="true" auto_size="vertical" />

</container>

<!-- subsection box -->

</container>

</container>

<!-- Attribute Analyser Container -->

</container>

<widget class="table" id="pld1" mode="printable" layout="-1,-1,-1,0" fixed_size_rows="false" auto_size_rows="true" row_spacing="0" >

<!-- Temporary Row Fillers - the picture and logo should possibly be put in their own table -->

<widget class="label" col="0" row="0" />

<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="editable_client_object_property_panel" id="pfna" col="0" row="1" column_span="1">

<record id="object_property">

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

</record>

<record id="widget_properties" icon_alignment="left" display_format="1" font="fonts/letterpressed" size="10" />

</widget>

<!-- International Appearances -->

<widget class="international_appearances_label" id="pfcg" col="0" row="2" column_span="2" size="8" Ualt="false"/>

<!-- Age -->

<widget class="label" id="pfag" col="2" row="1" column_span="2" font="fonts/letterpressed" size="10" />

<!-- Date Of Birth -->

<widget class="editable_client_object_property_panel" id="pdob" col="2" row="2" column_span="2">

<record id="object_property">

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

</record>

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

</widget>

<!-- Height -->

<widget class="height_label" id="phei" col="0" row="3" column_span="1" font="fonts/letterpressed" size="10" />

<!-- Weight -->

<widget class="weight_label" id="pwei" col="0" row="4" column_span="1" size="8" />

<!-- Preferred Foot -->

<widget class="label" id="pfot" col="2" row="3" column_span="2" font="fonts/letterpressed" size="10" />

<!-- Preferred Foot Label -->

<widget class="label" id="text" col="2" row="4" column_span="2" size="8">

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

</widget>

<!-- Wage -->

<widget class="editable_client_object_property_panel" id="wagw" col="0" row="5" column_span="1">

<record id="widget_properties" font="fonts/letterpressed" size="10" />

</widget>

<!-- Contract Expiry -->

<widget class="editable_client_object_property_panel" id="pexp" col="0" row="6" column_span="1">

<record id="widget_properties" size="8" />

</widget>

<!-- Value -->

<widget class="value_label" id="pval" col="2" row="5" column_span="2" font="fonts/letterpressed" size="10" />

<!-- Value Label -->

<widget class="label" id="text" col="2" row="6" column_span="2" size="8">

<translation id="text" translation_id="292633" type="use" value="Estimated Value[COMMENT: player profile; value label]" />

</widget>

<!--Extra Info -->

<widget class="player_extra_details_text" id="pinf" spec="text" col="0" row="7" column_span="4" alignment="centre" style="semi_bold" colour="profile extra text" auto_size="vertical"/>

</widget>

Link to post
Share on other sites

For the analyzer play around with these lines:

<layout class="stick_to_sides_attachment" alignment="top, fill" inset="0" />

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

Try changing the top to middle or centre.

For the wage and contract expiry try changing their column span to 2 to match the other items, if that doesn't work try adding an alignment="left" bit to their lines.

Link to post
Share on other sites

For the analyzer looks like there is various bits of interlinked code, the easiest way to shift it is to just increase the inset on the top,fill line so it looks something like:

<layout class="stick_to_sides_attachment" alignment="top, fill" inset="50" />

Then play around with the actual value until you are happy.

For the contract expiry and wage if you add an alignment="centre_y,left" bit to the widget_properties line for each item that should left align them like the rest of the items.

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