Jump to content

Size Stadium image


Recommended Posts

1 ora fa, wkdsoul ha scritto:

Club Overview Panel.  look for 'stadium' in the code, the vertical container will be the height of those 3 panels on the right.


Thanks. How can I set 400x240px size ?
 

<?xml version='1.0' encoding='utf-8'?>
<panel>
	<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true" />
	
	<!--stadium picture-->
	<widget class="stadium_picture" id="STAp" image_alignment="centre_x,centre_y" scale_picture="true" keep_aspect_ratio="true">
		<record id="object_property">
			<integer id="get_property" value="objt" />
			<integer id="set_property" value="objt" />
		</record>
	</widget>
			
	<container class="vertical_adaptive_container" inset="0" offset="0" gap="1" mode="distribute_equally">
	
		<container default_height="-1"/>
		
		<container class="horizontal_adaptive_container" default_height="40" inset="0" offset="0" gap="1" mode="distribute_equally">
		
			<container default_width="80"/>
		
			<container class="main_subtle_box" appearance="boxes/custom/stadium/paper3" default_width="-1" inset="0" offset="0" gap="0" red_replacement="dark_box_background">
				<layout class="arrange_horizontal_attachment" layout="-1" offset="0" gap="0"/>
				<layout class="stick_to_sides_attachment" alignment="vertical" inset="0" apply_to_children="true"/>

				<!--name-->
				<widget class="client_object_label" spec="text,bold" id="namV" font="title" colour="white" size="15" alignment="centre_x,centre_y,can_scale">
					<record id="object_property">
						<integer id="get_property" value="objt" />
					</record>
				</widget>
			</container> 
			
			<container default_width="80"/>
		</container>
		
		<container default_height="15"/>
	</container>
</panel>

 

Link to post
Share on other sites

<!--stadium picture-->

<widget class="stadium_picture" id="STAp" image_alignment="centre_x,centre_y" height="240" width="400"> 

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

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

</record>

</widget>

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...