Jump to content

Need help with XUi/windows.xml


Copendub

Recommended Posts

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?

 

<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.

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

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 -->

Link to comment
Share on other sites

  • 10 months later...
On 9/16/2019 at 3:51 PM, Prisma501 said:

 

 


<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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...