7 Days To Die
0 of 0

File information

Last updated

Original upload

Created by

closer_ex

Uploaded by

ovseer

Virus scan

Safe to use

Tags for this mod

About this mod

Allow you to specify multiple mainmenu backgrounds and logos, then randomly load one from all specified entries.

Requirements
Permissions and credits
Changelogs
This should be a client only mod. If some other mods requires it for randomized backgrounds but you prefer your default one, you should be safe to remove this mod without breaking anything.

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" actionSet="false">
<window name="backgroundTest1" />
</window_group>
<window_group name="menuBackgroundTest2" actionSet="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.