Adds "Highlights" to the Orbit menu (#19168)

* adds highlights

* comment update

* misc support

* weird spacing begone

* requested changes
This commit is contained in:
Contrabang
2022-10-03 19:02:04 -05:00
committed by GitHub
parent 61c4d66f16
commit 0fbfa2ca0d
4 changed files with 27 additions and 3 deletions
+10 -1
View File
@@ -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