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

@@ -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`
}