7DTD A20 Serverseitige Scripts - Server-side scriptsappend xpath - Dein Werbetext oben Links - Your ad text above left

Our server side scripts that do not need to be downloaded. Every player gets all settings directly from the server.
Benutzeravatar
sx_schaddi
Site Admin
Beiträge: 52
Registriert: Dienstag 21. Mai 2019, 11:41

append xpath - Dein Werbetext oben Links - Your ad text above left

#1

Ungelesener Beitrag von sx_schaddi » Samstag 25. Dezember 2021, 15:20

Mit diesem Eintrag zaubern wir einen Werbetext links oben ins Interface.
With this entry we conjure up an advertising text into the interface above left

20211225151726_1.jpg
20211225151726_1.jpg (24.3 KiB) 4098 mal betrachtet
Modfile:
ModName/Configs/Xui/windows.xml

Code: Alles auswählen

<configs>
<append xpath="/windows">
<window name="sx">
	<rect name="hud" pos="9,147" rows="2" cols="1" width="400" side="right">
	<label depth="7" name="TextContent" pos="-60,875" font_size="30" color="[white]" justify="center" pivot="topleft" text="[FFFFFF]Willkommen beim SXTEAM" height="25"/>
	<label depth="7" name="TextContent2" pos="-60,855" font_size="30" color="[white]" justify="center" pivot="topleft" text="[FF66FF]Stop playing - start gaming!" height="30"/>
	<label depth="7" name="TextContent3" pos="-60,825" font_size="30" color="[white]" justify="center" pivot="topleft" text="[FFFFFF]www.sxteam.de" height="25"/>
	</rect>	
</window>
</append>
</configs>
Modfile:
ModName/Configs/Xui/xui.xml

Code: Alles auswählen

<configs>
	<append xpath="/xui/ruleset[@name='default']/window_group[@name='toolbelt']" >
	<window name="sx" anchor="LeftBottom" />
	</append>
</configs>
[FFFFFF] = HTML Color
Willkommen beim SXTEAM = Your TEXT