Jump to content

[FM19] [Tutorial] How to stop Match Screen from Recolouring


TCSSkin
 Share

Recommended Posts

So this has been a fairly big issue for skinners this year, and annoyingly it has a very simple fix. I was messing around with the FMT base skins and decided to see if they suffered from the same recolouring issue, and interestingly they didn't. For anyone who doesn't understand the bug, the skin would recolour the background based on the competition primary colour, see the screenshots below.

fm_2019-02-23_14-58-25.thumb.png.89828786f877dd9069e304c934524e86.png fm_2019-02-23_14-58-28.thumb.png.22df66fa5246eb6611706d3d160ad9ee.png fm_2019-02-23_14-58-35.thumb.png.d489ef40ee10ad6ad559ec75aa0a7b8f.png

I've spent the last few hours trying to figure out how to prevent this happening, and luckily its extremely simple. You'll need to go into the <skin name>/panels/client_object/client object browser.xml, if your skin doesn't have it by default you can find it using the tutorial below

At the top of the panel, find the following container (starts at line 5 for those using Notepad++), 

<container>
		<layout class="stick_to_sides_attachment" alignment="all" inset="0" apply_to_children="true" />

		<!-- background picture - covers entire screen -->
		<widget class="background" file="backgrounds/default" id="bgnd">
			<record id="object_property">
				<integer id="get_property" value="bgnd" />
				<integer id="set_property" value="file" />
			</record>
			<attachment class="test_multiple_globals_attachment" default_value="false">
				<list id="get_properties">
					<record get_property="MatS" test_mode="0" value="true" skip_if_null="true" />
				</list>
				<integer id="set_property" value="hidn" />
			</attachment>
		</widget>


		<!-- match background picture - covers entire screen -->
		<widget class="picture" id="Mbkg" scale_picture="true" keep_aspect_ratio="false">
			<record id="object_property">
				<integer id="get_property" value="bgnd" />
				<integer id="set_property" value="file" />
			</record>
			<attachment class="test_multiple_globals_attachment" default_value="true">
				<list id="get_properties">
					<record get_property="MatS" test_mode="0" value="false" skip_if_null="true" />
				</list>
				<integer id="set_property" value="hidn" />
			</attachment>
		</widget>
	</container>

and simply delete it, and put this in it's place.

    <!-- background picture - covers entire screen -->
    <widget class="background" file="backgrounds/default" id="bgnd">
        <record id="object_property">
            <integer id="get_property" value="bgnd" />
            <integer id="set_property" value="file" />
        </record>
    </widget>

And the result!

fm_2019-02-23_15-06-03.thumb.png.3ed6bc1be497791ca3e6612a5697730a.png

notepad++_2019-02-23_15-05-35.png

Link to post
Share on other sites

  • 9 months later...

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