Remove seperation of high-value/low-value scans.

This commit is contained in:
punkfairie 2023-05-12 19:53:16 -07:00
parent 7dd350d1ff
commit 023b9add6b
4 changed files with 10 additions and 18 deletions

View file

@ -32,13 +32,8 @@
</div> </div>
<!-- high-value scans --> <!-- scans -->
<div class="container-fluid" id="highValueScans"> <div class="container-fluid" id="scans">
</div>
<!-- low-value scans -->
<div class="container-fluid" id="lowValueScans">
</div> </div>

View file

@ -71,7 +71,7 @@ export class System {
/* -------------------------------------------------------------------------- sortBodies ---- */ /* -------------------------------------------------------------------------- sortBodies ---- */
sortBodies() { sortBodies(): void {
this.bodies = _.orderBy(this.bodies, ['mappedValue'], ['desc']) this.bodies = _.orderBy(this.bodies, ['mappedValue'], ['desc'])
} }
} }

View file

@ -10,8 +10,7 @@ export class UI {
/* --------------------------------------------------------------------- enterWitchSpace ---- */ /* --------------------------------------------------------------------- enterWitchSpace ---- */
static enterWitchSpace() { static enterWitchSpace() {
$('#highValueScans').children().remove() $('#scans').children().remove()
$('#lowValueScans').children().remove()
$('#currentSystem').removeClass('charted').addClass('highlighted text-center') $('#currentSystem').removeClass('charted').addClass('highlighted text-center')
$('#currentSystemIcon').addClass('hidden') $('#currentSystemIcon').addClass('hidden')
@ -22,8 +21,7 @@ export class UI {
/* -------------------------------------------------------------------- setCurrentSystem ---- */ /* -------------------------------------------------------------------- setCurrentSystem ---- */
static setCurrentSystem(system) { static setCurrentSystem(system) {
$('#highValueScans').children().remove() $('#acans').children().remove()
$('#lowValueScans').children().remove()
$('#currentSystem').children().remove() $('#currentSystem').children().remove()
let row let row
@ -87,6 +85,7 @@ export class UI {
static createBodyRow(body) { static createBodyRow(body) {
const chartedStyle = body.WasDiscovered && !body.DSSDone ? 'charted' : 'uncharted' const chartedStyle = body.WasDiscovered && !body.DSSDone ? 'charted' : 'uncharted'
// TODO USER SETTINGS
const valuableStyle = body.mappedValue > 2000 ? 'highlighted' : '' const valuableStyle = body.mappedValue > 2000 ? 'highlighted' : ''
const row = $('<div>').addClass('row ms-1 me-1') const row = $('<div>').addClass('row ms-1 me-1')

View file

@ -66,8 +66,8 @@ journal.once('BUILD_BODY_LIST', () => {
journal.location.bodies.forEach((body) => { journal.location.bodies.forEach((body) => {
const row = UI.createBodyRow(body) const row = UI.createBodyRow(body)
// TODO APPRAISAL DATA
$('#lowValueScans').appendChild(row) $('#scans').appendChild(row)
}) })
} }
}) })
@ -103,14 +103,12 @@ journal.on('BODY_SCANNED', (body, DSS) => {
bodyRow.removeClass('highlighted uncharted').addClass('charted') bodyRow.removeClass('highlighted uncharted').addClass('charted')
} else { } else {
const row = UI.createBodyRow(body) const row = UI.createBodyRow(body)
// TODO APPRAISAL DATA $('#scans').appendChild(row)
$('#lowValueScans').appendChild(row)
} }
} else { // else it's an FSS/auto scan and won't be in the list yet } else { // else it's an FSS/auto scan and won't be in the list yet
const row = UI.createBodyRow(body) const row = UI.createBodyRow(body)
// TODO APPRAISAL DATA $('#scans').appendChild(row)
$('#lowValueScans').appendChild(row)
} }
}) })