mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 13:30:30 -07:00
Started organizing CS2/Protocol-related functions
This commit is contained in:
parent
46740027df
commit
ef6a5d7385
268 changed files with 5936 additions and 6093 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
|
||||
public class MusicPlayer {
|
||||
|
|
@ -5,4 +6,22 @@ public class MusicPlayer {
|
|||
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