Ports Bay/Europa UI Icons (#10065)

Ported a modified human UI from Bay/Europa with minor edits.

Ported from Baystation12/Baystation12#25763

I made the "condition nominal" icons invisible to fit with our old UI style, but I left the transparent icons in the .dmi, if someone wanted to use it for something.
This commit is contained in:
Geeves
2020-09-27 15:12:29 +03:00
committed by GitHub
parent 4b5dec030f
commit 61f0c6edec
6 changed files with 107 additions and 19 deletions
+1 -1
View File
@@ -905,7 +905,7 @@
if (nutrition_icon.icon_state != new_val)
nutrition_icon.icon_state = new_val
if(hydration_icon)
var/hyd_factor = max(0,min(hydration / max_hydration,1))
var/hyd_factor = max_hydration ? Clamp(hydration / max_hydration, 0, 1) : 1
var/hyd_icon = 5
if(hyd_factor >= CREW_HYDRATION_OVERHYDRATED)
hyd_icon = 0