About this mod
Allow you to specify multiple mainmenu backgrounds and logos, then randomly load one from all specified entries.
- Permissions and credits
- Changelogs
The overview pretty much summarizes the usage of this mod, so I'll give a brief introduction on how to use it here.
To get this mod into effect, you need to add window_group named "menuBackground + custom identifier" for the background, and "mainMenuLogo + custom identifier" for the logo to XUi_Menu/xui.xml. Then I'll randomly pick one from these custom window groups. If there is no custom ones, the default one without custom identifier is loaded.
For example:
In XUi_Menu/xui.xml we have following window_groups:
<test name="XUi_Menu/xui.xml">
<append xpath="/xui/ruleset[@name='default']">
<window_group name="menuBackgroundTest1" actijavascript-event-stripped"false">
<window name="backgroundTest1" />
</window_group>
<window_group name="menuBackgroundTest2" actijavascript-event-stripped"false">
<window name="backgroundTest2" />
</window_group>
</append>
</test>
Then in XUi_Menu/windows.xml we just add those window like vanilla background and logo:
<test name="XUi_Menu/windows.xml">
<append xpath="/windows">
<window name="backgroundTest1" anchor="CenterCenter" pos="0,0" width="1050" height="780" depth="-3">
<texture depth="1" color="[white]" texture="@modfolder:Textures/test1.png" name="bgTexture" anchor_left="#cam,0,-5" anchor_bottom="#cam,0,-5" anchor_right="#cam,1,5" anchor_top="#cam,1,5" />
</window>
<window name="backgroundTest2" anchor="CenterCenter" pos="0,0" width="1050" height="780" depth="-3">
<texture depth="1" color="[white]" texture="@modfolder(SMXlib)://Textures/smxmenu_window_background.png" name="bgTexture" anchor_left="#cam,0,-5" anchor_bottom="#cam,0,-5" anchor_right="#cam,1,5" anchor_top="#cam,1,5" />
</window>
</append>
</test>
EAC must be off.