Jump to content

Fixtures & Results/Honours panels


EnigMattic1
 Share

Recommended Posts

I have been tinkering with the fixtures and results on the club overview screen. As you can see, I have changed the appearance of the logo, but I would like to know A) how to rotate them and B) how do I get the results back as I lost them after I changed the appearance of the logo. I have looked at the code for the fixtures, but I am not entirely sure what I am looking for.

FixRes.png.8143c4a482766fc3062ffcfdcbc0242a.png

Also, I would like to have the same effect for the 'Honours' panel. But, I would like to know if it is possible to have the trophy in front of the competition logo, or whether I can only have one or the other?

Link to post
Share on other sites

Ok, at the moment, I am here with the trophies. Is it possible to have the picture of the trophy in front of the competition logo, much like how you can put a kit behind a player portrait?

Trophies.png.ff798c732ff097fe4b8291a7d5500af8.png

I have tried to get the team logos in the fixture/result boxes rotated, but I end up losing them each time I try something.

Link to post
Share on other sites

For the results/logo, this is the code I use.  I believe it was written by @Wozzie, so if this needs to be taken down, let me know and I'll delete this message.

<!-- CONTAINER HOLDING LOGO AND OVERLAY TO ROUND LOGO -->
	<container >
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
		
		<!-- BACKGROUND LOGO -->
		<!-- DIFFERENT CLASS CONTAINER USED TO BE ABLE TO ROTATE THE LOGO -->
		<container class="transformation_container">
			<layout class="stick_to_sides_attachment" alignment="all" inset="0" priority="10"/>
			<layout class="centre_in_parent_attachment" alignment="horizontal" offset="0" priority="10"/>

			<!-- APPLIES ROTATION FOR ANYTHING IN THE CONTAINER -->
			<list id="transformations">
				<record type="rotation" value="12"/>
			</list>

			<!-- TEAM LOGO -->
			<widget class="fixture_opponent_picture" id="oppi" scale_picture="false" transparency="0.3">
				<layout class="centre_in_parent_attachment" alignment="horizontal" offset="0" priority="3"/>
				<layout class="stick_to_sides_attachment" alignment="all" inset="0" priority="3"/>
				<boolean id="keep_aspect_ratio" value="true" />
				<flags id="image_alignment" value="centre" />
				<record id="object_property">
					<integer id="get_property" value="fopP" />
					<boolean id="dont_set_object" value="true"/>
				</record>
			</widget>

			<!-- ADDS SLIGHT OVERLAY TO LOGO -->
			<widget class="picture" file="photos/dynamic/press conference/lighting" scale_picture="false" keep_aspect_ratio="false" height="160" width="300" image_alignment="top" transparency="0.5">
				<layout class="centre_in_parent_attachment" alignment="horizontal" offset="50" />
				<layout class="stick_to_sides_attachment" alignment="bottom" inset="1"/>
			</widget>
		</container>
		
	</container>

	<!-- INFO ON TOP -->
	<container class="plain_box" appearance="boxes/custom/tlo50/paper" red_replacement="bg" priority="1" layout="-1" >
		<layout class="arrange_vertical_attachment" layout="-3,-2,-3,-2" offset="12" gap="0"/>
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

		<!-- TEAM NAME -->
		<widget class="fixture_opponent_team_button" id="fopt" icon_enabled="false" alignment="centre_x, centre_y, can_scale"  colour="fg" size="10" style="bold">
			<record id="object_property">
				<integer id="get_property" value="fopt" />
			</record>
		</widget>

		<!-- HOME / AWAY / NEUTRAL -->
		<widget class="fixture_venue_label" id="venu" alignment="centre_x, centre_y, can_scale" format="1" size="8">
			<record id="object_property">
				<integer id="get_property" value="FxVn" />
			</record>
		</widget>

		<!-- RESULT -->
		<widget class="fixture_full_result_text" id="FxFR" spec="text" colour="fg"  alignment="centre_x, centre_y, can_scale" size="10" style="bold">
			<record id="object_property">
				<integer id="get_property" value="FxFR" />
			</record>
		</widget>

		<!-- COMPETITION -->
		<widget class="fixture_name_text" id="FxNm" alignment="centre_x, centre_y, can_scale" size="8">
			<record id="object_property" get_property="FxNm" />
		</widget>
	</container>

 

Link to post
Share on other sites

41 minutes ago, GIMN said:

For the results/logo, this is the code I use.  I believe it was written by @Wozzie, so if this needs to be taken down, let me know and I'll delete this message.

<!-- CONTAINER HOLDING LOGO AND OVERLAY TO ROUND LOGO -->
	<container >
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>
		
		<!-- BACKGROUND LOGO -->
		<!-- DIFFERENT CLASS CONTAINER USED TO BE ABLE TO ROTATE THE LOGO -->
		<container class="transformation_container">
			<layout class="stick_to_sides_attachment" alignment="all" inset="0" priority="10"/>
			<layout class="centre_in_parent_attachment" alignment="horizontal" offset="0" priority="10"/>

			<!-- APPLIES ROTATION FOR ANYTHING IN THE CONTAINER -->
			<list id="transformations">
				<record type="rotation" value="12"/>
			</list>

			<!-- TEAM LOGO -->
			<widget class="fixture_opponent_picture" id="oppi" scale_picture="false" transparency="0.3">
				<layout class="centre_in_parent_attachment" alignment="horizontal" offset="0" priority="3"/>
				<layout class="stick_to_sides_attachment" alignment="all" inset="0" priority="3"/>
				<boolean id="keep_aspect_ratio" value="true" />
				<flags id="image_alignment" value="centre" />
				<record id="object_property">
					<integer id="get_property" value="fopP" />
					<boolean id="dont_set_object" value="true"/>
				</record>
			</widget>

			<!-- ADDS SLIGHT OVERLAY TO LOGO -->
			<widget class="picture" file="photos/dynamic/press conference/lighting" scale_picture="false" keep_aspect_ratio="false" height="160" width="300" image_alignment="top" transparency="0.5">
				<layout class="centre_in_parent_attachment" alignment="horizontal" offset="50" />
				<layout class="stick_to_sides_attachment" alignment="bottom" inset="1"/>
			</widget>
		</container>
		
	</container>

	<!-- INFO ON TOP -->
	<container class="plain_box" appearance="boxes/custom/tlo50/paper" red_replacement="bg" priority="1" layout="-1" >
		<layout class="arrange_vertical_attachment" layout="-3,-2,-3,-2" offset="12" gap="0"/>
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true"/>

		<!-- TEAM NAME -->
		<widget class="fixture_opponent_team_button" id="fopt" icon_enabled="false" alignment="centre_x, centre_y, can_scale"  colour="fg" size="10" style="bold">
			<record id="object_property">
				<integer id="get_property" value="fopt" />
			</record>
		</widget>

		<!-- HOME / AWAY / NEUTRAL -->
		<widget class="fixture_venue_label" id="venu" alignment="centre_x, centre_y, can_scale" format="1" size="8">
			<record id="object_property">
				<integer id="get_property" value="FxVn" />
			</record>
		</widget>

		<!-- RESULT -->
		<widget class="fixture_full_result_text" id="FxFR" spec="text" colour="fg"  alignment="centre_x, centre_y, can_scale" size="10" style="bold">
			<record id="object_property">
				<integer id="get_property" value="FxFR" />
			</record>
		</widget>

		<!-- COMPETITION -->
		<widget class="fixture_name_text" id="FxNm" alignment="centre_x, centre_y, can_scale" size="8">
			<record id="object_property" get_property="FxNm" />
		</widget>
	</container>

 

And, I'm assuming, if I wanted to do the same for the fixtures, I would just leave out the 'result' bit?

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