Re-enable instruments with fallback when MIDI isn't available.

This commit is contained in:
Pieter-Jan Briers
2020-03-30 18:36:58 +02:00
parent ebe5ffe33e
commit ff36b2dcc7
3 changed files with 152 additions and 96 deletions

View File

@@ -1,70 +1,70 @@
# - type: entity
# name: BaseInstrument
# id: BaseInstrument
# abstract: true
# components:
# - type: Instrument
# handheld: false
#
# - type: Clickable
# - type: InteractionOutline
#
# - type: Collidable
# shapes:
# - !type:PhysShapeAabb
# layer: 31
#
# - type: SnapGrid
# offset: Center
#
# - type: Damageable
# - type: Destructible
# thresholdvalue: 50
#
# - type: UserInterface
# interfaces:
# - key: enum.InstrumentUiKey.Key
# type: InstrumentBoundUserInterface
#
# - type: entity
# name: Piano
# parent: BaseInstrument
# id: PianoInstrument
# description: Play Needles Piano Now.
# components:
# - type: Instrument
# program: 1
# - type: Sprite
# sprite: Objects/Instruments/musician.rsi
# state: piano
# - type: Icon
# sprite: Objects/Instruments/musician.rsi
# state: piano
#
# - type: entity
# name: Minimoog
# parent: BaseInstrument
# id: MinimoogInstrument
# components:
# - type: Instrument
# program: 7
# - type: Sprite
# sprite: Objects/Instruments/musician.rsi
# state: minimoog
# - type: Icon
# sprite: Objects/Instruments/musician.rsi
# state: minimoog
#
# - type: entity
# name: Xylophone
# parent: BaseInstrument
# id: XylophoneInstrument
# components:
# - type: Instrument
# program: 13
# - type: Sprite
# sprite: Objects/Instruments/musician.rsi
# state: xylophone
# - type: Icon
# sprite: Objects/Instruments/musician.rsi
# state: xylophone
- type: entity
name: BaseInstrument
id: BaseInstrument
abstract: true
components:
- type: Instrument
handheld: false
- type: Clickable
- type: InteractionOutline
- type: Collidable
shapes:
- !type:PhysShapeAabb
layer: 31
- type: SnapGrid
offset: Center
- type: Damageable
- type: Destructible
thresholdvalue: 50
- type: UserInterface
interfaces:
- key: enum.InstrumentUiKey.Key
type: InstrumentBoundUserInterface
- type: entity
name: Piano
parent: BaseInstrument
id: PianoInstrument
description: Play Needles Piano Now.
components:
- type: Instrument
program: 1
- type: Sprite
sprite: Objects/Instruments/musician.rsi
state: piano
- type: Icon
sprite: Objects/Instruments/musician.rsi
state: piano
- type: entity
name: Minimoog
parent: BaseInstrument
id: MinimoogInstrument
components:
- type: Instrument
program: 7
- type: Sprite
sprite: Objects/Instruments/musician.rsi
state: minimoog
- type: Icon
sprite: Objects/Instruments/musician.rsi
state: minimoog
- type: entity
name: Xylophone
parent: BaseInstrument
id: XylophoneInstrument
components:
- type: Instrument
program: 13
- type: Sprite
sprite: Objects/Instruments/musician.rsi
state: xylophone
- type: Icon
sprite: Objects/Instruments/musician.rsi
state: xylophone