SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
85 stars 18 forks source link

Allow disabling icons of freezing, etc PlayerLifeUI #1290

Closed DiFFoZ closed 4 years ago

DiFFoZ commented 4 years ago

image

Can you add an option to remove the icon of starving, dehydrated or freezing? ...

SDGNelson commented 4 years ago

Interesting custom UI! I'll plan to make those adjustable similar to the rest of the HUD in the next main update (probably January), as well as controllable from the server.

Paradox304 commented 4 years ago

@SDGNelson do you have plans to implement this?

joeymisfit commented 4 years ago

+1 This would be amazing for roleplay servers!

SDGNelson commented 4 years ago

Sorry - I must have missed the issue when preparing that update. Since I said I would do it, I will mark this Next Update so that it gets addressed.

Paradox304 commented 4 years ago

Thanks!

DiFFoZ commented 4 years ago

Also, can you implement #1411 ?

Paradox304 commented 4 years ago

Will the possiblity to disable health UI and gun UI that we can already do through map config.json be available to do through plugins when this is implemented?

SDGNelson commented 4 years ago

Some parts of the UI got minor reworks for this in the next update. The following widget flags were added:

/// <summary>
/// Enable health meter in the HUD.
/// </summary>
ShowHealth = 1 << 5,

/// <summary>
/// Enable food meter in the HUD.
/// </summary>
ShowFood = 1 << 6,

/// <summary>
/// Enable water meter in the HUD.
/// </summary>
ShowWater = 1 << 7,

/// <summary>
/// Enable virus/radiation/infection meter in the HUD.
/// </summary>
ShowVirus = 1 << 8,

/// <summary>
/// Enable stamina meter in the HUD.
/// </summary>
ShowStamina = 1 << 9,

/// <summary>
/// Enable oxygen meter in the HUD.
/// </summary>
ShowOxygen = 1 << 10,

/// <summary>
/// Enable icons for bleeding, broken bones, temperature, starving, dehydrating, infected, drowning, full moon,
/// safezone, and arrested status.
/// </summary>
ShowStatusIcons = 1 << 11,

ShowLifeMeters = ShowHealth | ShowFood | ShowWater | ShowVirus | ShowStamina | ShowOxygen,
educatalan02 commented 4 years ago

Vehicle related HUDs should be done too please 👍

XanderCodes commented 4 years ago

I believe that the game chat is the only thing we can't hide with widget flags for custom UI's... that would also be really nice!