Jump to content

[FM22] Background Selector


giglet13
 Share

Recommended Posts

I've managed to add this before but I've got a couple of issues, may be a simple re-direct but not found the specific bit im struggling with in any guides so far.

- Added Global Panels 

- Added Background Selector Config from Other Skins

- Added Graphics Background Numbered to match the Background Selector

What code, and where in an existing Client_object_browser do I need to add? I have tried taking from previous ones but It's not working so assume its either slightly wrong or i've added in the wrong order. 

Also on FM22 specifically, the Sidebar is transparent and main block / UI isnt. Once I get the background selector working, do I just follow from here to adjust that transparency accordingly - 

Or can I add a transparency selector like in previous years for this area? (If so any signposts for guides on this would also be great)

Link to post
Share on other sites

Ok I've successfully done th is, for others (probably a little bit of a fudge) the file is below for this set up on the Panels

This text was added to enable to selector :

Spoiler

<container file="background_selector/backgrounds" >
 <attachment class="test_multiple_globals_attachment" default_value="false">
 <list id="get_properties">
 <record get_property="MatS" test_mode="equal" value="true" skip_if_null="true" />
 <record get_property="Ma3D" test_mode="equal" value="true" comparison_mode="or" skip_if_null="true" />
          </list>
  <integer id="set_property" value="hidn" />
 </attachment>
 </container>
<!--overlay-->
<widget class="picture" file="backgrounds/overlay/30" scale_picture="true">
<boolean id="keep_aspect_ratio" value="false" />
 </widget>

Then this code, much further down alongside the area the Backroom Advice popups are added:

Spoiler

<!-- Graphics Options-->
                                <widget class="menubar_icon_button" appearance="buttons/custom/interface/navigation bar/button1" cant_be_toggled="true" fixed="true" icon="icons/26px/bs" width="40">
                                    <record id="primary_icon_properties" red_replacement="heffem" />
                                    <record id="secondary_icon_properties" red_replacement="heffem" />
                                    <event id="click_event" event_id="kev3" />
                                    <attachment class="event_relay_attachment" event_id="kev3">
                                        <record id="action_event">
                                            <flags id="event_id" value="show" />
                                            <flags id="event_target" value="bgs1" />
                                        </record>
                                    </attachment>
                                </widget>
 

This achieves the Background selector positioned as per screenshot below beneath the continue button:

 

Spoiler

image.thumb.png.c5b54f5118ba08e91f61798e51936237.png

 

As long as you've then set up a background selector folder/configs, the Global Panels and Backgrounds themselves numbered appropriately - all good.

client object browser.xml

Edited by giglet13
Link to post
Share on other sites

On 17/11/2021 at 17:45, giglet13 said:

Ok I've successfully done th is, for others (probably a little bit of a fudge) the file is below for this set up on the Panels

This text was added to enable to selector :

  Hide contents

<container file="background_selector/backgrounds" >
 <attachment class="test_multiple_globals_attachment" default_value="false">
 <list id="get_properties">
 <record get_property="MatS" test_mode="equal" value="true" skip_if_null="true" />
 <record get_property="Ma3D" test_mode="equal" value="true" comparison_mode="or" skip_if_null="true" />
          </list>
  <integer id="set_property" value="hidn" />
 </attachment>
 </container>
<!--overlay-->
<widget class="picture" file="backgrounds/overlay/30" scale_picture="true">
<boolean id="keep_aspect_ratio" value="false" />
 </widget>

Then this code, much further down alongside the area the Backroom Advice popups are added:

  Hide contents

<!-- Graphics Options-->
                                <widget class="menubar_icon_button" appearance="buttons/custom/interface/navigation bar/button1" cant_be_toggled="true" fixed="true" icon="icons/26px/bs" width="40">
                                    <record id="primary_icon_properties" red_replacement="heffem" />
                                    <record id="secondary_icon_properties" red_replacement="heffem" />
                                    <event id="click_event" event_id="kev3" />
                                    <attachment class="event_relay_attachment" event_id="kev3">
                                        <record id="action_event">
                                            <flags id="event_id" value="show" />
                                            <flags id="event_target" value="bgs1" />
                                        </record>
                                    </attachment>
                                </widget>
 

This achieves the Background selector positioned as per screenshot below beneath the continue button:

 

  Hide contents

image.thumb.png.c5b54f5118ba08e91f61798e51936237.png

 

As long as you've then set up a background selector folder/configs, the Global Panels and Backgrounds themselves numbered appropriately - all good.

client object browser.xml 16.18 kB · 5 downloads

Can you show me your folder setup for this to work please?

Link to post
Share on other sites

3 minutes ago, _neallyons_ said:

Can you show me your folder setup for this to work please?

[SKIN]>PANELS> 

Global Panels XML File here

[SKIN]>PANELS>BACKGROUND_SELECTOR

backgrounds xml
config xml
'IDs used in this mod' Text document
workings XML

[SKIN]>PANELS>client_object

Updated client object browser xml 

[SKIN]>PANELS>Graphics>Backgrounds

Image files for background file named by number

The Vince Skin has a good base of files if you want a start guide from there 

Link to post
Share on other sites

  • 2 weeks 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...