spwells Posted January 23, 2023 Share Posted January 23, 2023 Hi, I'd like to tweak the in match Match Stats panel as per the following pictures - The beginner question. How can I edit the text to add the '-' bits? The intermediate question. How do I add in the venue information? The advanced question. How can I make it work out the % attendance? I need it to look up the venue capacity, and then perform the sum, but I don't know how to do any of that. I know this is a minor tweak, but the steps to doing it will help me learn what things I need to be looking for / where to look for them, and that will help with other, bigger things. Link to post Share on other sites More sharing options...
Olas Nick Posted January 23, 2023 Share Posted January 23, 2023 and what is the problem with comparing the code of these 2 skins to see the difference? for example, for the first question, you need to add a simple text widget <widget class="text" alignment="centre"> <string id="text" value="-"/> </widget> Link to post Share on other sites More sharing options...
spwells Posted January 23, 2023 Author Share Posted January 23, 2023 Well, the second picture is just something I made in Paint to show how I'd like it to look Link to post Share on other sites More sharing options...
spwells Posted January 23, 2023 Author Share Posted January 23, 2023 I thought I'd found it, I unpacked the panels.fmf file, and found 'match stats floating.xml', which I thought I could edit like so - Spoiler (the spelling mistakes are on purpose, so I'd know it was me changing it!) I then popped that into my panels\match folder. But it doesn't appear to be working. Link to post Share on other sites More sharing options...
Olas Nick Posted January 23, 2023 Share Posted January 23, 2023 (edited) 28 minutes ago, spwells said: Well, the second picture is just something I made in Paint to show how I'd like it to look file match in between highlights panel.xml add <widget class="text" auto_size="all"> <string id="text" value="-"/> </widget> Edited January 23, 2023 by Olas Nick Link to post Share on other sites More sharing options...
spwells Posted January 23, 2023 Author Share Posted January 23, 2023 53 minutes ago, Olas Nick said: file match in between highlights panel.xml add <widget class="text" auto_size="all"> <string id="text" value="-"/> </widget> I'm either putting it in the wrong place in the file, or that isn't the answer? Link to post Share on other sites More sharing options...
TCSSkin Posted January 23, 2023 Share Posted January 23, 2023 1 hour ago, spwells said: I thought I'd found it, I unpacked the panels.fmf file, and found 'match stats floating.xml', which I thought I could edit like so - Hide contents (the spelling mistakes are on purpose, so I'd know it was me changing it!) I then popped that into my panels\match folder. But it doesn't appear to be working. Remove translation_id="xyz". This overrides anything in the value attribute Link to post Share on other sites More sharing options...
spwells Posted January 24, 2023 Author Share Posted January 24, 2023 20 hours ago, bluestillidie00 said: Remove translation_id="xyz". This overrides anything in the value attribute This did it! Take a bow, take a bow So, now that I know it's this file, I can have a go at adding in the extra bits for venue and attendance %. Thank you, and @Olas Nick for your help, I really appreciate it 1 Link to post Share on other sites More sharing options...
spwells Posted January 28, 2023 Author Share Posted January 28, 2023 Ok, I feel like I'm missing something fairly simple. Question 1 is done. I'm stuck on question 2. I've got the line for the venue in, but it's not giving me the venue name, it's just giving me an 'A'. I added the following code to the file for the panel. Spoiler And it shows in the panel as Venue - A Any tips on where to look / what I'm missing? 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