7 Days to Die

7 Days to Die

View Stats:
Help with my hud mod
I recently decided to make a small HUD mod for myself that just adds the food and water bars to the hud above the health and stamina. I wanted a green and turquoiseish colour but after playing with the color setting for the panel I have found that the only thing that seems to effect the colour is the Alpha Channel. The colours just default to the colours of the health and stamina bar or don't show colour at all.

This is the section of windows.xml that I have edited.
What's going on?

<grid name="hud" pos="9,147" rows="3" cols="1" width="168" cell_width="168" cell_height="46" repeat_content="false" controller="InGameHUD" side="left" > <grid name="hud" pos="9,98" rows="1" cols="2" width="168" cell_width="84" cell_height="46" repeat_content="false" controller="InGameHUD" side="left" > <rect width="84" 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="84" color="64,64,64,100" type="sliced" /> <sprite depth="3" pos="3,-3" name="BarContent" color="0,255,0,200" sprite="{StatImage|once}" type="filled" height="37" width="84" fill="{StatFill}" /> <sprite depth="4" name="Icon" atlas="{StatIconAtlas|once}" sprite="{StatIcon|once}" size="24,24" pos="4,-10" foregroundlayer="true"/> <label depth="6" name="TextContent" pos="18,-8" font_size="18" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/> </rect> <rect width="84" 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="84" color="64,64,64,100" type="sliced" /> <sprite depth="3" pos="3,-3" name="BarContent" color="0,255,200,200" sprite="{StatImage|once}" type="filled" height="37" width="84" fill="{StatFill}" /> <sprite depth="4" name="Icon" atlas="{StatIconAtlas|once}" sprite="{StatIcon|once}" size="24,24" pos="4,-10" foregroundlayer="true"/> <label depth="6" name="TextContent" pos="18,-8" font_size="18" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/> </rect> </grid> <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,-8" font_size="28" 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,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{StatCurrentWithMax}" height="30"/> </rect> </grid>
< >
Showing 1-1 of 1 comments
The food bar should be green and the water bar should be some sort of lighter blue.
http://images.akamai.steamusercontent.com/ugc/267212774696972176/40BCC45075C89F5B3C09B22BE6FC3FDE084B3FBA/
Last edited by Totally Not A Gamer Girl; May 1, 2016 @ 10:19am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: May 1, 2016 @ 10:01am
Posts: 1