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

Interface | make the tactical HUD transparent

KAKTYC

New member
Hi all! Please, say Me! How to make health and stealth icons transparent in Undead Legacy mod? I especially want to make the tactical HUD transparent, because it is very convenient... But for now there is no way to make it separately, like all status bars, transparent. How to apply transparency properties?

 

7 Days To Die - Undead Legacy\Mods\UndeadLegacy_Content01\Config\XUi

<window name="windowTacticalHud" depth="-20" cursor_area="true" controller="ULM_HUD_Central,UndeadLegacy">
    <sprite size="70,70" pivot="center" rotation="45" sprite="symbol_target_hit" visible="{targetHit}"    />
    <rect pos="70,-70" rotation="270" visible="{statStaminaVisible}">
        <sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" sprite="ui_stat_round_quarter_border" />
        <sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="180,180,180"/>
        <sprite depth="4" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" fill="{playerStaminaModifiedMax}"/>
        <sprite depth="5" style="ulmHudStatRoundQuarter" flip="Horizontally" color="255,255,255,220" fill="{statStaminaFill}"/>
    </rect>
    <rect pos="-70,70" rotation="90" visible="{statStealthVisible}">
        <sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" sprite="ui_stat_round_quarter_border" />
        <!--<sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" sprite="ui_stat_round_quarter_border"/>
        <sprite depth="3" style="ulmHudStatRoundQuarter" flip="Horizontally"/>
        <sprite depth="4" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0,235" fill="{statStealthInverseFill}" foregroundlayer="true"/>-->
        <sprite depth="2" style="ulmHudStatRoundQuarter" flip="Horizontally" sprite="ui_stat_round_stealth"/>
        <sprite depth="4" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0,235" fill="{statStealthInverseFill}" foregroundlayer="true"/>
    </rect>
</window>

How do I understand this is somewhere here?
I tried to register these settings, but it didn’t work (

globalopacity="true" globalopacitymod="0.5"

 
You need to add those to the sprites you want to change the opacity for

For example

Code:
<setattribute xpath="//window[@name='windowTacticalHud']/rect[1]/sprite[1]" name="globalopacity">true</setattribute>
<setattribute xpath="//window[@name='windowTacticalHud']/rect[1]/sprite[1]" name="globalopacitymod">0.5</setattribute>
 
setattribute xpath - I don’t know where to write this, is it for a modlet? I am newbie. I edit game files directl

I added it directly to the game files like this - globalopacity="true" globalopacitymod="1"

<window name="windowTacticalHud" depth="-20" cursor_area="true" controller="ULM_HUD_Central,UndeadLegacy">
    <sprite size="70,70" pivot="center" rotation="45" sprite="symbol_target_hit" visible="{targetHit}" globalopacity="true" globalopacitymod="1"/>
    <rect pos="70,-70" rotation="270" visible="{statStaminaVisible}">
        <sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" sprite="ui_stat_round_quarter_border" globalopacity="true" globalopacitymod="1" />
        <sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="180,180,180"/>
        <sprite depth="4" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" fill="{playerStaminaModifiedMax}"/>
        <sprite depth="5" style="ulmHudStatRoundQuarter" flip="Horizontally" color="255,255,255,220" fill="{statStaminaFill}"/>
    </rect>
    <rect pos="-70,70" rotation="90" visible="{statStealthVisible}">
        <sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" sprite="ui_stat_round_quarter_border" globalopacity="true" globalopacitymod="1"/>
        <!--<sprite depth="1" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0" sprite="ui_stat_round_quarter_border"/>
        <sprite depth="3" style="ulmHudStatRoundQuarter" flip="Horizontally"/>
        <sprite depth="4" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0,235" fill="{statStealthInverseFill}" foregroundlayer="true"/>-->
        <sprite depth="2" style="ulmHudStatRoundQuarter" flip="Horizontally" sprite="ui_stat_round_stealth"/>
        <sprite depth="4" style="ulmHudStatRoundQuarter" flip="Horizontally" color="0,0,0,235" fill="{statStealthInverseFill}" foregroundlayer="true"/>
    </rect>
</window>

Transparency appears, but the effect is still weak, and it cannot be made stronger by changing the values. The maximum that can be done is to make the image dimmer. I even tried to make the sprite file transparent in Photoshop) But it had no effect)

Is it possible to achieve any transparency, as was done for the game menu, for all other interface elements? there is good transparency
wD6chy.jpg
?

 
Back
Top