chore: revision 189
This commit is contained in:
@@ -1,46 +1,230 @@
|
||||
import java.security.SecureRandom;
|
||||
import java.util.concurrent.Callable;
|
||||
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;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("bi")
|
||||
@ObfuscatedName("bx")
|
||||
@Implements("SecureRandomCallable")
|
||||
public class SecureRandomCallable implements Callable {
|
||||
@ObfuscatedName("ey")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lia;"
|
||||
)
|
||||
@Export("archive20")
|
||||
static Archive archive20;
|
||||
@ObfuscatedName("fd")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 696755763
|
||||
)
|
||||
static int field530;
|
||||
@ObfuscatedName("gq")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1829192953
|
||||
)
|
||||
static int field531;
|
||||
@ObfuscatedName("gd")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Llt;"
|
||||
)
|
||||
@Export("headIconHintSprites")
|
||||
static Sprite[] headIconHintSprites;
|
||||
@ObfuscatedName("kk")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -821699027
|
||||
)
|
||||
@Export("menuY")
|
||||
static int menuY;
|
||||
|
||||
SecureRandomCallable() {
|
||||
}
|
||||
|
||||
public Object call() {
|
||||
return class51.method896();
|
||||
SecureRandom var2 = new SecureRandom();
|
||||
var2.nextInt();
|
||||
return var2;
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "1446972814"
|
||||
)
|
||||
public static int method1250() {
|
||||
return ViewportMouse.ViewportMouse_entityCount;
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BI)Lce;",
|
||||
garbageValue = "-932748815"
|
||||
)
|
||||
@Export("newScript")
|
||||
static Script newScript(byte[] var0) {
|
||||
Script var1 = new Script();
|
||||
Buffer var2 = new Buffer(var0);
|
||||
var2.offset = var2.array.length - 2;
|
||||
int var3 = var2.readUnsignedShort();
|
||||
int var4 = var2.array.length - 2 - var3 - 12;
|
||||
var2.offset = var4;
|
||||
int var5 = var2.readInt();
|
||||
var1.localIntCount = var2.readUnsignedShort();
|
||||
var1.localStringCount = var2.readUnsignedShort();
|
||||
var1.intArgumentCount = var2.readUnsignedShort();
|
||||
var1.stringArgumentCount = var2.readUnsignedShort();
|
||||
int var6 = var2.readUnsignedByte();
|
||||
int var7;
|
||||
int var8;
|
||||
if (var6 > 0) {
|
||||
var1.switches = var1.newIterableNodeHashTable(var6);
|
||||
|
||||
for (var7 = 0; var7 < var6; ++var7) {
|
||||
var8 = var2.readUnsignedShort();
|
||||
IterableNodeHashTable var9 = new IterableNodeHashTable(var8 > 0 ? Calendar.method4033(var8) : 1);
|
||||
var1.switches[var7] = var9;
|
||||
|
||||
while (var8-- > 0) {
|
||||
int var10 = var2.readInt();
|
||||
int var11 = var2.readInt();
|
||||
var9.put(new IntegerNode(var11), (long)var10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var2.offset = 0;
|
||||
var2.readStringCp1252NullTerminatedOrNull();
|
||||
var1.opcodes = new int[var5];
|
||||
var1.intOperands = new int[var5];
|
||||
var1.stringOperands = new String[var5];
|
||||
|
||||
for (var7 = 0; var2.offset < var4; var1.opcodes[var7++] = var8) {
|
||||
var8 = var2.readUnsignedShort();
|
||||
if (var8 == 3) {
|
||||
var1.stringOperands[var7] = var2.readStringCp1252NullTerminated();
|
||||
} else if (var8 < 100 && var8 != 21 && var8 != 38 && var8 != 39) {
|
||||
var1.intOperands[var7] = var2.readInt();
|
||||
} else {
|
||||
var1.intOperands[var7] = var2.readUnsignedByte();
|
||||
}
|
||||
}
|
||||
|
||||
return var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILce;ZI)I",
|
||||
garbageValue = "-153982607"
|
||||
)
|
||||
static int method1249(int var0, Script var1, boolean var2) {
|
||||
int var3 = -1;
|
||||
Widget var4;
|
||||
if (var0 >= 2000) {
|
||||
var0 -= 1000;
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
var4 = MusicPatchNode.getWidget(var3);
|
||||
} else {
|
||||
var4 = var2 ? GrandExchangeOfferNameComparator.field115 : Interpreter.field1130;
|
||||
}
|
||||
|
||||
if (var0 == ScriptOpcodes.CC_SETPOSITION) {
|
||||
Interpreter.Interpreter_intStackSize -= 4;
|
||||
var4.rawX = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var4.rawY = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
var4.xAlignment = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2];
|
||||
var4.yAlignment = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 3];
|
||||
ItemContainer.invalidateWidget(var4);
|
||||
WorldMapSection1.client.alignWidget(var4);
|
||||
if (var3 != -1 && var4.type == 0) {
|
||||
MouseHandler.revalidateWidgetScroll(Widget.Widget_interfaceComponents[var3 >> 16], var4, false);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETSIZE) {
|
||||
Interpreter.Interpreter_intStackSize -= 4;
|
||||
var4.rawWidth = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var4.rawHeight = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
var4.widthAlignment = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2];
|
||||
var4.heightAlignment = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 3];
|
||||
ItemContainer.invalidateWidget(var4);
|
||||
WorldMapSection1.client.alignWidget(var4);
|
||||
if (var3 != -1 && var4.type == 0) {
|
||||
MouseHandler.revalidateWidgetScroll(Widget.Widget_interfaceComponents[var3 >> 16], var4, false);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETHIDE) {
|
||||
boolean var5 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
if (var5 != var4.isHidden) {
|
||||
var4.isHidden = var5;
|
||||
ItemContainer.invalidateWidget(var4);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETNOCLICKTHROUGH) {
|
||||
var4.noClickThrough = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETNOSCROLLTHROUGH) {
|
||||
var4.noScrollThrough = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lel;IIII)Z",
|
||||
garbageValue = "1749928116"
|
||||
)
|
||||
static final boolean method1252(Model var0, int var1, int var2, int var3) {
|
||||
boolean var4 = ViewportMouse.ViewportMouse_isInViewport;
|
||||
if (!var4) {
|
||||
return false;
|
||||
} else {
|
||||
Varcs.method2294();
|
||||
int var5 = var0.xMid + var1;
|
||||
int var6 = var2 + var0.yMid;
|
||||
int var7 = var3 + var0.zMid;
|
||||
int var8 = var0.xMidOffset;
|
||||
int var9 = var0.yMidOffset;
|
||||
int var10 = var0.zMidOffset;
|
||||
int var11 = ViewportMouse.field1756 - var5;
|
||||
int var12 = class300.field3653 - var6;
|
||||
int var13 = HorizontalAlignment.field3456 - var7;
|
||||
if (Math.abs(var11) > var8 + class23.field134) {
|
||||
return false;
|
||||
} else if (Math.abs(var12) > var9 + ViewportMouse.field1758) {
|
||||
return false;
|
||||
} else if (Math.abs(var13) > var10 + AttackOption.field1182) {
|
||||
return false;
|
||||
} else if (Math.abs(var13 * Clock.field2061 - var12 * GrandExchangeEvent.field75) > var9 * AttackOption.field1182 + var10 * ViewportMouse.field1758) {
|
||||
return false;
|
||||
} else if (Math.abs(var11 * GrandExchangeEvent.field75 - var13 * ViewportMouse.field1753) > var10 * class23.field134 + var8 * AttackOption.field1182) {
|
||||
return false;
|
||||
} else {
|
||||
return Math.abs(var12 * ViewportMouse.field1753 - var11 * Clock.field2061) <= var8 * ViewportMouse.field1758 + var9 * class23.field134;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("jg")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([Lhe;IB)V",
|
||||
garbageValue = "112"
|
||||
)
|
||||
@Export("runComponentCloseListeners")
|
||||
static final void runComponentCloseListeners(Widget[] var0, int var1) {
|
||||
for (int var2 = 0; var2 < var0.length; ++var2) {
|
||||
Widget var3 = var0[var2];
|
||||
if (var3 != null) {
|
||||
if (var3.type == 0) {
|
||||
if (var3.children != null) {
|
||||
runComponentCloseListeners(var3.children, var1);
|
||||
}
|
||||
|
||||
InterfaceParent var4 = (InterfaceParent)Client.interfaceParents.get((long)var3.id);
|
||||
if (var4 != null) {
|
||||
class198.runIntfCloseListeners(var4.group, var1);
|
||||
}
|
||||
}
|
||||
|
||||
ScriptEvent var5;
|
||||
if (var1 == 0 && var3.onDialogAbort != null) {
|
||||
var5 = new ScriptEvent();
|
||||
var5.widget = var3;
|
||||
var5.args = var3.onDialogAbort;
|
||||
GrandExchangeOfferOwnWorldComparator.runScriptEvent(var5);
|
||||
}
|
||||
|
||||
if (var1 == 1 && var3.onSubChange != null) {
|
||||
if (var3.childIndex >= 0) {
|
||||
Widget var6 = MusicPatchNode.getWidget(var3.id);
|
||||
if (var6 == null || var6.children == null || var3.childIndex >= var6.children.length || var3 != var6.children[var3.childIndex]) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
var5 = new ScriptEvent();
|
||||
var5.widget = var3;
|
||||
var5.args = var3.onSubChange;
|
||||
GrandExchangeOfferOwnWorldComparator.runScriptEvent(var5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user