Jump to content

Is it possible?


EnigMattic1
 Share

Recommended Posts

To have some sort of fade/gradient on the tactics pitch? 

For example, have the pitch start as a faded primary colour where the keeper is and fade to a black/transparent as it gets to the striker? 

I have seen similar on the sidebar in various skins and I would assume it would have something to do with "paper", but I'm just curious as to whether or not it is possible. 

Link to post
Share on other sites

22 minutes ago, keysi said:

create the image/graphic you want and save it as pitch_tactic.png and place it to the graphics folder within your skin. And link it to this file in the pitch with tactics container.xml.

Does it have to be any particular size? 

Link to post
Share on other sites

1 hour ago, EnigMattic1 said:

Does it have to be a pitch image? Or just a faded/gradient image? 

It can be whatever you want. The pitch lines, goals, grass etc. are not affected by this image but in the pitch with tactics container.xml.

obrazek.png.07df4c3efe01d8c9fffcb5f8603a0c43.png

Link to post
Share on other sites

10 minutes ago, keysi said:

It can be whatever you want. The pitch lines, goals, grass etc. are not affected by this image but in the pitch with tactics container.xml.

obrazek.png.07df4c3efe01d8c9fffcb5f8603a0c43.png

That's exactly what I'm trying to do (but flipped). If I had a similar image that was saved as "paper", could I edit it and save it as "pitch_tactic.png"? And what folder do I need to save the image in? 

Link to post
Share on other sites

I like to have it sorted and named clearly to know what is where.

So, my example:

I opened skin folder/graphics and I created the tactics pitch folder. And I put the pitch_tactic.png file here with the pitch_tactic config.xml.

pitch_tactic.xml

The second step:

go to the skin folder/panels/tactics and open the pitch with tactics container.xml. There is a line 22 with <string id="pitch_base_appearance" value="" />.

You have to insert the right path to the graphics file here. This is from my example.

<string id="pitch_base_appearance" value="tactics pitch/pitch_tactic" />

And save the file and it will be here. If you don't want to have the ui_circles in the pitch as the background of your graphic file, just change <string id="pitch_draw_grass" value="true" /> in the line 21 to <string id="pitch_draw_grass" value="false" />.

That's why I have this.

1176502675_Czech-MilanFM224-4-2.png.2bf1e18ff1d3371ee1af6453a9dd37b8.png

Link to post
Share on other sites

11 hours ago, keysi said:

I like to have it sorted and named clearly to know what is where.

So, my example:

I opened skin folder/graphics and I created the tactics pitch folder. And I put the pitch_tactic.png file here with the pitch_tactic config.xml.

pitch_tactic.xml 722 B · 0 downloads

The second step:

go to the skin folder/panels/tactics and open the pitch with tactics container.xml. There is a line 22 with <string id="pitch_base_appearance" value="" />.

You have to insert the right path to the graphics file here. This is from my example.

<string id="pitch_base_appearance" value="tactics pitch/pitch_tactic" />

And save the file and it will be here. If you don't want to have the ui_circles in the pitch as the background of your graphic file, just change <string id="pitch_draw_grass" value="true" /> in the line 21 to <string id="pitch_draw_grass" value="false" />.

That's why I have this.

1176502675_Czech-MilanFM224-4-2.png.2bf1e18ff1d3371ee1af6453a9dd37b8.png

Sorry mate, one final question. Will the image automatically have the coloured portion of the graphic as the respective clubs primary colour or do I have to add some code for that?

 

Edit**

Yeah, I think I went wrong somewhere.

1744000767_tacticspitch.png.b559b8a6bd7d4f43b11a343df156c0bb.png

Edited by EnigMattic1
Link to post
Share on other sites

48 minutes ago, EnigMattic1 said:

Sorry mate, one final question. Will the image automatically have the coloured portion of the graphic as the respective clubs primary colour or do I have to add some code for that?

 

Edit**

Yeah, I think I went wrong somewhere.

1744000767_tacticspitch.png.b559b8a6bd7d4f43b11a343df156c0bb.png

that your custom picture is not enough wide to cover the whole pitch I would say :)

You probably mean something like this:

spacer.png

You need to insert this to the pitch_tactic.xml

<colour id="red_replacement" name="primary"/>

I quickly made this .png image with the red gradient. and it looks like in that gif.

pitch_tactic.png.ee4439fd9c5c8da86e2f61b6f3f91a3f.png

Link to post
Share on other sites

3 minutes ago, keysi said:

that your custom picture is not enough wide to cover the whole pitch I would say :)

You probably mean something like this:

spacer.png

You need to insert this to the pitch_tactic.xml

<colour id="red_replacement" name="primary"/>

I quickly made this .png image with the red gradient. and it looks like in that gif.

pitch_tactic.png.ee4439fd9c5c8da86e2f61b6f3f91a3f.png

That's exactly what I was trying to achieve. At what point in the xml do I need to put the code for the colour? Is it after the pitch appearance?

Link to post
Share on other sites

19 minutes ago, EnigMattic1 said:

That's exactly what I was trying to achieve. At what point in the xml do I need to put the code for the colour? Is it after the pitch appearance?

no, that's not in the pitch with tactics.xml but in the pitch tactic.xml in the same folder where you have the .png file.

obrazek.png.9e76447611722127fa08a0cc480fe1c9.png

<?xml version="1.0" encoding="UTF-8"?>
<!-- image properties -->
<properties>

	<!-- image borders -->
	<!-- these determine how many pixels any content is inset from each side of the image -->
	<!-- (for example, in the case of a button, the content would be the text label) -->
	<record id="image_borders" left="5" right="5" top="1" bottom="1"/>

	<!-- image slices determine the points at which the image will be sliced to enable scaling -->
	<!-- the image will only slice in the directions slicing values are provided for-->
	<record id="image_slices" left="10" right="10" top="10" bottom="10"/>
  
  	<colour id="red_replacement" name="primary"/>

</properties>

 

Link to post
Share on other sites

18 minutes ago, keysi said:

no, that's not in the pitch with tactics.xml but in the pitch tactic.xml in the same folder where you have the .png file.

obrazek.png.9e76447611722127fa08a0cc480fe1c9.png

<?xml version="1.0" encoding="UTF-8"?>
<!-- image properties -->
<properties>

	<!-- image borders -->
	<!-- these determine how many pixels any content is inset from each side of the image -->
	<!-- (for example, in the case of a button, the content would be the text label) -->
	<record id="image_borders" left="5" right="5" top="1" bottom="1"/>

	<!-- image slices determine the points at which the image will be sliced to enable scaling -->
	<!-- the image will only slice in the directions slicing values are provided for-->
	<record id="image_slices" left="10" right="10" top="10" bottom="10"/>
  
  	<colour id="red_replacement" name="primary"/>

</properties>

 

Brilliant. Thanks. 

Link to post
Share on other sites

On 02/12/2021 at 11:01, keysi said:

no, that's not in the pitch with tactics.xml but in the pitch tactic.xml in the same folder where you have the .png file.

obrazek.png.9e76447611722127fa08a0cc480fe1c9.png

<?xml version="1.0" encoding="UTF-8"?>
<!-- image properties -->
<properties>

	<!-- image borders -->
	<!-- these determine how many pixels any content is inset from each side of the image -->
	<!-- (for example, in the case of a button, the content would be the text label) -->
	<record id="image_borders" left="5" right="5" top="1" bottom="1"/>

	<!-- image slices determine the points at which the image will be sliced to enable scaling -->
	<!-- the image will only slice in the directions slicing values are provided for-->
	<record id="image_slices" left="10" right="10" top="10" bottom="10"/>
  
  	<colour id="red_replacement" name="primary"/>

</properties>

 

Sorry mate, another quick question. How would I go about adding the team logo to the same pitch?

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