fix bank loader (DMX), add new press sound
This commit is contained in:
parent
ceda16246c
commit
9683b18337
5 changed files with 5 additions and 3 deletions
|
@ -2878,7 +2878,7 @@ public class Client implements IThreadListener {
|
|||
if(func != null) {
|
||||
Bind.disableInput(key);
|
||||
if(!(this.open instanceof GuiLoading)) {
|
||||
this.soundManager.playSound(new PositionedSound(SoundEvent.CLICK, EventType.UI_INTERFACE));
|
||||
this.soundManager.playSound(new PositionedSound(SoundEvent.PRESS, EventType.UI_INTERFACE));
|
||||
func.runner.execute(key);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ typedef struct {
|
|||
int[] fb = new int[2];
|
||||
int algo = op2x2 ? 0x08 : 0x00;
|
||||
for(int ch = 0; ch < (op2x2 ? 2 : 1); ch++) {
|
||||
int transpose = (int)dmx_read_uint16(data, offset + 14) + 12;
|
||||
int transpose = (int)((short)dmx_read_uint16(data, offset + 14)) + 12;
|
||||
for(int op = 0; op < 2; op++) {
|
||||
boolean tremolo = (data[offset + op*7+0] & 0x80) != 0;
|
||||
boolean vibrato = (data[offset + op*7+0] & 0x40) != 0;
|
||||
|
|
|
@ -267,6 +267,6 @@ public abstract class Element {
|
|||
}
|
||||
|
||||
public void playSound() {
|
||||
this.gm.getSoundManager().playSound(new PositionedSound(SoundEvent.CLICK, EventType.UI_INTERFACE));
|
||||
this.gm.getSoundManager().playSound(new PositionedSound(SoundEvent.PRESS, EventType.UI_INTERFACE));
|
||||
}
|
||||
}
|
||||
|
|
BIN
client/src/main/resources/sounds/press.ogg
Normal file
BIN
client/src/main/resources/sounds/press.ogg
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue