mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 14:16:58 +01:00
[MIRROR] Port tg statpanel (#9242)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
co-authored by
ShadowLarkens
Kashargul
parent
e68994c99d
commit
4d9879937f
@@ -79,36 +79,3 @@
|
||||
last_special = world.time + 2 SECONDS // Antispam.
|
||||
create_new_area(usr)
|
||||
return
|
||||
|
||||
/mob/living/carbon/human/update_misc_tabs()
|
||||
..()
|
||||
if(species)
|
||||
species.update_misc_tabs(src)
|
||||
|
||||
if(istype(back,/obj/item/rig))
|
||||
var/obj/item/rig/R = back
|
||||
RigPanel(R)
|
||||
|
||||
else if(istype(belt,/obj/item/rig))
|
||||
var/obj/item/rig/R = belt
|
||||
RigPanel(R)
|
||||
|
||||
/mob/proc/RigPanel(var/obj/item/rig/R)
|
||||
if(R && !R.canremove && R.installed_modules.len)
|
||||
var/list/L = list()
|
||||
var/cell_status = R.cell ? "[R.cell.charge]/[R.cell.maxcharge]" : "ERROR"
|
||||
L[++L.len] = list("Suit charge: [cell_status]", null, null, null, null)
|
||||
for(var/obj/item/rig_module/module in R.installed_modules)
|
||||
{
|
||||
for(var/stat_rig_module/SRM in module.stat_modules)
|
||||
if(SRM.CanUse())
|
||||
L[++L.len] = list(SRM.module.interface_name,null,null,SRM.name,REF(SRM))
|
||||
}
|
||||
misc_tabs["Hardsuit Modules"] = L
|
||||
|
||||
/mob/living/update_misc_tabs()
|
||||
..()
|
||||
if(get_rig_stats)
|
||||
var/obj/item/rig/rig = get_rig()
|
||||
if(rig)
|
||||
RigPanel(rig)
|
||||
|
||||
@@ -48,6 +48,3 @@
|
||||
for(var/datum/trait/env_trait in env_traits)
|
||||
env_trait.handle_environment_special(H)
|
||||
return
|
||||
|
||||
/datum/species/proc/update_misc_tabs(var/mob/living/carbon/human/H)
|
||||
return
|
||||
|
||||
-2
@@ -186,12 +186,10 @@
|
||||
fulllist |= global._human_default_emotes //they're living nanites, they can make whatever sounds they want
|
||||
return fulllist
|
||||
|
||||
//ChompEDIT START - TGPanel
|
||||
/mob/living/simple_mob/protean_blob/update_misc_tabs()
|
||||
. = ..()
|
||||
if(humanform)
|
||||
humanform.species.update_misc_tabs(src)
|
||||
//ChompEDIT END
|
||||
|
||||
/mob/living/simple_mob/protean_blob/updatehealth()
|
||||
if(humanform.nano_dead_check(src))
|
||||
|
||||
@@ -4,11 +4,6 @@
|
||||
var/enabled = TRUE //Pauses a mob if disabled (Prevents life ticks from happening)
|
||||
var/died_in_vr = FALSE //For virtual reality sleepers
|
||||
var/last_move_time = 0 //For movement smoothing
|
||||
/// dict of custom stat tabs with data
|
||||
var/list/list/misc_tabs = list()
|
||||
|
||||
/mob/proc/update_misc_tabs()
|
||||
misc_tabs = list() //Reset misc_tabs every Stat() to prevent old shit sticking around
|
||||
|
||||
/mob/is_incorporeal()
|
||||
if(incorporeal_move)
|
||||
|
||||
Reference in New Issue
Block a user