Vaurca Breeder Health HUD Offset Fix (#10175)

This commit is contained in:
Geeves
2020-10-06 14:30:13 +02:00
committed by GitHub
parent 4f0e0090e9
commit bd064d3f53
6 changed files with 25 additions and 5 deletions

View File

@@ -84,6 +84,8 @@
#define ui_nutrition_small "EAST:4,CENTER-2:24"
#define ui_temp "EAST-1:28,CENTER-1:13"
#define ui_health "EAST-1:28,CENTER:15"
#define ui_health_east_loc "EAST-1:28" // used to manipulate the position of the healths screen element, must be same as the one above
#define ui_health_east_template "EAST-1:" // ditto
#define ui_internal "EAST-1:28,CENTER+1:17"
//borgs

View File

@@ -280,6 +280,9 @@
mymob.healths.icon_state = "health0"
mymob.healths.name = "health"
mymob.healths.screen_loc = ui_health
if(target.species.healths_x)
var/ui_health_loc = replacetext(ui_health, ui_health_east_loc, "[ui_health_east_template][target.species.healths_x]")
mymob.healths.screen_loc = ui_health_loc
hud_elements |= mymob.healths
if(hud_data.has_pressure)