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>
<!-- high-value scans -->
<div class="container-fluid" id="highValueScans">
</div>
<!-- low-value scans -->
<div class="container-fluid" id="lowValueScans">
<!-- scans -->
<div class="container-fluid" id="scans">
</div>

View file

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

View file

@ -10,8 +10,7 @@ export class UI {
/* --------------------------------------------------------------------- enterWitchSpace ---- */
static enterWitchSpace() {
$('#highValueScans').children().remove()
$('#lowValueScans').children().remove()
$('#scans').children().remove()
$('#currentSystem').removeClass('charted').addClass('highlighted text-center')
$('#currentSystemIcon').addClass('hidden')
@ -22,8 +21,7 @@ export class UI {
/* -------------------------------------------------------------------- setCurrentSystem ---- */
static setCurrentSystem(system) {
$('#highValueScans').children().remove()
$('#lowValueScans').children().remove()
$('#acans').children().remove()
$('#currentSystem').children().remove()
let row
@ -87,6 +85,7 @@ export class UI {
static createBodyRow(body) {
const chartedStyle = body.WasDiscovered && !body.DSSDone ? 'charted' : 'uncharted'
// TODO USER SETTINGS
const valuableStyle = body.mappedValue > 2000 ? 'highlighted' : ''
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) => {
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')
} else {
const row = UI.createBodyRow(body)
// TODO APPRAISAL DATA
$('#lowValueScans').appendChild(row)
$('#scans').appendChild(row)
}
} else { // else it's an FSS/auto scan and won't be in the list yet
const row = UI.createBodyRow(body)
// TODO APPRAISAL DATA
$('#lowValueScans').appendChild(row)
$('#scans').appendChild(row)
}
})