Updated difficulty icons

This commit is contained in:
Geomitron
2021-04-12 12:31:51 -05:00
parent 478e5fa4b4
commit bee98b05d9
11 changed files with 9 additions and 17 deletions

View File

@@ -156,11 +156,13 @@ export class ChartSidebarComponent implements OnInit {
const instruments = Object.keys(this.selectedVersion.chartData.noteCounts) as Instrument[]
this.difficultiesList = []
for (const instrument of instruments) {
this.difficultiesList.push({
instrument: getInstrumentIcon(instrument),
diffNumber: this.getDiffNumber(instrument),
chartedDifficulties: this.getChartedDifficultiesText(instrument)
})
if (instrument != 'undefined') {
this.difficultiesList.push({
instrument: getInstrumentIcon(instrument),
diffNumber: this.getDiffNumber(instrument),
chartedDifficulties: this.getChartedDifficultiesText(instrument)
})
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -1 +0,0 @@
<svg fill="#000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" style="shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;" viewBox="0 0 1000 1000" x="0px" y="0px" fill-rule="evenodd" clip-rule="evenodd"><g transform="translate(75 100)"><path full="#fff" class="fil0" d="M164 131c-48,-13 -82,-88 -38,-119 44,-32 104,24 101,74 93,125 149,200 196,264 48,-64 103,-139 197,-264 -4,-50 57,-106 101,-74 44,31 10,106 -38,119 -58,83 -130,187 -205,294 58,78 123,166 254,342 37,51 -46,107 -81,58 -65,-89 -146,-204 -228,-322 -82,118 -163,233 -227,322 -36,49 -118,-7 -81,-58 131,-176 196,-264 253,-342 -74,-107 -146,-211 -204,-294zm241 346l-19 -27 -248 334c-13,19 21,43 34,25l233 -332zm36 -102l18 24 201 -286c2,-5 6,-8 12,-9 28,-5 54,-53 32,-69 -23,-16 -60,24 -55,53 1,4 -1,9 -4,12l-204 275zm233 434c14,18 48,-6 34,-25l-506 -684c-3,-3 -5,-8 -4,-12 5,-29 -32,-69 -55,-53 -22,16 3,64 32,69 5,1 10,4 12,9l487 696z"></path></g></svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -93,18 +93,9 @@ export interface ChartData {
effectiveLength: number
}
export type Instrument = 'guitar' | 'bass' | 'rhythm' | 'keys' | 'drums' | 'guitarghl' | 'bassghl' | 'vocals'
export type Instrument = 'guitar' | 'bass' | 'rhythm' | 'keys' | 'drums' | 'guitarghl' | 'bassghl' | 'vocals' | 'undefined'
export type ChartedDifficulty = 'x' | 'h' | 'm' | 'e'
export function getInstrumentIcon(instrument: Instrument) {
switch(instrument) {
case 'guitar': return 'guitar.png'
case 'bass': return 'bass.png'
case 'rhythm': return 'guitar.png' // TODO: get unique icon
case 'keys': return 'keys.png'
case 'drums': return 'drums.svg'
case 'guitarghl': return 'guitarghl.png'
case 'bassghl': return 'bassghl.png'
case 'vocals': return 'guitar.png' // TODO: get unique icon
}
return `${instrument}.png`
}