mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-21 07:32:35 +00:00
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
32 lines
785 B
Plaintext
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
|