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

17.1B8 HUD Water filling not working [help]

a383125283

New member
HUD Water filling No longer working on this version,Ask for your help

<rect width="171" height="43" pos="0,-235" controller="PlayerStatsWindow" visible="{statvisible}">

<sprite depth="1" name="border" color="0,0,0,128" type="sliced"/>

<sprite depth="2" name="background" color="0,0,0,140" type="sliced" />

<filledsprite depth="3" name="background" color="110,110,110,128" width="169" type="filled" fill="{statmodifiedmax}" />

<filledsprite depth="5" name="BarContent" color="52,137,167,128" width="169" type="filled" fill="{playerwaterfill}" />

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

<label depth="7" name="TextContent" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playerwater}%" height="30"/>

<sprite depth="8" name="border" color="0,0,0,255" type="sliced" fillcenter="false"/>

<filledsprite depth="8" name="background" color="0,0,0,255" width="171" fillcenter="false" type="filled" fill="{statmodifiedmax}" />

<filledsprite depth="3" name="background" color="0,0,0,255" width="170" fillcenter="false" type="filled" fill="{statmodifiedmax}" />

</rect>

 
HUD Water filling No longer working on this version,Ask for your help

<rect width="171" height="43" pos="0,-235" controller="PlayerStatsWindow" visible="{statvisible}">

<sprite depth="1" name="border" color="0,0,0,128" type="sliced"/>

<sprite depth="2" name="background" color="0,0,0,140" type="sliced" />

<filledsprite depth="3" name="background" color="110,110,110,128" width="169" type="filled" fill="{statmodifiedmax}" />

<filledsprite depth="5" name="BarContent" color="52,137,167,128" width="169" type="filled" fill="{playerwaterfill}" />

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

<label depth="7" name="TextContent" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playerwater}%" height="30"/>

<sprite depth="8" name="border" color="0,0,0,255" type="sliced" fillcenter="false"/>

<filledsprite depth="8" name="background" color="0,0,0,255" width="171" fillcenter="false" type="filled" fill="{statmodifiedmax}" />

<filledsprite depth="3" name="background" color="0,0,0,255" width="170" fillcenter="false" type="filled" fill="{statmodifiedmax}" />

</rect>
It's not a percentage anymore. In the code you posted, the % is just text written in there, not a command. So you are showing an integer as a percentage when it's not. Since the controller has changed you'll need to find another way to arrange your water bar.

 
<rect width="171" height="43" pos="0,-235" controller="PlayerStatsWindow" visible="{statvisible}"><sprite depth="1" name="border" color="0,0,0,128" type="sliced"/>

<sprite depth="2" name="background" color="0,0,0,140" type="sliced" />
This looks all good

<filledsprite depth="3" name="background" color="110,110,110,128" width="169" type="filled" fill="{statmodifiedmax}" />
I believe statmodifiedmax has to do with how the health and stam bars work where they only fill part way due to cap, so you can do away w/ it

<filledsprite depth="5" name="BarContent" color="52,137,167,128" width="169" type="filled" fill="{playerwaterfill}" />
change filledsprite to sprite

<sprite depth="6" name="Icon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_water" size="32,32" pos="4,-6" foregroundlayer="true"/><label depth="7" name="TextContent" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playerwater}%" height="30"/>
if you still have your text and just the filled bar is the concern you should be good here

<sprite depth="8" name="border" color="0,0,0,255" type="sliced" fillcenter="false"/><filledsprite depth="8" name="background" color="0,0,0,255" width="171" fillcenter="false" type="filled" fill="{statmodifiedmax}" />

<filledsprite depth="3" name="background" color="0,0,0,255" width="170" fillcenter="false" type="filled" fill="{statmodifiedmax}" />
This also is from the new "HUDLeftStatBars" mechanic. I can also go the way of the wind.

</rect>
most definitely keep this

 
This looks all good

I believe statmodifiedmax has to do with how the health and stam bars work where they only fill part way due to cap, so you can do away w/ it

change filledsprite to sprite

if you still have your text and just the filled bar is the concern you should be good here

This also is from the new "HUDLeftStatBars" mechanic. I can also go the way of the wind.

most definitely keep this



OK I'll try

 
This looks all good

I believe statmodifiedmax has to do with how the health and stam bars work where they only fill part way due to cap, so you can do away w/ it

change filledsprite to sprite

if you still have your text and just the filled bar is the concern you should be good here

This also is from the new "HUDLeftStatBars" mechanic. I can also go the way of the wind.

most definitely keep this


<filledsprite depth =“5”name =“BarContent”color =“52,137,167,128”width =“169”type =“filled”fill =“{playerwaterfill}”/>

将filledsprite更改为sprite

Still not working

 
<sprite depth="5" name="BarContent" color="52,137,167,128" width="169" type="filled" fill="{playerwaterfill}" /> try this.

 
This looks all good

I believe statmodifiedmax has to do with how the health and stam bars work where they only fill part way due to cap, so you can do away w/ it

change filledsprite to sprite

if you still have your text and just the filled bar is the concern you should be good here

This also is from the new "HUDLeftStatBars" mechanic. I can also go the way of the wind.

most definitely keep this

<sprite depth="5" name="BarContent" color="52,137,167,128" width="169" type="filled" fill="{playerwaterfill}" /> try this.


Yes, I did, but it didn't work.

 
what do you have for your window controller, <window ... controller="HUDStatBar" ...> is what I have for mine. It has worked for 17.0 and 17.1

 
Back
Top