EnigMattic1 Posted December 1, 2021 Share Posted December 1, 2021 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 More sharing options...
keysi Posted December 1, 2021 Share Posted December 1, 2021 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. Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 1, 2021 Author Share Posted December 1, 2021 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 More sharing options...
keysi Posted December 1, 2021 Share Posted December 1, 2021 1 minute ago, EnigMattic1 said: Does it have to be any particular size? I have it 387x559 but it will adapt to the width/height of the pitch within your skin. Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 1, 2021 Author Share Posted December 1, 2021 3 hours ago, keysi said: I have it 387x559 but it will adapt to the width/height of the pitch within your skin. Does it have to be a pitch image? Or just a faded/gradient image? Link to post Share on other sites More sharing options...
keysi Posted December 1, 2021 Share Posted December 1, 2021 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. Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 1, 2021 Author Share Posted December 1, 2021 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. 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 More sharing options...
keysi Posted December 1, 2021 Share Posted December 1, 2021 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. 2 Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 2, 2021 Author Share Posted December 2, 2021 Idiot proof steps. Thanks mate. Appreciate it. Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 2, 2021 Author Share Posted December 2, 2021 (edited) 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. 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. Edited December 2, 2021 by EnigMattic1 Link to post Share on other sites More sharing options...
keysi Posted December 2, 2021 Share Posted December 2, 2021 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. that your custom picture is not enough wide to cover the whole pitch I would say You probably mean something like this: 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. 1 Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 2, 2021 Author Share Posted December 2, 2021 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: 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. 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 More sharing options...
keysi Posted December 2, 2021 Share Posted December 2, 2021 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. <?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> 1 Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 2, 2021 Author Share Posted December 2, 2021 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. <?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 More sharing options...
lembergman Posted December 2, 2021 Share Posted December 2, 2021 but how to disable lines and effects here? I figured out how to do it on the main ... but how here. here are a couple more pitch options team container information overview panel club.xmlpitch_tactic2.xml Спойлер Спойлер Link to post Share on other sites More sharing options...
EnigMattic1 Posted December 8, 2021 Author Share Posted December 8, 2021 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. <?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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now