Modding for A13 – UI change to add food & water to left hud

By popular request, here’s another change to the UI. Specifically this one adds a food and water bar to the lower right corner and shifts everything else up accordingly.

Simply go into your 7 Days to Die -> Data -> Config -> XUi directory and replace the block with the following code:

 

<window name="HUDLeftStatBars">

<grid name="hud" pos="9,190" rows="4" cols="1" width="168" cell_width="168" cell_height="46" repeat_content="false" controller="InGameHUD" side="left" >

<rect width="168" height="43" controller="HUDStatBar" stat_type="Stamina" visible="{StatVisible}">

<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced"/>

<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />

<sprite depth="3" pos="3,-3" name="BarContent" sprite="{StatImage|once}" type="filled" height="37" width="162" fill="{StatFill}" />

<sprite depth="4" name="Icon" atlas="{StatIconAtlas|once}" sprite="{StatIcon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>

<label depth="6" name="TextContent" pos="0,-10" font_size="24" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/>

</rect>

<rect width="168" height="43" controller="HUDStatBar" stat_type="Health" visible="{StatVisible}">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="3" pos="3,-3" name="BarContent" sprite="{StatImage|once}" type="filled" height="37" width="162" fill="{StatFill}" />
<sprite depth="4" name="Icon" atlas="{StatIconAtlas|once}" sprite="{StatIcon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="TextContent" pos="0,-10" font_size="24" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/>
</rect>

<rect width="168" height="43" controller="HUDStatBar" stat_type="Food" visible="{StatVisible}">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="3" pos="3,-3" name="BarContent" sprite="{StatImage|once}" type="filled" height="37" width="162" fill="{StatFill}" />
<sprite depth="4" name="Icon" atlas="{StatIconAtlas|once}" sprite="{StatIcon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="TextContent" pos="0,-10" font_size="24" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/>
</rect>

<rect width="168" height="43" controller="HUDStatBar" stat_type="Water" visible="{StatVisible}">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="3" pos="3,-3" name="BarContent" sprite="{StatImage|once}" type="filled" height="37" width="162" fill="{StatFill}" />
<sprite depth="4" name="Icon" atlas="{StatIconAtlas|once}" sprite="{StatIcon|once}" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="TextContent" pos="0,-10" font_size="24" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/>
</rect>
</grid>

<rect name="hud" pos="93,210" side="left" controller="BuffPopoutList" pivot="BottomLeft" >
<panel width="168" height="43" name="item" visible="false" pivot="right" disableautobackground="true" pos="70, 0" >
<sprite depth="3" pos="0,0" name="Background" sprite="ui_game_popup" height="43" width="162" pivot="center" flip="Horizontally" color="[transparent]" />
<sprite depth="4" name="Icon" size="36,32" pos="-58,0" pivot="center" color="[transparent]"/>
<label depth="6" name="TextContent" pos="0,0" font_size="24" color="[white]" justify="center" height="30" pivot="center"/>
</panel>
</rect>
</window>

 

About

Oldschool gamer. Professional developer by day, gamer by night. I try to keep myself young through lots and lots and lots of game playing. So far I've been successful.

9 thoughts on “Modding for A13 – UI change to add food & water to left hud

  1. Rongo – when you have a moment – There is a problem in the xml due to a bad quotation mark in line 3 of the code… I am correcting my version and looking for the other possible translations of the quotation marks.

    Kadd213 – This is common when word processors change your quotation marks “for you” to slant left or right, instead of the pure ASCII quotation marks used in NotePad++. This will be fixed shortly, I’m sure.

  2. Rongo – I’ve confirmed that there are more errors because your website “helped” you when you posted the code on the page.

    Replaced 314 instances of left-leaning quotation marks
    Replaced 104 instances of right-leaning quotation marks

  3. the code in my windows.xml looks exactly like this one I don’t understand code enough to know what you are talking about left leaning and right leaning quotation marks, I don’t write code I just copy past to my server

      1. thanks I was chatting with my mate G4K he had it happen as well not sure as bad though. If you want a screen shot of it on/off let me know so you can see the difference. Still a nice mod other wise.

Leave a Reply

more stuf?