rsclient: rev 191

This commit is contained in:
ThatGamerBlue
2020-08-26 21:11:23 +01:00
parent 106de31a9d
commit b6ea56781c
354 changed files with 61347 additions and 61083 deletions

View File

@@ -5,623 +5,259 @@ import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("ar")
@ObfuscatedName("aq")
@Implements("WorldMapLabel")
public class WorldMapLabel {
@ObfuscatedName("re")
@ObfuscatedName("do")
@ObfuscatedSignature(
descriptor = "Liw;"
)
@Export("archive5")
static Archive archive5;
@ObfuscatedName("gx")
@ObfuscatedGetter(
intValue = 1522349817
intValue = 2023281377
)
static int field275;
@ObfuscatedName("n")
static byte[][][] field269;
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "Lic;"
)
@Export("Widget_fontsArchive")
static AbstractArchive Widget_fontsArchive;
@ObfuscatedName("ek")
@ObfuscatedSignature(
descriptor = "Lig;"
)
@Export("archive15")
static Archive archive15;
@ObfuscatedName("ez")
@ObfuscatedGetter(
intValue = -1537954811
)
@Export("port3")
static int port3;
@ObfuscatedName("fm")
@ObfuscatedSignature(
descriptor = "Lko;"
)
@Export("fontPlain11")
static Font fontPlain11;
@ObfuscatedName("m")
@Export("baseY")
static int baseY;
@ObfuscatedName("z")
@Export("text")
String text;
@ObfuscatedName("o")
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = -1110407141
intValue = 1365255333
)
@Export("width")
int width;
@ObfuscatedName("q")
@ObfuscatedName("s")
@ObfuscatedGetter(
intValue = 1740933995
intValue = 2029280505
)
@Export("height")
int height;
@ObfuscatedName("j")
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "Lah;"
descriptor = "Lab;"
)
@Export("size")
WorldMapLabelSize size;
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;IILah;)V"
descriptor = "(Ljava/lang/String;IILab;)V"
)
WorldMapLabel(String var1, int var2, int var3, WorldMapLabelSize var4) {
this.text = var1;
this.width = var2;
this.height = var3;
this.size = var4;
}
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "578317705"
)
@Export("Widget_hasContinueOption")
public static boolean Widget_hasContinueOption(int var0) {
return (var0 & 1) != 0;
}
this.text = var1; // L: 10
this.width = var2; // L: 11
this.height = var3; // L: 12
this.size = var4; // L: 13
} // L: 14
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(Lbu;II)V",
garbageValue = "1472646677"
descriptor = "(ILcy;ZI)I",
garbageValue = "-1281997654"
)
@Export("runScript")
static void runScript(ScriptEvent var0, int var1) {
Object[] var2 = var0.args;
Script var3;
int var17;
if (ArchiveDiskActionHandler.isWorldMapEvent(var0.type)) {
WorldMapSection3.worldMapEvent = (WorldMapEvent)var2[0];
WorldMapElement var4 = Client.WorldMapElement_get(WorldMapSection3.worldMapEvent.mapElement);
var3 = class4.getWorldMapScript(var0.type, var4.objectId, var4.category);
static int method497(int var0, Script var1, boolean var2) {
int var4 = -1; // L: 548
Widget var3;
if (var0 >= 2000) { // L: 549
var0 -= 1000; // L: 550
var4 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 551
var3 = TileItem.getWidget(var4); // L: 552
} else {
var17 = (Integer)var2[0];
var3 = WorldMapSection0.getScript(var17);
var3 = var2 ? Canvas.field438 : class3.field12; // L: 554
}
if (var3 != null) {
UrlRequester.Interpreter_intStackSize = 0;
WorldMapEvent.Interpreter_stringStackSize = 0;
var17 = -1;
int[] var5 = var3.opcodes;
int[] var6 = var3.intOperands;
byte var7 = -1;
Interpreter.Interpreter_frameDepth = 0;
Interpreter.field1125 = false;
if (var0 == ScriptOpcodes.CC_SETSCROLLPOS) { // L: 555
Interpreter.Interpreter_intStackSize -= 2; // L: 556
var3.scrollX = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]; // L: 557
if (var3.scrollX > var3.scrollWidth - var3.width) { // L: 558
var3.scrollX = var3.scrollWidth - var3.width;
}
try {
int var10;
try {
Interpreter.Interpreter_intLocals = new int[var3.localIntCount];
int var8 = 0;
Interpreter.Interpreter_stringLocals = new String[var3.localStringCount];
int var9 = 0;
if (var3.scrollX < 0) { // L: 559
var3.scrollX = 0;
}
int var11;
String var18;
for (var10 = 1; var10 < var2.length; ++var10) {
if (var2[var10] instanceof Integer) {
var11 = (Integer)var2[var10];
if (var11 == -2147483647) {
var11 = var0.mouseX;
}
var3.scrollY = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]; // L: 560
if (var3.scrollY > var3.scrollHeight - var3.height) { // L: 561
var3.scrollY = var3.scrollHeight - var3.height;
}
if (var11 == -2147483646) {
var11 = var0.mouseY;
}
if (var3.scrollY < 0) { // L: 562
var3.scrollY = 0;
}
if (var11 == -2147483645) {
var11 = var0.widget != null ? var0.widget.id * 40459347 * 1532053467 : -1;
}
if (var11 == -2147483644) {
var11 = var0.opIndex;
}
if (var11 == -2147483643) {
var11 = var0.widget != null ? var0.widget.childIndex * 1593342751 * 94060767 : -1;
}
if (var11 == -2147483642) {
var11 = var0.dragTarget != null ? var0.dragTarget.id * 40459347 * 1532053467 : -1;
}
if (var11 == -2147483641) {
var11 = var0.dragTarget != null ? var0.dragTarget.childIndex * 1593342751 * 94060767 : -1;
}
if (var11 == -2147483640) {
var11 = var0.keyTyped;
}
if (var11 == -2147483639) {
var11 = var0.keyPressed;
}
Interpreter.Interpreter_intLocals[var8++] = var11;
} else if (var2[var10] instanceof String) {
var18 = (String)var2[var10];
if (var18.equals("event_opbase")) {
var18 = var0.targetName;
}
Interpreter.Interpreter_stringLocals[var9++] = var18;
}
}
var10 = 0;
Interpreter.field1132 = var0.field600;
while (true) {
++var10;
if (var10 > var1) {
throw new RuntimeException();
}
++var17;
int var29 = var5[var17];
int var20;
if (var29 >= 100) {
boolean var32;
if (var3.intOperands[var17] == 1) {
var32 = true;
} else {
var32 = false;
}
var20 = class307.method5650(var29, var3, var32);
switch(var20) {
case 0:
return;
case 1:
default:
break;
case 2:
throw new IllegalStateException();
}
} else if (var29 == 0) {
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = var6[var17];
} else if (var29 == ScriptOpcodes.GET_VARP) {
var11 = var6[var17];
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = Varps.Varps_main[var11];
} else if (var29 == ScriptOpcodes.SET_VARP) {
var11 = var6[var17];
Varps.Varps_main[var11] = Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize];
WorldMapSection0.changeGameOptions(var11);
} else if (var29 == ScriptOpcodes.SCONST) {
Interpreter.Interpreter_stringStack[++WorldMapEvent.Interpreter_stringStackSize - 1] = var3.stringOperands[var17];
} else if (var29 == ScriptOpcodes.JUMP) {
var17 += var6[var17];
} else if (var29 == ScriptOpcodes.IF_ICMPNE) {
UrlRequester.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize] != Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1]) {
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPEQ) {
UrlRequester.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize] == Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1]) {
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPLT) {
UrlRequester.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize] < Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1]) {
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPGT) {
UrlRequester.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize] > Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1]) {
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.RETURN) {
if (Interpreter.Interpreter_frameDepth == 0) {
return;
}
ScriptFrame var34 = Interpreter.Interpreter_frames[--Interpreter.Interpreter_frameDepth];
var3 = var34.script;
var5 = var3.opcodes;
var6 = var3.intOperands;
var17 = var34.pc;
Interpreter.Interpreter_intLocals = var34.intLocals;
Interpreter.Interpreter_stringLocals = var34.stringLocals;
} else if (var29 == ScriptOpcodes.GET_VARBIT) {
var11 = var6[var17];
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = Widget.getVarbit(var11);
} else if (var29 == ScriptOpcodes.SET_VARBIT) {
var11 = var6[var17];
class257.method4679(var11, Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize]);
} else if (var29 == ScriptOpcodes.IF_ICMPLE) {
UrlRequester.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize] <= Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1]) {
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.IF_ICMPGE) {
UrlRequester.Interpreter_intStackSize -= 2;
if (Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize] >= Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1]) {
var17 += var6[var17];
}
} else if (var29 == ScriptOpcodes.ILOAD) {
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = Interpreter.Interpreter_intLocals[var6[var17]];
} else if (var29 == ScriptOpcodes.ISTORE) {
Interpreter.Interpreter_intLocals[var6[var17]] = Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize];
} else if (var29 == ScriptOpcodes.SLOAD) {
Interpreter.Interpreter_stringStack[++WorldMapEvent.Interpreter_stringStackSize - 1] = Interpreter.Interpreter_stringLocals[var6[var17]];
} else if (var29 == ScriptOpcodes.SSTORE) {
Interpreter.Interpreter_stringLocals[var6[var17]] = Interpreter.Interpreter_stringStack[--WorldMapEvent.Interpreter_stringStackSize];
} else if (var29 == ScriptOpcodes.JOIN_STRING) {
var11 = var6[var17];
WorldMapEvent.Interpreter_stringStackSize -= var11;
String var31 = StructDefinition.method4718(Interpreter.Interpreter_stringStack, WorldMapEvent.Interpreter_stringStackSize, var11);
Interpreter.Interpreter_stringStack[++WorldMapEvent.Interpreter_stringStackSize - 1] = var31;
} else if (var29 == ScriptOpcodes.POP_INT) {
--UrlRequester.Interpreter_intStackSize;
} else if (var29 == ScriptOpcodes.POP_STRING) {
--WorldMapEvent.Interpreter_stringStackSize;
} else {
int var15;
if (var29 != ScriptOpcodes.INVOKE) {
if (var29 == ScriptOpcodes.GET_VARC_INT) {
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = AttackOption.varcs.getInt(var6[var17]);
} else if (var29 == ScriptOpcodes.SET_VARC_INT) {
AttackOption.varcs.setInt(var6[var17], Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize]);
} else if (var29 == ScriptOpcodes.DEFINE_ARRAY) {
var11 = var6[var17] >> 16;
var20 = var6[var17] & 65535;
int var21 = Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize];
if (var21 < 0 || var21 > 5000) {
throw new RuntimeException();
}
Interpreter.Interpreter_arrayLengths[var11] = var21;
byte var22 = -1;
if (var20 == 105) {
var22 = 0;
}
for (var15 = 0; var15 < var21; ++var15) {
Interpreter.Interpreter_arrays[var11][var15] = var22;
}
} else if (var29 == ScriptOpcodes.GET_ARRAY_INT) {
var11 = var6[var17];
var20 = Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize];
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) {
throw new RuntimeException();
}
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = Interpreter.Interpreter_arrays[var11][var20];
} else if (var29 == ScriptOpcodes.SET_ARRAY_INT) {
var11 = var6[var17];
UrlRequester.Interpreter_intStackSize -= 2;
var20 = Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize];
if (var20 < 0 || var20 >= Interpreter.Interpreter_arrayLengths[var11]) {
throw new RuntimeException();
}
Interpreter.Interpreter_arrays[var11][var20] = Interpreter.Interpreter_intStack[UrlRequester.Interpreter_intStackSize + 1];
} else if (var29 == ScriptOpcodes.GET_VARC_STRING_OLD) {
var18 = AttackOption.varcs.getStringOld(var6[var17]);
if (var18 == null) {
var18 = "null";
}
Interpreter.Interpreter_stringStack[++WorldMapEvent.Interpreter_stringStackSize - 1] = var18;
} else if (var29 == ScriptOpcodes.SET_VARC_STRING_OLD) {
AttackOption.varcs.setStringOld(var6[var17], Interpreter.Interpreter_stringStack[--WorldMapEvent.Interpreter_stringStackSize]);
} else if (var29 == ScriptOpcodes.GET_VARC_STRING) {
var18 = AttackOption.varcs.getString(var6[var17]);
Interpreter.Interpreter_stringStack[++WorldMapEvent.Interpreter_stringStackSize - 1] = var18;
} else if (var29 == ScriptOpcodes.SET_VARC_STRING) {
AttackOption.varcs.setString(var6[var17], Interpreter.Interpreter_stringStack[--WorldMapEvent.Interpreter_stringStackSize]);
} else {
if (var29 != ScriptOpcodes.SWITCH) {
throw new IllegalStateException();
}
IterableNodeHashTable var33 = var3.switches[var6[var17]];
IntegerNode var30 = (IntegerNode)var33.get((long)Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize]);
if (var30 != null) {
var17 += var30.integer;
}
}
} else {
var11 = var6[var17];
Script var12 = WorldMapSection0.getScript(var11);
int[] var13 = new int[var12.localIntCount];
String[] var14 = new String[var12.localStringCount];
for (var15 = 0; var15 < var12.intArgumentCount; ++var15) {
var13[var15] = Interpreter.Interpreter_intStack[var15 + (UrlRequester.Interpreter_intStackSize - var12.intArgumentCount)];
}
for (var15 = 0; var15 < var12.stringArgumentCount; ++var15) {
var14[var15] = Interpreter.Interpreter_stringStack[var15 + (WorldMapEvent.Interpreter_stringStackSize - var12.stringArgumentCount)];
}
UrlRequester.Interpreter_intStackSize -= var12.intArgumentCount;
WorldMapEvent.Interpreter_stringStackSize -= var12.stringArgumentCount;
ScriptFrame var19 = new ScriptFrame();
var19.script = var3;
var19.pc = var17;
var19.intLocals = Interpreter.Interpreter_intLocals;
var19.stringLocals = Interpreter.Interpreter_stringLocals;
Interpreter.Interpreter_frames[++Interpreter.Interpreter_frameDepth - 1] = var19;
var3 = var12;
var5 = var12.opcodes;
var6 = var12.intOperands;
var17 = -1;
Interpreter.Interpreter_intLocals = var13;
Interpreter.Interpreter_stringLocals = var14;
}
}
}
} catch (Exception var27) {
StringBuilder var24 = new StringBuilder(30);
var24.append("").append(var3.key).append(" ");
for (var10 = Interpreter.Interpreter_frameDepth - 1; var10 >= 0; --var10) {
var24.append("").append(Interpreter.Interpreter_frames[var10].script.key).append(" ");
}
var24.append("").append(var7);
class197.RunException_sendStackTrace(var24.toString(), var27);
}
} finally {
if (Interpreter.field1125) {
Interpreter.field1118 = true;
class217.method4092();
Interpreter.field1118 = false;
Interpreter.field1125 = false;
class52.invalidateWidget(var3); // L: 563
return 1; // L: 564
} else if (var0 == ScriptOpcodes.CC_SETCOLOUR) { // L: 566
var3.color = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 567
class52.invalidateWidget(var3); // L: 568
return 1; // L: 569
} else if (var0 == ScriptOpcodes.CC_SETFILL) { // L: 571
var3.fill = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 572
class52.invalidateWidget(var3); // L: 573
return 1; // L: 574
} else if (var0 == ScriptOpcodes.CC_SETTRANS) { // L: 576
var3.transparencyTop = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 577
class52.invalidateWidget(var3); // L: 578
return 1; // L: 579
} else if (var0 == ScriptOpcodes.CC_SETLINEWID) { // L: 581
var3.lineWid = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 582
class52.invalidateWidget(var3); // L: 583
return 1; // L: 584
} else if (var0 == ScriptOpcodes.CC_SETGRAPHIC) { // L: 586
var3.spriteId2 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 587
class52.invalidateWidget(var3); // L: 588
return 1; // L: 589
} else if (var0 == ScriptOpcodes.CC_SET2DANGLE) { // L: 591
var3.spriteAngle = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 592
class52.invalidateWidget(var3); // L: 593
return 1; // L: 594
} else if (var0 == ScriptOpcodes.CC_SETTILING) { // L: 596
var3.spriteTiling = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 597
class52.invalidateWidget(var3); // L: 598
return 1; // L: 599
} else if (var0 == ScriptOpcodes.CC_SETMODEL) { // L: 601
var3.modelType = 1; // L: 602
var3.modelId = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 603
class52.invalidateWidget(var3); // L: 604
return 1; // L: 605
} else if (var0 == ScriptOpcodes.CC_SETMODELANGLE) { // L: 607
Interpreter.Interpreter_intStackSize -= 6; // L: 608
var3.modelOffsetX = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]; // L: 609
var3.modelOffsetY = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]; // L: 610
var3.modelAngleX = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2]; // L: 611
var3.modelAngleY = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 3]; // L: 612
var3.modelAngleZ = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 4]; // L: 613
var3.modelZoom = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 5]; // L: 614
class52.invalidateWidget(var3); // L: 615
return 1; // L: 616
} else {
int var8;
if (var0 == ScriptOpcodes.CC_SETMODELANIM) { // L: 618
var8 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 619
if (var8 != var3.sequenceId) { // L: 620
var3.sequenceId = var8; // L: 621
var3.modelFrame = 0; // L: 622
var3.modelFrameCycle = 0; // L: 623
class52.invalidateWidget(var3); // L: 624
}
return 1; // L: 626
} else if (var0 == ScriptOpcodes.CC_SETMODELORTHOG) { // L: 628
var3.modelOrthog = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 629
class52.invalidateWidget(var3); // L: 630
return 1; // L: 631
} else if (var0 == ScriptOpcodes.CC_SETTEXT) { // L: 633
String var7 = Interpreter.Interpreter_stringStack[--Varps.Interpreter_stringStackSize]; // L: 634
if (!var7.equals(var3.text)) { // L: 635
var3.text = var7; // L: 636
class52.invalidateWidget(var3); // L: 637
}
return 1; // L: 639
} else if (var0 == ScriptOpcodes.CC_SETTEXTFONT) { // L: 641
var3.fontId = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 642
class52.invalidateWidget(var3); // L: 643
return 1; // L: 644
} else if (var0 == ScriptOpcodes.CC_SETTEXTALIGN) { // L: 646
Interpreter.Interpreter_intStackSize -= 3; // L: 647
var3.textXAlignment = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]; // L: 648
var3.textYAlignment = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]; // L: 649
var3.textLineHeight = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2]; // L: 650
class52.invalidateWidget(var3); // L: 651
return 1; // L: 652
} else if (var0 == ScriptOpcodes.CC_SETTEXTSHADOW) { // L: 654
var3.textShadowed = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 655
class52.invalidateWidget(var3); // L: 656
return 1; // L: 657
} else if (var0 == ScriptOpcodes.CC_SETOUTLINE) { // L: 659
var3.outline = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 660
class52.invalidateWidget(var3); // L: 661
return 1; // L: 662
} else if (var0 == ScriptOpcodes.CC_SETGRAPHICSHADOW) { // L: 664
var3.spriteShadow = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 665
class52.invalidateWidget(var3); // L: 666
return 1; // L: 667
} else if (var0 == ScriptOpcodes.CC_SETVFLIP) { // L: 669
var3.spriteFlipV = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 670
class52.invalidateWidget(var3); // L: 671
return 1; // L: 672
} else if (var0 == ScriptOpcodes.CC_SETHFLIP) { // L: 674
var3.spriteFlipH = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 675
class52.invalidateWidget(var3); // L: 676
return 1; // L: 677
} else if (var0 == ScriptOpcodes.CC_SETSCROLLSIZE) { // L: 679
Interpreter.Interpreter_intStackSize -= 2; // L: 680
var3.scrollWidth = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize]; // L: 681
var3.scrollHeight = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]; // L: 682
class52.invalidateWidget(var3); // L: 683
if (var4 != -1 && var3.type == 0) { // L: 684
class4.revalidateWidgetScroll(Widget.Widget_interfaceComponents[var4 >> 16], var3, false);
}
return 1; // L: 685
} else if (var0 == ScriptOpcodes.CC_RESUME_PAUSEBUTTON) { // L: 687
AbstractSocket.resumePauseWidget(var3.id, var3.childIndex); // L: 688
Client.meslayerContinueWidget = var3; // L: 689
class52.invalidateWidget(var3); // L: 690
return 1; // L: 691
} else if (var0 == 1122) { // L: 693
var3.spriteId = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 694
class52.invalidateWidget(var3); // L: 695
return 1; // L: 696
} else if (var0 == ScriptOpcodes.CC_SETFILLCOLOUR) { // L: 698
var3.color2 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 699
class52.invalidateWidget(var3); // L: 700
return 1; // L: 701
} else if (var0 == 1124) { // L: 703
var3.transparencyBot = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 704
class52.invalidateWidget(var3); // L: 705
return 1; // L: 706
} else if (var0 == ScriptOpcodes.CC_SETFILLMODE) { // L: 708
var8 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]; // L: 709
FillMode var6 = (FillMode)TextureProvider.findEnumerated(class25.FillMode_values(), var8); // L: 710
if (var6 != null) { // L: 711
var3.fillMode = var6; // L: 712
class52.invalidateWidget(var3); // L: 713
}
return 1; // L: 715
} else {
boolean var5;
if (var0 == ScriptOpcodes.CC_SETLINEDIRECTION) { // L: 717
var5 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 718
var3.field2639 = var5; // L: 719
return 1; // L: 720
} else if (var0 == ScriptOpcodes.CC_SETMODELTRANSPARENT) { // L: 722
var5 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1; // L: 723
var3.modelTransparency = var5; // L: 724
return 1; // L: 725
} else {
return 2; // L: 727
}
}
}
}
@ObfuscatedName("q")
@ObfuscatedName("e")
@ObfuscatedSignature(
descriptor = "(IB)J",
descriptor = "(B)V",
garbageValue = "88"
)
@Export("getEntityUnderMouse")
public static long getEntityUnderMouse(int var0) {
return ViewportMouse.ViewportMouse_entityTags[var0];
}
protected static final void method498() {
AbstractWorldMapIcon.clock.mark(); // L: 404
@ObfuscatedName("u")
@ObfuscatedSignature(
descriptor = "(II)I",
garbageValue = "807704553"
)
@Export("Messages_getLastChatID")
static int Messages_getLastChatID(int var0) {
Message var1 = (Message)Messages.Messages_hashTable.get((long)var0);
if (var1 == null) {
return -1;
} else {
return var1.nextDual == Messages.Messages_queue.sentinel ? -1 : ((Message)var1.nextDual).count;
}
}
@ObfuscatedName("ff")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1944038316"
)
static final void method488() {
int var0 = class204.field2420 * 128 + 64;
int var1 = WorldMapManager.field348 * 128 + 64;
int var2 = Language.getTileHeight(var0, var1, TileItemPile.Client_plane) - field275;
if (MouseHandler.cameraX < var0) {
MouseHandler.cameraX = (var0 - MouseHandler.cameraX) * ScriptEvent.field604 / 1000 + MouseHandler.cameraX + class25.field122;
if (MouseHandler.cameraX > var0) {
MouseHandler.cameraX = var0;
}
int var0;
for (var0 = 0; var0 < 32; ++var0) { // L: 405
GameShell.graphicsTickTimes[var0] = 0L;
}
if (MouseHandler.cameraX > var0) {
MouseHandler.cameraX -= ScriptEvent.field604 * (MouseHandler.cameraX - var0) / 1000 + class25.field122;
if (MouseHandler.cameraX < var0) {
MouseHandler.cameraX = var0;
}
for (var0 = 0; var0 < 32; ++var0) { // L: 406
GameShell.clientTickTimes[var0] = 0L;
}
if (WorldMapSection3.cameraY < var2) {
WorldMapSection3.cameraY = (var2 - WorldMapSection3.cameraY) * ScriptEvent.field604 / 1000 + WorldMapSection3.cameraY + class25.field122;
if (WorldMapSection3.cameraY > var2) {
WorldMapSection3.cameraY = var2;
}
}
if (WorldMapSection3.cameraY > var2) {
WorldMapSection3.cameraY -= ScriptEvent.field604 * (WorldMapSection3.cameraY - var2) / 1000 + class25.field122;
if (WorldMapSection3.cameraY < var2) {
WorldMapSection3.cameraY = var2;
}
}
if (ObjectSound.cameraZ < var1) {
ObjectSound.cameraZ = (var1 - ObjectSound.cameraZ) * ScriptEvent.field604 / 1000 + ObjectSound.cameraZ + class25.field122;
if (ObjectSound.cameraZ > var1) {
ObjectSound.cameraZ = var1;
}
}
if (ObjectSound.cameraZ > var1) {
ObjectSound.cameraZ -= ScriptEvent.field604 * (ObjectSound.cameraZ - var1) / 1000 + class25.field122;
if (ObjectSound.cameraZ < var1) {
ObjectSound.cameraZ = var1;
}
}
var0 = DevicePcmPlayerProvider.field435 * 128 + 64;
var1 = class9.field42 * 128 + 64;
var2 = Language.getTileHeight(var0, var1, TileItemPile.Client_plane) - class206.field2446;
int var3 = var0 - MouseHandler.cameraX;
int var4 = var2 - WorldMapSection3.cameraY;
int var5 = var1 - ObjectSound.cameraZ;
int var6 = (int)Math.sqrt((double)(var3 * var3 + var5 * var5));
int var7 = (int)(Math.atan2((double)var4, (double)var6) * 325.949D) & 2047;
int var8 = (int)(Math.atan2((double)var3, (double)var5) * -325.949D) & 2047;
if (var7 < 128) {
var7 = 128;
}
if (var7 > 383) {
var7 = 383;
}
if (TilePaint.cameraPitch < var7) {
TilePaint.cameraPitch = (var7 - TilePaint.cameraPitch) * WorldMapCacheName.field329 / 1000 + TilePaint.cameraPitch + class329.field3867;
if (TilePaint.cameraPitch > var7) {
TilePaint.cameraPitch = var7;
}
}
if (TilePaint.cameraPitch > var7) {
TilePaint.cameraPitch -= WorldMapCacheName.field329 * (TilePaint.cameraPitch - var7) / 1000 + class329.field3867;
if (TilePaint.cameraPitch < var7) {
TilePaint.cameraPitch = var7;
}
}
int var9 = var8 - Canvas.cameraYaw;
if (var9 > 1024) {
var9 -= 2048;
}
if (var9 < -1024) {
var9 += 2048;
}
if (var9 > 0) {
Canvas.cameraYaw = Canvas.cameraYaw + class329.field3867 + var9 * WorldMapCacheName.field329 / 1000;
Canvas.cameraYaw &= 2047;
}
if (var9 < 0) {
Canvas.cameraYaw -= class329.field3867 + -var9 * WorldMapCacheName.field329 / 1000;
Canvas.cameraYaw &= 2047;
}
int var10 = var8 - Canvas.cameraYaw;
if (var10 > 1024) {
var10 -= 2048;
}
if (var10 < -1024) {
var10 += 2048;
}
if (var10 < 0 && var9 > 0 || var10 > 0 && var9 < 0) {
Canvas.cameraYaw = var8;
}
}
@ObfuscatedName("il")
@ObfuscatedSignature(
descriptor = "(Lhd;III)V",
garbageValue = "-488696963"
)
@Export("alignWidgetPosition")
static void alignWidgetPosition(Widget var0, int var1, int var2) {
if (var0.xAlignment == 0) {
var0.x = var0.rawX;
} else if (var0.xAlignment == 1) {
var0.x = var0.rawX + (var1 - var0.width) / 2;
} else if (var0.xAlignment == 2) {
var0.x = var1 - var0.width - var0.rawX;
} else if (var0.xAlignment == 3) {
var0.x = var0.rawX * var1 >> 14;
} else if (var0.xAlignment == 4) {
var0.x = (var1 - var0.width) / 2 + (var0.rawX * var1 >> 14);
} else {
var0.x = var1 - var0.width - (var0.rawX * var1 >> 14);
}
if (var0.yAlignment == 0) {
var0.y = var0.rawY;
} else if (var0.yAlignment == 1) {
var0.y = (var2 - var0.height) / 2 + var0.rawY;
} else if (var0.yAlignment == 2) {
var0.y = var2 - var0.height - var0.rawY;
} else if (var0.yAlignment == 3) {
var0.y = var2 * var0.rawY >> 14;
} else if (var0.yAlignment == 4) {
var0.y = (var2 - var0.height) / 2 + (var2 * var0.rawY >> 14);
} else {
var0.y = var2 - var0.height - (var2 * var0.rawY >> 14);
}
}
@ObfuscatedName("jv")
@ObfuscatedSignature(
descriptor = "(IIII)Lbz;",
garbageValue = "1553809797"
)
static final InterfaceParent method486(int var0, int var1, int var2) {
InterfaceParent var3 = new InterfaceParent();
var3.group = var1;
var3.type = var2;
Client.interfaceParents.put(var3, (long)var0);
WorldMapSection3.Widget_resetModelFrames(var1);
Widget var4 = WorldMapSprite.getWidget(var0);
class234.invalidateWidget(var4);
if (Client.meslayerContinueWidget != null) {
class234.invalidateWidget(Client.meslayerContinueWidget);
Client.meslayerContinueWidget = null;
}
for (int var5 = 0; var5 < Client.menuOptionsCount; ++var5) {
int var7 = Client.menuOpcodes[var5];
boolean var6 = var7 == 57 || var7 == 58 || var7 == 1007 || var7 == 25 || var7 == 30;
if (var6) {
if (var5 < Client.menuOptionsCount - 1) {
for (int var8 = var5; var8 < Client.menuOptionsCount - 1; ++var8) {
Client.menuActions[var8] = Client.menuActions[var8 + 1];
Client.menuTargets[var8] = Client.menuTargets[var8 + 1];
Client.menuOpcodes[var8] = Client.menuOpcodes[var8 + 1];
Client.menuIdentifiers[var8] = Client.menuIdentifiers[var8 + 1];
Client.menuArguments1[var8] = Client.menuArguments1[var8 + 1];
Client.menuArguments2[var8] = Client.menuArguments2[var8 + 1];
Client.menuShiftClick[var8] = Client.menuShiftClick[var8 + 1];
}
}
--var5;
--Client.menuOptionsCount;
}
}
WorldMapEvent.method840(class69.menuWidth / 2 + WorldMapRectangle.menuX, Frames.menuY);
WorldMapIcon_0.revalidateWidgetScroll(Widget.Widget_interfaceComponents[var0 >> 16], var4, false);
UserComparator4.runWidgetOnLoadListener(var1);
if (Client.rootInterface != -1) {
Language.runIntfCloseListeners(Client.rootInterface, 1);
}
return var3;
}
class58.gameCyclesToDo = 0; // L: 407
} // L: 408
}