rsclient: rev 191
This commit is contained in:
@@ -1,155 +1,133 @@
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("ke")
|
||||
@ObfuscatedName("kz")
|
||||
@Implements("FontName")
|
||||
public class FontName {
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lke;"
|
||||
descriptor = "Lkz;"
|
||||
)
|
||||
@Export("FontName_plain11")
|
||||
public static final FontName FontName_plain11;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lke;"
|
||||
descriptor = "Lkz;"
|
||||
)
|
||||
@Export("FontName_plain12")
|
||||
public static final FontName FontName_plain12;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lke;"
|
||||
descriptor = "Lkz;"
|
||||
)
|
||||
@Export("FontName_bold12")
|
||||
public static final FontName FontName_bold12;
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lke;"
|
||||
descriptor = "Lkz;"
|
||||
)
|
||||
@Export("FontName_verdana11")
|
||||
public static final FontName FontName_verdana11;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lke;"
|
||||
descriptor = "Lkz;"
|
||||
)
|
||||
@Export("FontName_verdana13")
|
||||
public static final FontName FontName_verdana13;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lke;"
|
||||
descriptor = "Lkz;"
|
||||
)
|
||||
@Export("FontName_verdana15")
|
||||
public static final FontName FontName_verdana15;
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 334630663
|
||||
)
|
||||
@Export("clientTickTimeIdx")
|
||||
static int clientTickTimeIdx;
|
||||
@ObfuscatedName("eo")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Liw;"
|
||||
)
|
||||
@Export("archive20")
|
||||
static Archive archive20;
|
||||
@ObfuscatedName("gg")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Llp;"
|
||||
)
|
||||
@Export("redHintArrowSprite")
|
||||
static Sprite redHintArrowSprite;
|
||||
@ObfuscatedName("x")
|
||||
@Export("name")
|
||||
String name;
|
||||
|
||||
static {
|
||||
FontName_plain11 = new FontName("p11_full");
|
||||
FontName_plain12 = new FontName("p12_full");
|
||||
FontName_bold12 = new FontName("b12_full");
|
||||
FontName_verdana11 = new FontName("verdana_11pt_regular");
|
||||
FontName_verdana13 = new FontName("verdana_13pt_regular");
|
||||
FontName_verdana15 = new FontName("verdana_15pt_regular");
|
||||
FontName_plain11 = new FontName("p11_full"); // L: 7
|
||||
FontName_plain12 = new FontName("p12_full"); // L: 8
|
||||
FontName_bold12 = new FontName("b12_full"); // L: 9
|
||||
FontName_verdana11 = new FontName("verdana_11pt_regular"); // L: 10
|
||||
FontName_verdana13 = new FontName("verdana_13pt_regular"); // L: 11
|
||||
FontName_verdana15 = new FontName("verdana_15pt_regular"); // L: 12
|
||||
}
|
||||
|
||||
FontName(String var1) {
|
||||
this.name = var1;
|
||||
this.name = var1; // L: 20
|
||||
} // L: 21
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)[Lkz;",
|
||||
garbageValue = "1417653903"
|
||||
)
|
||||
public static FontName[] method5439() {
|
||||
return new FontName[]{FontName_verdana13, FontName_verdana15, FontName_verdana11, FontName_plain12, FontName_plain11, FontName_bold12}; // L: 16
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Lch;",
|
||||
garbageValue = "-18"
|
||||
descriptor = "(Ljava/lang/String;II)Z",
|
||||
garbageValue = "-1097380872"
|
||||
)
|
||||
@Export("worldListStart")
|
||||
static World worldListStart() {
|
||||
World.World_listCount = 0;
|
||||
return class3.getNextWorldListWorld();
|
||||
static boolean method5444(String var0, int var1) {
|
||||
return WorldMapIcon_1.method380(var0, var1, "openjs"); // L: 57
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lhd;II)V",
|
||||
garbageValue = "1462159307"
|
||||
descriptor = "(Ljava/lang/CharSequence;I)Ljava/lang/String;",
|
||||
garbageValue = "1161805725"
|
||||
)
|
||||
@Export("Widget_setKeyIgnoreHeld")
|
||||
static final void Widget_setKeyIgnoreHeld(Widget var0, int var1) {
|
||||
if (var0.field2647 == null) {
|
||||
throw new RuntimeException();
|
||||
public static String method5445(CharSequence var0) {
|
||||
return ScriptEvent.method1236('*', var0.length()); // L: 179
|
||||
}
|
||||
|
||||
@ObfuscatedName("fo")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)V",
|
||||
garbageValue = "1773491987"
|
||||
)
|
||||
@Export("setWindowedMode")
|
||||
static void setWindowedMode(int var0) {
|
||||
Client.field890 = 0L; // L: 3866
|
||||
if (var0 >= 2) { // L: 3867
|
||||
Client.isResizable = true;
|
||||
} else {
|
||||
if (var0.field2723 == null) {
|
||||
var0.field2723 = new int[var0.field2647.length];
|
||||
}
|
||||
|
||||
var0.field2723[var1] = Integer.MAX_VALUE;
|
||||
Client.isResizable = false; // L: 3868
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("ae")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lfm;III)Ldt;",
|
||||
garbageValue = "273987431"
|
||||
)
|
||||
public static final PcmPlayer method5519(TaskHandler var0, int var1, int var2) {
|
||||
if (class237.field3113 == 0) {
|
||||
throw new IllegalStateException();
|
||||
} else if (var1 >= 0 && var1 < 2) {
|
||||
if (var2 < 256) {
|
||||
var2 = 256;
|
||||
}
|
||||
|
||||
try {
|
||||
PcmPlayer var3 = HealthBarUpdate.pcmPlayerProvider.player();
|
||||
var3.samples = new int[256 * (Messages.PcmPlayer_stereo ? 2 : 1)];
|
||||
var3.field1443 = var2;
|
||||
var3.init();
|
||||
var3.capacity = (var2 & -1024) + 1024;
|
||||
if (var3.capacity > 16384) {
|
||||
var3.capacity = 16384;
|
||||
}
|
||||
|
||||
var3.open(var3.capacity);
|
||||
if (UserComparator3.field2009 > 0 && PcmPlayer.soundSystem == null) {
|
||||
PcmPlayer.soundSystem = new SoundSystem();
|
||||
class227.soundSystemExecutor = Executors.newScheduledThreadPool(1);
|
||||
class227.soundSystemExecutor.scheduleAtFixedRate(PcmPlayer.soundSystem, 0L, 10L, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
if (PcmPlayer.soundSystem != null) {
|
||||
if (PcmPlayer.soundSystem.players[var1] != null) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
|
||||
PcmPlayer.soundSystem.players[var1] = var3;
|
||||
}
|
||||
|
||||
return var3;
|
||||
} catch (Throwable var4) {
|
||||
return new PcmPlayer();
|
||||
}
|
||||
if (class39.getWindowedMode() == 1) { // L: 3869
|
||||
class2.client.setMaxCanvasSize(765, 503); // L: 3870
|
||||
} else {
|
||||
throw new IllegalArgumentException();
|
||||
class2.client.setMaxCanvasSize(7680, 2160); // L: 3873
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hk")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "1542752856"
|
||||
)
|
||||
@Export("addCancelMenuEntry")
|
||||
static void addCancelMenuEntry() {
|
||||
Client.menuOptionsCount = 0;
|
||||
Client.isMenuOpen = false;
|
||||
Client.menuActions[0] = "Cancel";
|
||||
Client.menuTargets[0] = "";
|
||||
Client.menuOpcodes[0] = 1006;
|
||||
Client.menuShiftClick[0] = false;
|
||||
Client.menuOptionsCount = 1;
|
||||
}
|
||||
if (Client.gameState >= 25) { // L: 3875
|
||||
GrandExchangeEvent.method160();
|
||||
}
|
||||
|
||||
} // L: 3876
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user