• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

XML Informational UI modlet: Add Server Name or Text to the top-left corner. (Similar to 7DTD version)

BoQsc

New member
I would like to know what would be the most correct and simpliest way to add some informational text at the top-left corner.

The text should stay in the background no matter what other UI is opened.

SRwv9M1.png


 
Last edited by a moderator:
Create a Add_Server_Name_UI\ folder inside Mods\ folder: 

Create these files and launch the dedicated server, everything should work after joining the server:

C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Add_Server_Name_UI\ModInfo.xml

<?xml version="1.0" encoding="UTF-8"?>

<xml>
    <Name value="Add_Server_Name_UI" />
    <Author value="BoQsc" />
    <Description value="A UI modlet for 7 Days To Die." />
    <DisplayName value="Add_Server_Name_UI" />
    <Website value="" />
    <Version value="Alpha 21.2(b30)" />
</xml>



C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Add_Server_Name_UI\Config\XUi\windows.xml

<configs>
<append xpath="/windows/window[@name='windowGroupBars']">
<rect name="hud" pos="0,-6" rows="2" cols="1" width="168" height="168" side="left">
<label anchor="CenterCenter" pivot="topleft" name="InformationAboutServer" depth="3" text="[03F1F5]7 Days To Die Vanilla Public Server" font_size="18" color="[menuElementsLBLPri]" crispness="Never" effect="outline" effect_distance="1,1" upper_case="true" justify="center" />
</rect>
</append>
</configs>


T6K5OR8.png


 
Last edited by a moderator:
Back
Top