Jump to content

[FM24]Footedness in player attributes panel


Jethias
 Share

Recommended Posts

Hi
I've just started skinning and trying to add the players footedness into the attributes table in the Overview profile similar to Zealand's skin.image.png.e4b316311c14f0e031620a96d171c51f.png

I'm editing player attributes panel which I think is the right place. I tried adding what I saw in other skins but it hasn't changed anything. If someone could let me know where I'm going wrong I'd appreciate it.
 

<!-- Additional attributes table -->
				<container class="client_object_viewer_xml_panel" id="attT">
					<layout class="vertical_arrange" vertical_alignment="top,extend" vertical_gap="1"/>

					<widget class="table" layout="-1, 80" mode="fill_rows, printable" row_height="22" row_spacing="0" auto_size="vertical">

						<record id="object_property" get_property="objt" set_property="objt" />

						<list id="column_table_properties">
							<record index="0" left="8" sort_disabled="true"/>
							<record index="1" right="8" sort_disabled="true"/>
						</list>

						<list id="row_properties">
							<record index="0" appearance="tables/standard/row/alternate/row"/>
						</list>

						<!-- Height-->
						<widget class="label" row="0" column="0">
							<record id="object_property" get_property="Phei" name="true"/>
						</widget>

						<widget class="editable_client_object_property_panel" id="Phei" row="0" column="1" style="semi_bold">
							<record id="object_property" get_property="Phei"/>
							<record id="widget_properties" alignment="right,centre_y" />
						</widget>

						<!-- Weight-->
						<widget class="label" row="1" column="0">
							<record id="object_property" get_property="Pwei" name="true"/>
						</widget>

						<widget class="editable_client_object_property_panel" id="Pwei" row="1" column="1" style="semi_bold">
							<record id="object_property" get_property="Pwei"/>
							<record id="widget_properties" alignment="right,centre_y" />
						</widget>

					</widget>

					<!-- Footedness -->
					<container class="plain_box" appearance="tables/standard/row/alternate/row">
						<layout class="vertical_arrange_autosize" vertical_offset="13" horizontal_inset="4" vertical_alignment="bottom"/>

						<widget class="table" mode="fill_rows" layout="-1,43" row_height="30" row_spacing="13" auto_size="vertical">

							<record id="object_property" get_property="objt" set_property="objt"/>

							<list id="column_table_properties">
								<record indx="0" left="8">
									<record id="widget_info" alignment="centre"/>
								</record>
							</list>

							<!-- Left Foot -->
							<container col="0" row="0">
								<layout class="vertical_arrange" vertical_alignment="middle" vertical_gap="0"/>

								<widget class="label" font="title" colour="accent" auto_size="vertical">
									<translation id="text" translation_id="230000" type="use" value="Left Foot"/>
								</widget>

								<widget class="footedness_label" format="[%string#1]" auto_size="vertical">
									<record id="object_property" get_property="PlfG"/>
								</widget>

							</container>

							<widget class="value_based_picture" file="icons/custom/footed/left" col="1" row="0">
								<list id="value_list">
									<record min_value="1" max_value="4" red_replacement="bg range1"/>
									<record min_value="5" max_value="8" red_replacement="bg range4"/>
									<record min_value="9" max_value="11" red_replacement="bg range8"/>
									<record min_value="12" max_value="14" red_replacement="bg range12"/>
									<record min_value="15" max_value="17" red_replacement="bg range16"/>
									<record min_value="18" max_value="20" red_replacement="bg range20"/>
								</list>
								<record id="object_property" get_property="PlfG"/>
							</widget>

							<!-- Right Foot -->
							<container col="0" row="1">
								<layout class="vertical_arrange" vertical_alignment="middle" vertical_gap="0"/>

								<widget class="label" font="title" colour="accent" auto_size="vertical">
									<translation id="text" translation_id="230001" type="use" value="Right Foot" />
								</widget>

								<widget class="footedness_label" format="[%string#1]" auto_size="vertical">
									<record id="object_property" get_property="PrfG"/>
								</widget>

							</container>

							<widget class="value_based_picture" file="icons/custom/footed/right" col="1" row="1">
								<list id="value_list">
									<record min_value="1" max_value="4" red_replacement="bg range1"/>
									<record min_value="5" max_value="8" red_replacement="bg range4"/>
									<record min_value="9" max_value="11" red_replacement="bg range8"/>
									<record min_value="12" max_value="14" red_replacement="bg range12"/>
									<record min_value="15" max_value="17" red_replacement="bg range16"/>
									<record min_value="18" max_value="20" red_replacement="bg range20"/>
								</list>
								<record id="object_property" get_property="PrfG"/>
							</widget>

						</widget>

					</container>

				</container>

 

Link to post
Share on other sites

  • Jethias changed the title to [FM24]Footedness in player attributes panel
1 hour ago, Jethias said:

Hi
I've just started skinning and trying to add the players footedness into the attributes table in the Overview profile similar to Zealand's skin.image.png.e4b316311c14f0e031620a96d171c51f.png

I'm editing player attributes panel which I think is the right place. I tried adding what I saw in other skins but it hasn't changed anything. If someone could let me know where I'm going wrong I'd appreciate it.
 

<!-- Additional attributes table -->
				<container class="client_object_viewer_xml_panel" id="attT">
					<layout class="vertical_arrange" vertical_alignment="top,extend" vertical_gap="1"/>

					<widget class="table" layout="-1, 80" mode="fill_rows, printable" row_height="22" row_spacing="0" auto_size="vertical">

						<record id="object_property" get_property="objt" set_property="objt" />

						<list id="column_table_properties">
							<record index="0" left="8" sort_disabled="true"/>
							<record index="1" right="8" sort_disabled="true"/>
						</list>

						<list id="row_properties">
							<record index="0" appearance="tables/standard/row/alternate/row"/>
						</list>

						<!-- Height-->
						<widget class="label" row="0" column="0">
							<record id="object_property" get_property="Phei" name="true"/>
						</widget>

						<widget class="editable_client_object_property_panel" id="Phei" row="0" column="1" style="semi_bold">
							<record id="object_property" get_property="Phei"/>
							<record id="widget_properties" alignment="right,centre_y" />
						</widget>

						<!-- Weight-->
						<widget class="label" row="1" column="0">
							<record id="object_property" get_property="Pwei" name="true"/>
						</widget>

						<widget class="editable_client_object_property_panel" id="Pwei" row="1" column="1" style="semi_bold">
							<record id="object_property" get_property="Pwei"/>
							<record id="widget_properties" alignment="right,centre_y" />
						</widget>

					</widget>

					<!-- Footedness -->
					<container class="plain_box" appearance="tables/standard/row/alternate/row">
						<layout class="vertical_arrange_autosize" vertical_offset="13" horizontal_inset="4" vertical_alignment="bottom"/>

						<widget class="table" mode="fill_rows" layout="-1,43" row_height="30" row_spacing="13" auto_size="vertical">

							<record id="object_property" get_property="objt" set_property="objt"/>

							<list id="column_table_properties">
								<record indx="0" left="8">
									<record id="widget_info" alignment="centre"/>
								</record>
							</list>

							<!-- Left Foot -->
							<container col="0" row="0">
								<layout class="vertical_arrange" vertical_alignment="middle" vertical_gap="0"/>

								<widget class="label" font="title" colour="accent" auto_size="vertical">
									<translation id="text" translation_id="230000" type="use" value="Left Foot"/>
								</widget>

								<widget class="footedness_label" format="[%string#1]" auto_size="vertical">
									<record id="object_property" get_property="PlfG"/>
								</widget>

							</container>

							<widget class="value_based_picture" file="icons/custom/footed/left" col="1" row="0">
								<list id="value_list">
									<record min_value="1" max_value="4" red_replacement="bg range1"/>
									<record min_value="5" max_value="8" red_replacement="bg range4"/>
									<record min_value="9" max_value="11" red_replacement="bg range8"/>
									<record min_value="12" max_value="14" red_replacement="bg range12"/>
									<record min_value="15" max_value="17" red_replacement="bg range16"/>
									<record min_value="18" max_value="20" red_replacement="bg range20"/>
								</list>
								<record id="object_property" get_property="PlfG"/>
							</widget>

							<!-- Right Foot -->
							<container col="0" row="1">
								<layout class="vertical_arrange" vertical_alignment="middle" vertical_gap="0"/>

								<widget class="label" font="title" colour="accent" auto_size="vertical">
									<translation id="text" translation_id="230001" type="use" value="Right Foot" />
								</widget>

								<widget class="footedness_label" format="[%string#1]" auto_size="vertical">
									<record id="object_property" get_property="PrfG"/>
								</widget>

							</container>

							<widget class="value_based_picture" file="icons/custom/footed/right" col="1" row="1">
								<list id="value_list">
									<record min_value="1" max_value="4" red_replacement="bg range1"/>
									<record min_value="5" max_value="8" red_replacement="bg range4"/>
									<record min_value="9" max_value="11" red_replacement="bg range8"/>
									<record min_value="12" max_value="14" red_replacement="bg range12"/>
									<record min_value="15" max_value="17" red_replacement="bg range16"/>
									<record min_value="18" max_value="20" red_replacement="bg range20"/>
								</list>
								<record id="object_property" get_property="PrfG"/>
							</widget>

						</widget>

					</container>

				</container>

 

Remember to untick "used caching for faster loading" in preferences

clear the cache and reload the skin

oh and also try and change

<widget class="table" layout="-1, 80" mode="fill_rows, printable" row_height="22" row_spacing="0" auto_size="vertical">

to

<widget class="table" layout="-1, 80, 50" mode="fill_rows, printable" row_height="22" row_spacing="0" auto_size="vertical">

Link to post
Share on other sites

Thanks! I got it working and used your update :) My problem was I had messed up the directory.... I accidentally had a second panels folder in my panels folder

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
 Share

  • Recently Browsing   0 members

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