mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Adds a UI indicator for blob overminds.
This unfortunately necessitated the addition of a mob/camera/blob/Life(), but I think that the added ease-of-use is worth it.
This commit is contained in:
+4
-1
@@ -166,6 +166,7 @@ var/datum/global_hud/global_hud = new()
|
||||
var/show_intent_icons = 0
|
||||
var/hotkey_ui_hidden = 0 //This is to hide the buttons that can be used via hotkeys. (hotkeybuttons list of buttons)
|
||||
|
||||
var/obj/screen/blobdisplay
|
||||
var/obj/screen/r_hand_hud_object
|
||||
var/obj/screen/l_hand_hud_object
|
||||
var/obj/screen/action_intent
|
||||
@@ -257,4 +258,6 @@ datum/hud/New(mob/owner)
|
||||
else if(isrobot(mymob))
|
||||
robot_hud()
|
||||
else if(isobserver(mymob))
|
||||
ghost_hud()
|
||||
ghost_hud()
|
||||
else if(isovermind(mymob))
|
||||
blob_hud()
|
||||
@@ -0,0 +1,11 @@
|
||||
/datum/hud/proc/blob_hud(ui_style = 'icons/mob/screen_midnight.dmi')
|
||||
|
||||
blobdisplay = new /obj/screen()
|
||||
blobdisplay.name = "blob power display"
|
||||
blobdisplay.icon_state = "block"
|
||||
blobdisplay.screen_loc = ui_nutrition
|
||||
blobdisplay.layer = 20
|
||||
|
||||
mymob.client.screen = null
|
||||
|
||||
mymob.client.screen += list(blobdisplay)
|
||||
@@ -21,6 +21,10 @@
|
||||
real_name = new_name
|
||||
..()
|
||||
|
||||
mob/camera/blob/Life()
|
||||
hud_used.blobdisplay.maptext = "<div align='center' valign='middle' style='position:relative; top:0px; left:6px'> <font color='#82ed00'>[src.blob_points]</font></div>"
|
||||
return
|
||||
|
||||
/mob/camera/blob/say(var/message)
|
||||
return//No talking for you
|
||||
|
||||
|
||||
@@ -115,6 +115,11 @@ proc/isobserver(A)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
proc/isovermind(A)
|
||||
if(istype(A, /mob/camera/blob))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
proc/isorgan(A)
|
||||
if(istype(A, /datum/limb))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user