This commit is contained in:
SandPoot
2023-08-04 00:11:08 -03:00
parent c317c8b8fc
commit 403c49afab
4 changed files with 29 additions and 1 deletions

View File

@@ -587,3 +587,10 @@
// blended_color = "#2eeb9a"
// pre_asset.Blend(blended_color, ICON_MULTIPLY)
// return pre_asset
/datum/asset/spritesheet/jobs
name = "jobs"
/datum/asset/spritesheet/jobs/register()
InsertAll("", 'icons/UI_Icons/tgui/jobs.dmi')
..()

View File

@@ -90,6 +90,14 @@
antagonists += list(serialized)
break
var/assignment = "no_id"
var/obj/item/card/id/card = M.get_idcard()
if(card)
assignment = "[ckey(card.get_job_name())]"
serialized["assignment"] = assignment
if (!was_antagonist)
alive += list(serialized)
else
@@ -107,4 +115,4 @@
/datum/orbit_menu/ui_assets()
. = ..() || list()
. += get_asset_datum(/datum/asset/simple/orbit)
. += get_asset_datum(/datum/asset/spritesheet/jobs)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,3 +1,4 @@
import { classes } from 'common/react';
import { createSearch } from 'common/string';
import { multiline } from 'common/string';
import { resolveAsset } from '../assets';
@@ -62,6 +63,18 @@ const OrbitedButton = (props, context) => {
onClick={() => act("orbit", {
ref: thing.ref,
})}>
{thing.assignment && (
<Box inline ml={1}>
<Box
className={classes([
'jobs8x8',
thing.assignment,
])}
style={{
transform: 'scale(1.5) translate(-50%, 0)',
}} />
</Box>
)}
{thing.name}
{thing.orbiters && (
<Box inline ml={1}>