Jump to content

Problem with alignment, element misplaced


hyb
 Share

Recommended Posts

Hello people! I am editing the FM Enhanced skin to add some things

I'm having trouble aligning the elements in the green box, I've spent a few hours testing different values and properties but I can't get it right.

Spoiler

Screenshot_1.thumb.png.993d30d1781aedb4d7b5e3161a1f721a.png

 

This is the file that im editing

FME_H.xml

Spoiler
<panel>
	<layout class="stick_to_sides_attachment" alignment="all" apply_to_children="true"/>
	<container>
	<attachment class="horizontal_arrange" horizontal_layout="140,-1" horizontal_gap="10"/>
	<widget class="picture" scale_picture="true" keep_aspect_ratio="true" image_alignment="centre">
		<layout class="stick_to_sides_attachment" alignment="vertical" inset="10"/>
		<record id="object_property" get_property="mnpc" set_property="file"/>
	</widget>
		<container>
			<attachment class="horizontal_arrange" horizontal_layout="250,-1" alignment="centre_y"/>
			<container>
				<layout class="stick_to_sides_attachment" alignment="horizontal" apply_to_children="true"/>
				<layout class="arrange_vertical_attachment" alignment="middle" gap="0"/>
				<record id="default_properties" size="9" colour="text"/>
				<widget class="label" id="Csnm" height="30" font="value" size="17" wants_mouse_events="false">
				<record id="object_property" get_property="Csnm"/>
				</widget>
				<widget height="20" class="nation_button" icon_alignment="right,centre_y">
				<record id="object_property" get_property="Dnat"/>
				</widget>
				<widget height="18" class="comp_button" auto_size="horizontal" icon_enabled="false" comp_display_type="1" alignment="left,bottom">
				<record id="object_property" get_property="Cdiv" />
				</widget>
			</container>
			<container class="horizontal_adaptive_container" alignment="left" gap="20" offset="100" inset="0">
				<container default_width="70" priority="0">
					<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
					<widget class="division_position_button" size="13" font="lcsb" colour="text" alignment="middle,bottom">
						<record id="object_property" get_property="Cmai"/>
					</widget>
					<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
						<translation id="text" translation_id="227884" type="use" value="Position" />
					</widget>
				</container>
				<container default_width="150" priority="1">
					<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
					<widget class="media_expectation_text" size="13" font="lcsb" colour="text" alignment="middle,bottom">
					<record id="object_property" get_property="CmeD"/>
					</widget>
					<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
					<translation id="text" translation_id="243509" type="use" value="Media Prediction" />
					</widget>
					</container>
					<container default_width="120" priority="2">
					<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
					<widget class="label" size="13" font="lcsb" colour="text" alignment="middle,bottom">
					<record id="object_property" get_property="Cyfn" />
					</widget>
					<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
					<translation id="text" translation_id="257214" type="use" value="Year Founded" />
					</widget>
					</container>
					<container default_width="146" priority="3">
					<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
					<widget class="professional_status_label" size="13" font="lcsb" colour="text" alignment="middle,bottom">
					<record id="object_property" get_property="Cprs" />
					</widget>
						<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
						<translation id="text" translation_id="319581" type="use" value="Professional Status" />
						</widget>
						</container>
						<container default_width="100" priority="4">
						<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
						<widget class="reputation_label" size="13" font="lcsb" colour="text" alignment="centre_x,bottom">
						<record id="object_property" get_property="Crsc"/>
						</widget>
						<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
						<translation id="text" translation_id="227963" type="use" value="Reputation" />
						</widget>
						</container>
						<container default_width="100" priority="5">
							<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
							<widget class="club_finances_description_text" size="13" font="lcsb" colour="text" alignment="middle,bottom" short_name="true">
							<record id="object_property" get_property="CfiD" />
							</widget>
							<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
							<translation id="text" translation_id="229821" type="use" value="Finances" />
							</widget>
						</container>
						<container default_width="168" priority="6">
							<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
							<widget class="comp_button" size="13" font="lcsb" colour="text" alignment="centre_x,bottom" icon_enabled="false">
							<record id="object_property" get_property="Ccon"/>
							</widget>
							<widget class="label" size="8" alignment="middle,top" font="title" colour="title">
							<translation id="text" translation_id="319579" type="use" value="Continental Competition" />
							</widget>
						</container>
						<container default_width="100" priority="7">
							<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="0"/>
							<widget class="label" id="TfcL" spec="text,bold" size="13" font="lcsb" colour="sidebar text" alignment="middle,top" auto_size="vertical">
							<record id="object_property">
							<integer id="get_property" value="TfcS" />
							<boolean id="name" value="true" />
							</record>
							</widget>
							<widget class="stars_range_strip" id="CtfSt" height="20" lrge="false" alignment="centre,bottom">
							<layout class="centre_in_parent_attachment" alignment="horizontal" />
							<record id="object_property">
							<integer id="get_property" value="Ctf*" />
							</record>
							</widget>
						</container>
						<container default_width="120" priority="8">
							<attachment class="vertical_arrange" vertical_layout="-4,-3" vertical_gap="-0"/>
							<widget class="label" id="TytL" spec="text,bold" size="13" font="lcsb" colour="sidebar text" alignment="centre_x,bottom" auto_size="vertical">
							<record id="object_property">
							<integer id="get_property" value="TytS" />
							<boolean id="name" value="true" />
							</record>
							</widget>
							<widget class="stars_range_strip" id="CfcSt" height="20" lrge="false" alignment="centre,top">
							<layout class="centre_in_parent_attachment" alignment="horizontal" />
							<record id="object_property">
							<integer id="get_property" value="Cfc*" />
							</record>
							</widget>
						</container>
			</container>
		</container>
	</container>
</panel>

 

 

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