mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-06 15:42:28 +00:00
* add the new stuff * guh * add the brunt of it * action button stuff * adds a lot of other stuff * careful find and replace * it loads * so many huds * ehh yeah this kinda works * fixes this runtime * hacks in some DMI stuff, we'll fix it later * Adds better mouse pointer for dragging buttons * gets dragging into place working again, updates DMI * moves define * remove extra hud defines, now it compiles * CHECK GREP * owww * rename action defines * ticks * are we good * let's try that again * renames mob vars * renames * fixes some hud issues with huds getting the wrong variable * fixes some alignment issues * Adds mouse-wheel scroll support * left -> right * I am the entire circus * first self-review pass * Another review pass -- just realized I need to fix keybinds * more testing * update icons * oops * Fix spell icons not appearing properly * fixes some outstanding issues - Action button backgrounds now work properly - Fixes some runtimes on dropping - Fixes some misplaced icons * hmm * weh * again? * nah? * maybe this? * asdf * should finally fix CI * add client check * move the ? * add missing override causing runtimes * shift-clicking now doesn't trigger the button * better docs
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
/datum/hud/construct/armoured/New(mob/owner)
|
|
..()
|
|
mymob.healths = new /atom/movable/screen()
|
|
mymob.healths.icon = 'icons/mob/screen_construct.dmi'
|
|
mymob.healths.icon_state = "juggernaut_health0"
|
|
mymob.healths.name = "health"
|
|
mymob.healths.screen_loc = ui_construct_health
|
|
infodisplay += mymob.healths
|
|
|
|
/datum/hud/construct/builder/New(mob/owner)
|
|
..()
|
|
mymob.healths = new /atom/movable/screen()
|
|
mymob.healths.icon = 'icons/mob/screen_construct.dmi'
|
|
mymob.healths.icon_state = "artificer_health0"
|
|
mymob.healths.name = "health"
|
|
mymob.healths.screen_loc = ui_construct_health
|
|
infodisplay += mymob.healths
|
|
|
|
/datum/hud/construct/wraith/New(mob/owner)
|
|
..()
|
|
mymob.healths = new /atom/movable/screen()
|
|
mymob.healths.icon = 'icons/mob/screen_construct.dmi'
|
|
mymob.healths.icon_state = "wraith_health0"
|
|
mymob.healths.name = "health"
|
|
mymob.healths.screen_loc = ui_construct_health
|
|
infodisplay += mymob.healths
|
|
|
|
|
|
/datum/hud/construct/harvester/New(mob/owner)
|
|
..()
|
|
mymob.healths = new /atom/movable/screen()
|
|
mymob.healths.icon = 'icons/mob/screen_construct.dmi'
|
|
mymob.healths.icon_state = "harvester_health0"
|
|
mymob.healths.name = "health"
|
|
mymob.healths.screen_loc = ui_construct_health
|
|
infodisplay += mymob.healths
|
|
|
|
/datum/hud/construct/New(mob/owner)
|
|
..()
|
|
mymob.pullin = new /atom/movable/screen/pull()
|
|
mymob.pullin.icon = 'icons/mob/screen_construct.dmi'
|
|
mymob.pullin.icon_state = "pull0"
|
|
mymob.pullin.name = "pull"
|
|
mymob.pullin.screen_loc = ui_construct_pull
|
|
var/atom/movable/screen/using
|
|
using = new /atom/movable/screen/act_intent/simple_animal()
|
|
using.icon_state = mymob.a_intent
|
|
static_inventory += using
|
|
action_intent = using
|