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

Request - Hide ui related to status effects

Ry0uSh1n

New member
ISO, a way to hide a hud element/elements when not infected and radiated.

I have 2 hud elements, 3 if you count the vanilla pop up list on the left. Below are the 2 elements that I want to "pop-up" when either or both affect the player. Also, I want to remove/hide the pop-up in the vanilla location completely for both. Any help in this would be greatly appreciated. Thanks

Code:
<rect pos="295,75" width="377" height="8" controller="HUDStatBar" custom_stat_type="Radiation" visible="{statvisible}">
<sprite pos="91,-124" depth="5" height="80" width="80" name="border" pivot="center" sprite="ui_Radiation" globalopacitymod="1.4"/>
<sprite name="BarBg" depth="3" pos="91,-124" width="80" height="80" pivot="center" sprite="ui_StatBarBg" color="darkGrey" fill="0" globalopacitymod="1.8"/>
<sprite name="BarContent" depth="4" pos="91,-124" width="80" height="80" pivot="center" sprite="ui_StatBarFiller" color="0,154,0,240" type="filled" fill="0" globalopacitymod="1.8" filldirection="vertical"/>
<label depth="7" name="TextContent" pos="90,-140" font_size="18" color="[white]" justify="center" pivot="center" text="{cvar(.radiationDisplayPerc:##0.0'%')}" height="35" width="70"/>
</rect>

<rect pos="215,125" width="377" height="8" controller="HUDStatBar" custom_stat_type="Infection" visible="{statvisible}">
<sprite pos="91,-124" depth="5" height="80" width="80" name="border" pivot="center" sprite="ui_Infection_1" globalopacitymod="1.4"/>
<sprite name="BarBg" depth="3" pos="91,-124" width="80" height="80" pivot="center" sprite="ui_StatBarBg" color="darkGrey" fill="0" globalopacitymod="1.8"/>
<sprite name="BarContent" depth="4" pos="91,-124" width="80" height="80" pivot="center" sprite="ui_StatBarFiller" color="192,248,255" type="filled" fill="0" globalopacitymod="1.8" filldirection="vertical"/>
<label depth="7" name="TextContent" pos="90,-140" font_size="18" color="[white]" justify="center" pivot="center" text="{cvar(.infectionDisplayPerc:##0.0'%')}" height="35" width="70"/>
</rect>
 
Back
Top