mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 23:48:28 +01:00
Adds "Highlights" to the Orbit menu (#19168)
* adds highlights * comment update * misc support * weird spacing begone * requested changes
This commit is contained in:
@@ -89,7 +89,7 @@ const OrbitedButton = (props, context) => {
|
||||
|
||||
export const Orbit = (props, context) => {
|
||||
const { act, data } = useBackend(context);
|
||||
const { alive, antagonists, auto_observe, dead, ghosts, misc, npcs } = data;
|
||||
const { alive, antagonists, highlights, auto_observe, dead, ghosts, misc, npcs } = data;
|
||||
|
||||
const [searchText, setSearchText] = useLocalState(context, 'searchText', '');
|
||||
|
||||
@@ -109,6 +109,7 @@ export const Orbit = (props, context) => {
|
||||
const orbitMostRelevant = (searchText) => {
|
||||
for (const source of [
|
||||
sortedAntagonists.map(([_, antags]) => antags),
|
||||
highlights,
|
||||
alive,
|
||||
ghosts,
|
||||
dead,
|
||||
@@ -172,6 +173,14 @@ export const Orbit = (props, context) => {
|
||||
))}
|
||||
</Section>
|
||||
)}
|
||||
{highlights.length > 0 && (
|
||||
<BasicSection
|
||||
title="Highlights"
|
||||
source={highlights}
|
||||
searchText={searchText}
|
||||
color={'teal'}
|
||||
/>
|
||||
)}
|
||||
|
||||
<BasicSection
|
||||
title="Alive"
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user