Skip to content

Commit

Permalink
MinorCommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Steelpoint committed Sep 29, 2023
1 parent 919b1c9 commit f7a65bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions code/modules/cm_marines/radar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,20 @@
if(!trackable(humanoid))
continue
var/crewmember_name = "Unknown"
var/crewmember_rank = "Unknown"
if(humanoid.wear_id)
var/obj/item/card/id/ID = humanoid.wear_id.GetID()
if(ID?.registered_name)
crewmember_name = ID.registered_name
if(ID?.assignment)
crewmember_rank = ID.assignment
switch(humanoid.stat)
if(CONSCIOUS)
crewmember_name = "[crewmember_name] (Conscious)"
crewmember_name = "[crewmember_name] ([crewmember_rank]) (Conscious)"
if(UNCONSCIOUS)
crewmember_name = "[crewmember_name] (Unconscious)"
crewmember_name = "[crewmember_name] ([crewmember_rank]) (Unconscious)"
if(DEAD)
crewmember_name = "[crewmember_name] (DEAD)"
crewmember_name = "[crewmember_name] ([crewmember_rank]) (DEAD)"
var/list/crewinfo = list(
ref = REF(humanoid),
name = crewmember_name,
Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui/interfaces/Radar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Target = {

export const Radar = (props, context) => {
return (
<Window width={800} height={600} theme="ntos">
<Window width={965} height={600} theme="ntos">
<Window.Content scrollable>
<RadarContent />
</Window.Content>
Expand All @@ -40,7 +40,7 @@ export const Radar = (props, context) => {
export const RadarContent = (props, context) => {
return (
<Stack fill>
<Stack.Item position="relative" width={20.5}>
<Stack.Item position="relative" width={35}>
<ObjectDisplay />
</Stack.Item>
<Stack.Item
Expand Down

0 comments on commit f7a65bc

Please sign in to comment.