Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.
The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.
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>
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.