project: Rev 182
This commit is contained in:
@@ -5,64 +5,72 @@ import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("ba")
|
||||
@ObfuscatedName("bc")
|
||||
@Implements("GraphicsObject")
|
||||
public final class GraphicsObject extends Entity {
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("qe")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1729585911
|
||||
intValue = -487309312
|
||||
)
|
||||
static int field1079;
|
||||
@ObfuscatedName("gx")
|
||||
@Export("regionLandArchives")
|
||||
static byte[][] regionLandArchives;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -609520515
|
||||
)
|
||||
@Export("id")
|
||||
int id;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1383922821
|
||||
intValue = 528073861
|
||||
)
|
||||
@Export("cycleStart")
|
||||
int cycleStart;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -973375147
|
||||
intValue = 1305204903
|
||||
)
|
||||
@Export("plane")
|
||||
int plane;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1889549973
|
||||
intValue = 1986692437
|
||||
)
|
||||
@Export("x")
|
||||
int x;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -938790661
|
||||
intValue = 575337647
|
||||
)
|
||||
@Export("y")
|
||||
int y;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -955418477
|
||||
intValue = -893117639
|
||||
)
|
||||
@Export("height")
|
||||
int height;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lis;"
|
||||
signature = "Lij;"
|
||||
)
|
||||
@Export("sequenceDefinition")
|
||||
SequenceDefinition sequenceDefinition;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1315114867
|
||||
intValue = -1568571077
|
||||
)
|
||||
@Export("frame")
|
||||
int frame;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1432178363
|
||||
intValue = -1439045539
|
||||
)
|
||||
@Export("frameCycle")
|
||||
int frameCycle;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("d")
|
||||
@Export("isFinished")
|
||||
boolean isFinished;
|
||||
|
||||
@@ -76,47 +84,46 @@ public final class GraphicsObject extends Entity {
|
||||
this.y = var4;
|
||||
this.height = var5;
|
||||
this.cycleStart = var7 + var6;
|
||||
int var8 = MusicPatch.SpotAnimationDefinition_get(this.id).sequence;
|
||||
int var8 = HealthBarUpdate.SpotAnimationDefinition_get(this.id).sequence;
|
||||
if (var8 != -1) {
|
||||
this.isFinished = false;
|
||||
this.sequenceDefinition = GrandExchangeEvent.SequenceDefinition_get(var8);
|
||||
this.sequenceDefinition = Widget.SequenceDefinition_get(var8);
|
||||
} else {
|
||||
this.isFinished = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IB)V",
|
||||
garbageValue = "4"
|
||||
signature = "(IS)V",
|
||||
garbageValue = "-9690"
|
||||
)
|
||||
@Export("advance")
|
||||
final void advance(int var1) {
|
||||
if (this.isFinished) {
|
||||
return;
|
||||
}
|
||||
this.frameCycle += var1;
|
||||
if (!this.isFinished) {
|
||||
this.frameCycle += var1;
|
||||
|
||||
while (this.frameCycle > this.sequenceDefinition.frameLengths[this.frame]) {
|
||||
this.frameCycle -= this.sequenceDefinition.frameLengths[this.frame];
|
||||
++this.frame;
|
||||
if (this.frame >= this.sequenceDefinition.frameIds.length) {
|
||||
this.isFinished = true;
|
||||
break;
|
||||
while (this.frameCycle > this.sequenceDefinition.frameLengths[this.frame]) {
|
||||
this.frameCycle -= this.sequenceDefinition.frameLengths[this.frame];
|
||||
++this.frame;
|
||||
if (this.frame >= this.sequenceDefinition.frameIds.length) {
|
||||
this.isFinished = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Ldm;",
|
||||
garbageValue = "759381421"
|
||||
signature = "(I)Ldo;",
|
||||
garbageValue = "-419920513"
|
||||
)
|
||||
@Export("getModel")
|
||||
protected final Model getModel() {
|
||||
SpotAnimationDefinition var1 = MusicPatch.SpotAnimationDefinition_get(this.id);
|
||||
SpotAnimationDefinition var1 = HealthBarUpdate.SpotAnimationDefinition_get(this.id);
|
||||
Model var2;
|
||||
if (!this.isFinished) {
|
||||
var2 = var1.getModel(this.frame);
|
||||
@@ -127,164 +134,49 @@ public final class GraphicsObject extends Entity {
|
||||
return var2 == null ? null : var2;
|
||||
}
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcx;ZS)I",
|
||||
garbageValue = "-11723"
|
||||
signature = "(II)Z",
|
||||
garbageValue = "971415890"
|
||||
)
|
||||
static int method1943(int var0, Script var1, boolean var2) {
|
||||
Widget var3;
|
||||
if (var0 >= 2000) {
|
||||
var0 -= 1000;
|
||||
var3 = class80.getWidget(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
} else {
|
||||
var3 = var2 ? Interpreter.field1111 : Calendar.field2507;
|
||||
}
|
||||
public static boolean method1946(int var0) {
|
||||
return var0 == WorldMapDecorationType.field2722.id;
|
||||
}
|
||||
|
||||
String var4 = Interpreter.Interpreter_stringStack[--Skills.Interpreter_stringStackSize];
|
||||
int[] var5 = null;
|
||||
if (var4.length() > 0 && var4.charAt(var4.length() - 1) == 'Y') {
|
||||
int var6 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
if (var6 > 0) {
|
||||
for (var5 = new int[var6]; var6-- > 0; var5[var6] = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]) {
|
||||
}
|
||||
}
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Z",
|
||||
garbageValue = "85520367"
|
||||
)
|
||||
@Export("hasReflectionCheck")
|
||||
public static boolean hasReflectionCheck() {
|
||||
ReflectionCheck var0 = (ReflectionCheck)class96.reflectionChecks.last();
|
||||
return var0 != null;
|
||||
}
|
||||
|
||||
var4 = var4.substring(0, var4.length() - 1);
|
||||
}
|
||||
|
||||
Object[] var8 = new Object[var4.length() + 1];
|
||||
|
||||
int var7;
|
||||
for (var7 = var8.length - 1; var7 >= 1; --var7) {
|
||||
if (var4.charAt(var7 - 1) == 's') {
|
||||
var8[var7] = Interpreter.Interpreter_stringStack[--Skills.Interpreter_stringStackSize];
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcr;ZI)I",
|
||||
garbageValue = "886521701"
|
||||
)
|
||||
static int method1939(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? class286.field3623 : class297.field3693;
|
||||
if (var0 == ScriptOpcodes.CC_GETINVOBJECT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.itemId;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETINVCOUNT) {
|
||||
if (var3.itemId != -1) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.itemQuantity;
|
||||
} else {
|
||||
var8[var7] = new Integer(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
var7 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
if (var7 != -1) {
|
||||
var8[0] = new Integer(var7);
|
||||
} else {
|
||||
var8 = null;
|
||||
}
|
||||
|
||||
if (var0 == ScriptOpcodes.CC_SETONCLICK) {
|
||||
var3.onClick = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONHOLD) {
|
||||
var3.onHold = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONRELEASE) {
|
||||
var3.onRelease = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONMOUSEOVER) {
|
||||
var3.onMouseOver = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONMOUSELEAVE) {
|
||||
var3.onMouseLeave = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONDRAG) {
|
||||
var3.onDrag = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONTARGETLEAVE) {
|
||||
var3.onTargetLeave = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONVARTRANSMIT) {
|
||||
var3.onVarTransmit = var8;
|
||||
var3.varTransmitTriggers = var5;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONTIMER) {
|
||||
var3.onTimer = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONOP) {
|
||||
var3.onOp = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONDRAGCOMPLETE) {
|
||||
var3.onDragComplete = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONCLICKREPEAT) {
|
||||
var3.onClickRepeat = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONMOUSEREPEAT) {
|
||||
var3.onMouseRepeat = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONINVTRANSMIT) {
|
||||
var3.onInvTransmit = var8;
|
||||
var3.invTransmitTriggers = var5;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONSTATTRANSMIT) {
|
||||
var3.onStatTransmit = var8;
|
||||
var3.statTransmitTriggers = var5;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONTARGETENTER) {
|
||||
var3.onTargetEnter = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONSCROLLWHEEL) {
|
||||
var3.onScroll = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONCHATTRANSMIT) {
|
||||
var3.onChatTransmit = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONKEY) {
|
||||
var3.onKey = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONFRIENDTRANSMIT) {
|
||||
var3.onFriendTransmit = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONCLANTRANSMIT) {
|
||||
var3.onClanTransmit = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONMISCTRANSMIT) {
|
||||
var3.onMiscTransmit = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONDIALOGABORT) {
|
||||
var3.onDialogAbort = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONSUBCHANGE) {
|
||||
var3.onSubChange = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONSTOCKTRANSMIT) {
|
||||
var3.onStockTransmit = var8;
|
||||
} else if (var0 == 1426) {
|
||||
var3.field2681 = var8;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETONRESIZE) {
|
||||
var3.onResize = var8;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETID) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.childIndex;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
|
||||
var3.hasListener = true;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)I",
|
||||
garbageValue = "1550273173"
|
||||
)
|
||||
static final int method1948(int var0, int var1) {
|
||||
if (var0 == -1) {
|
||||
return 12345678;
|
||||
}
|
||||
var1 = (var0 & 127) * var1 / 128;
|
||||
if (var1 < 2) {
|
||||
var1 = 2;
|
||||
} else if (var1 > 126) {
|
||||
var1 = 126;
|
||||
}
|
||||
|
||||
return (var0 & 65408) + var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("az")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ldx;I)V",
|
||||
garbageValue = "-1064292468"
|
||||
)
|
||||
@Export("PcmStream_disable")
|
||||
static final void PcmStream_disable(PcmStream var0) {
|
||||
var0.active = false;
|
||||
if (var0.sound != null) {
|
||||
var0.sound.position = 0;
|
||||
}
|
||||
|
||||
for (PcmStream var1 = var0.firstSubStream(); var1 != null; var1 = var0.nextSubStream()) {
|
||||
PcmStream_disable(var1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("he")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-1819884546"
|
||||
)
|
||||
@Export("addCancelMenuEntry")
|
||||
static void addCancelMenuEntry() {
|
||||
Strings.resetMenuEntries();
|
||||
Client.menuActions[0] = "Cancel";
|
||||
Client.menuTargets[0] = "";
|
||||
Client.menuOpcodes[0] = 1006;
|
||||
Client.menuShiftClick[0] = false;
|
||||
Client.menuOptionsCount = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user