Files
bbd6e42354 codebase reorganization of some folders (#5717)
moves & renames _onclick and _rendering to click and rendering and moves
_onclick/hud to rendering/legacy_hud
moves those to game folder

## Why?

because i don't think the root /code folder having them is correct
what the idea is is that:
- /code/game has 'whole game' stuff that should depend on as little else
as possible (can't avoid stuff like subsystems atmos and tgui obviously
so this is a loose suggestion); this is more aimed at that we shouldn't
have, say, a hypospray in here when hyposprays are logically part of the
reagents module since hyposprays don't work without reagents and are
primarily content for engaging with the reagents module
- /code/modules are standalone 'modules' that contain a tightly related
subset of the game, e.g. chemistry, maploader/management systems, etc.
- /code/controllers are core systems; many of them rely on / utilize
stuff from game/modules (duh) but they're here forever since they're
important
- /code/datums are mostly just helper datums;
object/item/whatever-specific datums should be stored in their given
files.

---------

Co-authored-by: silicons <no@you.cat>
2023-07-20 19:13:11 +01:00

35 lines
1002 B
Plaintext

/datum/hud/proc/larva_hud()
src.adding = list()
src.other = list()
var/atom/movable/screen/using
using = new /atom/movable/screen()
using.name = "mov_intent"
using.setDir(SOUTHWEST)
using.icon = 'icons/mob/screen1_alien.dmi'
using.icon_state = (mymob.m_intent == "run" ? "running" : "walking")
using.screen_loc = ui_acti
using.layer = HUD_LAYER_BASE
src.adding += using
move_intent = using
mymob.healths = new /atom/movable/screen()
mymob.healths.icon = 'icons/mob/screen1_alien.dmi'
mymob.healths.icon_state = "health0"
mymob.healths.name = "health"
mymob.healths.screen_loc = ui_alien_health
mymob.fire = new /atom/movable/screen()
mymob.fire.icon = 'icons/mob/screen1_alien.dmi'
mymob.fire.icon_state = "fire0"
mymob.fire.name = "fire"
mymob.fire.screen_loc = ui_fire
mymob.client.screen = list()
mymob.client.screen += list( mymob.healths, mymob.fire) //, mymob.rest, mymob.sleep, mymob.mach )
mymob.client.screen += src.adding + src.other
mymob.reload_rendering()