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

Need help with XUi/windows.xml

Copendub

Refugee
Hello, anyone that can help me would be greatly appreciated. Im trying to add an image to the empty info panel so i can display a server logo and rules. I did it a long time ago, but i cant remember what i did. Can anyone help me out?

 
Hello, anyone that can help me would be greatly appreciated. Im trying to add an image to the empty info panel so i can display a server logo and rules. I did it a long time ago, but i cant remember what i did. Can anyone help me out?

Code:
<configs>
<remove xpath="/windows/window[@name='serverjoinrulesdialog']/panel[@name='content']" />
<insertAfter xpath="/windows/window[@name='serverjoinrulesdialog']/panel[@name='header']">
	<panel name="content" pos="0,-46" height="500" depth="1" pivot="center" disableautobackground="true" >
		<sprite depth="6" name="border" sprite="menu_empty3px" pos="0,0" color="[black]" type="sliced" fillcenter="false" globalopacity="true" globalopacitymod="0.9" />
		<sprite depth="1" name="backgroundMain" sprite="menu_empty3px" pos="2,-2" height="496" width="896" color="[darkGrey]" type="sliced" fillcenter="true" globalopacity="true" globalopacitymod="0.65" />
		<label name="labelConfirmationText" pos="10,-10" width="880" height="480" depth="2" />
		<texture pos="" depth="3" name="name" material="Materials/Transparent Colored" texture="@REPLACETHISWITHIMAGEURL" size="900,500"/>
	</panel>
</insertAfter>
</configs>
texture="@REPLACETHISWITHIMAGEURL" -> point it to your image

Cheers

-edit- this is for the player confirmation login screen. I dunno if you meant that one.

 
Last edited by a moderator:
All right, you've got your answer.

Just for such questions it is better to use a thread in the mods section. Here i would never have found your question :)

 
I have done the above but dont get the window coming up. What do I set serverconfig.xml to?

<property name="ServerLoginConfirmationText" value="" /> <!-- If set the user will see the message during joining the server and has to confirm it before continuing. For more complex changes to this window you can change the "serverjoinrulesdialog" window in XUi -->

 
Code:
<configs>
<remove xpath="/windows/window[@name='serverjoinrulesdialog']/panel[@name='content']" />
<insertAfter xpath="/windows/window[@name='serverjoinrulesdialog']/panel[@name='header']">
	<panel name="content" pos="0,-46" height="500" depth="1" pivot="center" disableautobackground="true" >
		<sprite depth="6" name="border" sprite="menu_empty3px" pos="0,0" color="[black]" type="sliced" fillcenter="false" globalopacity="true" globalopacitymod="0.9" />
		<sprite depth="1" name="backgroundMain" sprite="menu_empty3px" pos="2,-2" height="496" width="896" color="[darkGrey]" type="sliced" fillcenter="true" globalopacity="true" globalopacitymod="0.65" />
		<label name="labelConfirmationText" pos="10,-10" width="880" height="480" depth="2" />
		<texture pos="" depth="3" name="name" material="Materials/Transparent Colored" texture="@REPLACETHISWITHIMAGEURL" size="900,500"/>
	</panel>
</insertAfter>
</configs>
 
texture="@REPLACETHISWITHIMAGEURL" -> point it to your image

Cheers

-edit- this is for the player confirmation login screen. I dunno if you meant that one.


where this block have to be added to ? could you explain please?

 
Back
Top