Jump to content

Three questions, a beginners question, an intermediate question, and an advanced question!


spwells
 Share

Recommended Posts

Hi,

I'd like to tweak the in match Match Stats panel as per the following pictures -

 

image.png.c1f98a4d69b47db6a5f78474b701a2b8.png

 

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

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

image.png.02b52e2d05b543e439da1c1997ac4985.png

 

(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

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 :D

:D
file match in between highlights panel.xml
add

						<widget class="text" auto_size="all">
							<string id="text" value="-"/>
						</widget>
Edited by Olas Nick
Link to post
Share on other sites

53 minutes ago, Olas Nick said:

:D
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

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

image.png.02b52e2d05b543e439da1c1997ac4985.png

 

(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

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 :) 

Link to post
Share on other sites

 

 

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

image.png.4932b816c4d92373ca3da0da0257fdea.png

 

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

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