Skip to content

Commit

Permalink
OK CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 7, 2023
1 parent 9e8f38a commit 9eeab0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/game/jobs/job/marine/squad_info.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"primary" = primary_objective,
"secondary" = secondary_objective,
)
data["squad_ref"] = REF(src)
data["partial_squad_ref"] = copytext(REF(src), 2, 12)
return data

/datum/squad/proc/get_leadership(mob/user)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/asset_cache/asset_list_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
background.Crop(25,25,32,32)
background.Scale(16,16)

Insert("squad-[REF(squad)]-hud-[iconref[1]]", background)
Insert("squad-[copytext(REF(squad), 2, 12)]-hud-[iconref[1]]", background)
return ..()

/datum/asset/spritesheet/vending_products
Expand Down
6 changes: 3 additions & 3 deletions tgui/packages/tgui/interfaces/SquadInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface SquadProps {
total_free: number;
user: { name: string; observer: number };
squad: string;
squad_ref: string;
partial_squad_ref: string;
squad_color: string;
is_lead: 'pltsgt' | 'SQ1' | 'SQ2' | 0;
objective: { primary?: string; secondary?: string };
Expand All @@ -59,7 +59,7 @@ const FireTeamLeadLabel = (props: { ftl: SquadMarineEntry }, context) => {
<span
className={classes([
'squadranks16x16',
`squad-${data.squad_ref}-hud-${ftl.rank}`,
`squad-${data.partial_squad_ref}-hud-${ftl.rank}`,
])}
/>
</Stack.Item>
Expand Down Expand Up @@ -225,7 +225,7 @@ const FireTeamMember = (
<span
className={classes([
'squadranks16x16',
`squad-${data.squad_ref}-hud-${props.member.rank}`,
`squad-${data.partial_squad_ref}-hud-${props.member.rank}`,
])}
/>
</TableCell>
Expand Down

0 comments on commit 9eeab0f

Please sign in to comment.