mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 13:30:30 -07:00
Moved source to rt4 package so external code can depend on it
This commit is contained in:
parent
dc6deb9151
commit
153d8569b5
624 changed files with 1253 additions and 7 deletions
|
|
@ -1,27 +0,0 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
|
||||
public class MusicPlayer {
|
||||
@OriginalMember(owner = "client!s", name = "c", descriptor = "I")
|
||||
public static int groupId = -1;
|
||||
@OriginalMember(owner = "client!uf", name = "m", descriptor = "I")
|
||||
public static int titleSong;
|
||||
|
||||
@OriginalMember(owner = "client!li", name = "a", descriptor = "(ZI)V")
|
||||
public static void playSong(@OriginalArg(1) int arg0) {
|
||||
if (arg0 == -1 && !MidiPlayer.jingle) {
|
||||
Static241.method4548();
|
||||
} else if (arg0 != -1 && (groupId != arg0 || !Static136.method2655()) && Preferences.musicVolume != 0 && !MidiPlayer.jingle) {
|
||||
MidiPlayer.playFadeOut(arg0, client.js5Archive6, Preferences.musicVolume);
|
||||
}
|
||||
groupId = arg0;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!wj", name = "a", descriptor = "(IIB)V")
|
||||
public static void playJingle(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1) {
|
||||
if (Preferences.musicVolume != 0 && arg1 != -1) {
|
||||
Static122.method2410(client.js5Archive11, arg1, Preferences.musicVolume);
|
||||
MidiPlayer.jingle = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue