mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Response teams now show up in the orbit menu (#21574)
* init changes * TGUI compiled * Update code/modules/mob/dead/observer/orbit.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> * compiles again + reviews * tgui update --------- Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
|
||||
var/list/alive = list()
|
||||
var/list/highlights = list()
|
||||
var/list/response_teams = list()
|
||||
var/list/antagonists = list()
|
||||
var/list/dead = list()
|
||||
var/list/ghosts = list()
|
||||
@@ -79,6 +80,9 @@
|
||||
alive += list(serialized)
|
||||
|
||||
var/datum/mind/mind = M.mind
|
||||
if(mind.special_role in list(SPECIAL_ROLE_ERT, SPECIAL_ROLE_DEATHSQUAD, SPECIAL_ROLE_SYNDICATE_DEATHSQUAD))
|
||||
response_teams += list(serialized)
|
||||
|
||||
if(user.antagHUD)
|
||||
/*
|
||||
If a mind is many antags at once, we'll display all of them, each
|
||||
@@ -149,6 +153,7 @@
|
||||
|
||||
data["antagonists"] = antagonists
|
||||
data["highlights"] = highlights
|
||||
data["response_teams"] = response_teams
|
||||
data["alive"] = alive
|
||||
data["dead"] = dead
|
||||
data["ghosts"] = ghosts
|
||||
|
||||
@@ -89,7 +89,7 @@ const OrbitedButton = (props, context) => {
|
||||
|
||||
export const Orbit = (props, context) => {
|
||||
const { act, data } = useBackend(context);
|
||||
const { alive, antagonists, highlights, auto_observe, dead, ghosts, misc, npcs } = data;
|
||||
const { alive, antagonists, highlights, response_teams, auto_observe, dead, ghosts, misc, npcs } = data;
|
||||
|
||||
const [searchText, setSearchText] = useLocalState(context, 'searchText', '');
|
||||
|
||||
@@ -180,7 +180,14 @@ export const Orbit = (props, context) => {
|
||||
searchText={searchText}
|
||||
color={'teal'}
|
||||
/>
|
||||
)}
|
||||
)}
|
||||
|
||||
<BasicSection
|
||||
title="Response Teams"
|
||||
source={response_teams}
|
||||
searchText={searchText}
|
||||
color={'purple'}
|
||||
/>
|
||||
|
||||
<BasicSection
|
||||
title="Alive"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user