mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user