Files
Polaris/code/_onclick/hud/alien_larva.dm
Rykka 28a7698b9e Port lots of things that had to wait on alerts
Adds a HUD for observers
Adds a HUD for rigs and mechs
Adds up/down buttons for AI hud
Add more tg style alerts
Fix some bugs with the tg alerts
Improve icon_states usage by caching it
Redo how respawning works, add a button to ghost hud for it
2020-07-30 16:23:32 -04:00

32 lines
785 B
Plaintext

/mob/living/carbon/alien/create_mob_hud(datum/hud/HUD, apply_to_client = TRUE)
..()
HUD.ui_style = 'icons/mob/screen1_alien.dmi'
HUD.adding = list()
HUD.other = list()
var/obj/screen/using
using = new /obj/screen()
using.name = "mov_intent"
using.set_dir(SOUTHWEST)
using.icon = HUD.ui_style
using.icon_state = (m_intent == "run" ? "running" : "walking")
using.screen_loc = ui_acti
using.layer = HUD_LAYER
HUD.adding += using
HUD.move_intent = using
healths = new /obj/screen()
healths.icon = HUD.ui_style
healths.icon_state = "health0"
healths.name = "health"
healths.screen_loc = ui_alien_health
if(client && apply_to_client)
client.screen = list()
client.screen += list(healths)
client.screen += HUD.adding + HUD.other
client.screen += client.void