* rs-client: name SpriteBuffer * rs-client: (re)name spritebuffer methods * rs-client/deob: Add missed @Export's, make updatemappings fix this next time * rs-client: run intellij redundant else inspection * rs-client: invert some script interpreter if's * deob: checkstyle fixes * rs-client: SpriteBuffer_loadSprite -> SpriteBuffer_bufferFile
845 lines
20 KiB
Java
845 lines
20 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.ObfuscatedGetter;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("ap")
|
|
public class class40 {
|
|
@ObfuscatedName("l")
|
|
@ObfuscatedGetter(
|
|
intValue = 813115417
|
|
)
|
|
@Export("idxCount")
|
|
public static int idxCount;
|
|
@ObfuscatedName("bm")
|
|
@ObfuscatedSignature(
|
|
signature = "Lmu;"
|
|
)
|
|
@Export("loginType")
|
|
static LoginType loginType;
|
|
@ObfuscatedName("ch")
|
|
@ObfuscatedSignature(
|
|
signature = "Lbs;"
|
|
)
|
|
@Export("mouseRecorder")
|
|
static MouseRecorder mouseRecorder;
|
|
@ObfuscatedName("q")
|
|
@ObfuscatedGetter(
|
|
intValue = 1740646861
|
|
)
|
|
@Export("pixelsPerTile")
|
|
int pixelsPerTile;
|
|
@ObfuscatedName("w")
|
|
@Export("tileTemplates")
|
|
byte[][][] tileTemplates;
|
|
|
|
class40(int var1) {
|
|
this.pixelsPerTile = var1;
|
|
}
|
|
|
|
@ObfuscatedName("q")
|
|
@ObfuscatedSignature(
|
|
signature = "(IIIIIIIII)V",
|
|
garbageValue = "1804465340"
|
|
)
|
|
void method698(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8) {
|
|
if (var7 != 0 && this.pixelsPerTile != 0 && this.tileTemplates != null) {
|
|
var8 = this.method699(var8, var7);
|
|
var7 = this.method712(var7);
|
|
Rasterizer2D.raster2d7(var1, var2, var5, var6, var3, var4, this.tileTemplates[var7 - 1][var8], this.pixelsPerTile);
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("w")
|
|
@ObfuscatedSignature(
|
|
signature = "(III)I",
|
|
garbageValue = "-500571874"
|
|
)
|
|
int method699(int var1, int var2) {
|
|
if (var2 == 9) {
|
|
var1 = var1 + 1 & 3;
|
|
}
|
|
|
|
if (var2 == 10) {
|
|
var1 = var1 + 3 & 3;
|
|
}
|
|
|
|
if (var2 == 11) {
|
|
var1 = var1 + 3 & 3;
|
|
}
|
|
|
|
return var1;
|
|
}
|
|
|
|
@ObfuscatedName("e")
|
|
@ObfuscatedSignature(
|
|
signature = "(IB)I",
|
|
garbageValue = "-128"
|
|
)
|
|
int method712(int var1) {
|
|
if (var1 != 9 && var1 != 10) {
|
|
return var1 == 11 ? 8 : var1;
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
@ObfuscatedName("p")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)V",
|
|
garbageValue = "4"
|
|
)
|
|
@Export("init")
|
|
void init() {
|
|
if (this.tileTemplates == null) {
|
|
this.tileTemplates = new byte[8][4][];
|
|
this.init0();
|
|
this.init1();
|
|
this.init2();
|
|
this.init3();
|
|
this.init4();
|
|
this.init5();
|
|
this.init6();
|
|
this.init7();
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("k")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)V",
|
|
garbageValue = "-21"
|
|
)
|
|
@Export("init0")
|
|
void init0() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var2 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[0][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[0][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[0][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[0][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("l")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "-566933569"
|
|
)
|
|
@Export("init1")
|
|
void init1() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var2 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[1][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var2 >= 0 && var2 < var1.length) {
|
|
if (var4 >= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
} else {
|
|
++var2;
|
|
}
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[1][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 <= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[1][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 >= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[1][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("b")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "1948794690"
|
|
)
|
|
@Export("init2")
|
|
void init2() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var2 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 <= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[2][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[2][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[2][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 >= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[2][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("i")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "501834296"
|
|
)
|
|
@Export("init3")
|
|
void init3() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var2 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[3][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[3][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 >= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[3][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 <= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[3][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("c")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "-413902072"
|
|
)
|
|
@Export("init4")
|
|
void init4() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var2 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 >= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[4][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[4][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3 >> 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[4][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var2 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 <= var3 << 1) {
|
|
var1[var2] = -1;
|
|
}
|
|
|
|
++var2;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[4][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("u")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "448498588"
|
|
)
|
|
@Export("init5")
|
|
void init5() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
boolean var2 = false;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var5 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[5][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var3 <= this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[5][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[5][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var3 >= this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[5][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("x")
|
|
@ObfuscatedSignature(
|
|
signature = "(I)V",
|
|
garbageValue = "-1961864087"
|
|
)
|
|
@Export("init6")
|
|
void init6() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
boolean var2 = false;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var5 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[6][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 <= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[6][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 <= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[6][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 <= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[6][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("r")
|
|
@ObfuscatedSignature(
|
|
signature = "(B)V",
|
|
garbageValue = "0"
|
|
)
|
|
@Export("init7")
|
|
void init7() {
|
|
byte[] var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
boolean var2 = false;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
int var5 = 0;
|
|
|
|
int var3;
|
|
int var4;
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[7][0] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = 0; var4 < this.pixelsPerTile; ++var4) {
|
|
if (var4 >= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[7][1] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = this.pixelsPerTile - 1; var3 >= 0; --var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 >= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[7][2] = var1;
|
|
var1 = new byte[this.pixelsPerTile * this.pixelsPerTile];
|
|
var5 = 0;
|
|
|
|
for (var3 = 0; var3 < this.pixelsPerTile; ++var3) {
|
|
for (var4 = this.pixelsPerTile - 1; var4 >= 0; --var4) {
|
|
if (var4 >= var3 - this.pixelsPerTile / 2) {
|
|
var1[var5] = -1;
|
|
}
|
|
|
|
++var5;
|
|
}
|
|
}
|
|
|
|
this.tileTemplates[7][3] = var1;
|
|
}
|
|
|
|
@ObfuscatedName("l")
|
|
@ObfuscatedSignature(
|
|
signature = "(IB)V",
|
|
garbageValue = "14"
|
|
)
|
|
public static void method729(int var0) {
|
|
class197.field2402 = 1;
|
|
GrandExchangeOfferNameComparator.musicTrackArchive = null;
|
|
class197.musicTrackGroupId = -1;
|
|
class197.musicTrackFileId = -1;
|
|
ScriptFrame.field529 = 0;
|
|
BuddyRankComparator.musicTrackBoolean = false;
|
|
class197.field2404 = var0;
|
|
}
|
|
|
|
@ObfuscatedName("ew")
|
|
@ObfuscatedSignature(
|
|
signature = "(IB)I",
|
|
garbageValue = "-68"
|
|
)
|
|
static int method700(int var0) {
|
|
return var0 * 3 + 600;
|
|
}
|
|
|
|
@ObfuscatedName("io")
|
|
@ObfuscatedSignature(
|
|
signature = "(Lhj;III)V",
|
|
garbageValue = "-641953545"
|
|
)
|
|
static final void method703(Widget var0, int var1, int var2) {
|
|
if (var0.buttonType == 1) {
|
|
class188.insertMenuItemNoShift(var0.buttonText, "", 24, 0, 0, var0.id);
|
|
}
|
|
|
|
String var3;
|
|
if (var0.buttonType == 2 && !Client.isSpellSelected) {
|
|
var3 = FontName.method5318(var0);
|
|
if (var3 != null) {
|
|
class188.insertMenuItemNoShift(var3, ClientPreferences.colorStartTag(65280) + var0.spellName, 25, 0, -1, var0.id);
|
|
}
|
|
}
|
|
|
|
if (var0.buttonType == 3) {
|
|
class188.insertMenuItemNoShift("Close", "", 26, 0, 0, var0.id);
|
|
}
|
|
|
|
if (var0.buttonType == 4) {
|
|
class188.insertMenuItemNoShift(var0.buttonText, "", 28, 0, 0, var0.id);
|
|
}
|
|
|
|
if (var0.buttonType == 5) {
|
|
class188.insertMenuItemNoShift(var0.buttonText, "", 29, 0, 0, var0.id);
|
|
}
|
|
|
|
if (var0.buttonType == 6 && Client.field850 == null) {
|
|
class188.insertMenuItemNoShift(var0.buttonText, "", 30, 0, -1, var0.id);
|
|
}
|
|
|
|
int var4;
|
|
int var13;
|
|
if (var0.type == 2) {
|
|
var13 = 0;
|
|
|
|
for (var4 = 0; var4 < var0.height; ++var4) {
|
|
for (int var5 = 0; var5 < var0.width; ++var5) {
|
|
int var6 = (var0.paddingX + 32) * var5;
|
|
int var7 = (var0.paddingY + 32) * var4;
|
|
if (var13 < 20) {
|
|
var6 += var0.inventoryXOffsets[var13];
|
|
var7 += var0.inventoryYOffsets[var13];
|
|
}
|
|
|
|
if (var1 >= var6 && var2 >= var7 && var1 < var6 + 32 && var2 < var7 + 32) {
|
|
Client.dragItemSlotDestination = var13;
|
|
class294.field3697 = var0;
|
|
if (var0.itemIds[var13] > 0) {
|
|
ItemDefinition var8 = WorldMapArea.getItemDefinition(var0.itemIds[var13] - 1);
|
|
if (Client.isItemSelected == 1 && Script.method2185(class268.getWidgetClickMask(var0))) {
|
|
if (var0.id != MouseRecorder.selectedItemWidget || var13 != WorldMapIcon_1.selectedItemSlot) {
|
|
class188.insertMenuItemNoShift("Use", Client.selectedItemName + " " + "->" + " " + ClientPreferences.colorStartTag(16748608) + var8.name, 31, var8.id, var13, var0.id);
|
|
}
|
|
} else if (Client.isSpellSelected && Script.method2185(class268.getWidgetClickMask(var0))) {
|
|
if ((WorldMapCacheName.selectedSpellFlags & 16) == 16) {
|
|
class188.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + ClientPreferences.colorStartTag(16748608) + var8.name, 32, var8.id, var13, var0.id);
|
|
}
|
|
} else {
|
|
String[] var9 = var8.inventoryActions;
|
|
int var10 = -1;
|
|
if (Client.shiftClickDrop) {
|
|
boolean var11 = Client.tapToDrop || KeyHandler.KeyHandler_pressedKeys[81];
|
|
if (var11) {
|
|
var10 = var8.getShiftClickIndex();
|
|
}
|
|
}
|
|
|
|
int var16;
|
|
if (Script.method2185(class268.getWidgetClickMask(var0))) {
|
|
for (var16 = 4; var16 >= 3; --var16) {
|
|
if (var16 != var10) {
|
|
WorldMapRectangle.addWidgetItemMenuItem(var0, var8, var13, var16, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
if (class195.method3685(class268.getWidgetClickMask(var0))) {
|
|
class188.insertMenuItemNoShift("Use", ClientPreferences.colorStartTag(16748608) + var8.name, 38, var8.id, var13, var0.id);
|
|
}
|
|
|
|
if (Script.method2185(class268.getWidgetClickMask(var0))) {
|
|
for (var16 = 2; var16 >= 0; --var16) {
|
|
if (var10 != var16) {
|
|
WorldMapRectangle.addWidgetItemMenuItem(var0, var8, var13, var16, false);
|
|
}
|
|
}
|
|
|
|
if (var10 >= 0) {
|
|
WorldMapRectangle.addWidgetItemMenuItem(var0, var8, var13, var10, true);
|
|
}
|
|
}
|
|
|
|
var9 = var0.itemActions;
|
|
if (var9 != null) {
|
|
for (var16 = 4; var16 >= 0; --var16) {
|
|
if (var9[var16] != null) {
|
|
byte var12 = 0;
|
|
if (var16 == 0) {
|
|
var12 = 39;
|
|
}
|
|
|
|
if (var16 == 1) {
|
|
var12 = 40;
|
|
}
|
|
|
|
if (var16 == 2) {
|
|
var12 = 41;
|
|
}
|
|
|
|
if (var16 == 3) {
|
|
var12 = 42;
|
|
}
|
|
|
|
if (var16 == 4) {
|
|
var12 = 43;
|
|
}
|
|
|
|
class188.insertMenuItemNoShift(var9[var16], ClientPreferences.colorStartTag(16748608) + var8.name, var12, var8.id, var13, var0.id);
|
|
}
|
|
}
|
|
}
|
|
|
|
class188.insertMenuItemNoShift("Examine", ClientPreferences.colorStartTag(16748608) + var8.name, 1005, var8.id, var13, var0.id);
|
|
}
|
|
}
|
|
}
|
|
|
|
++var13;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (var0.isIf3) {
|
|
if (Client.isSpellSelected) {
|
|
if (class96.method2266(class268.getWidgetClickMask(var0)) && (WorldMapCacheName.selectedSpellFlags & 32) == 32) {
|
|
class188.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + var0.dataText, 58, 0, var0.childIndex, var0.id);
|
|
}
|
|
} else {
|
|
for (var13 = 9; var13 >= 5; --var13) {
|
|
String var14 = UserComparator10.method3407(var0, var13);
|
|
if (var14 != null) {
|
|
class188.insertMenuItemNoShift(var14, var0.dataText, 1007, var13 + 1, var0.childIndex, var0.id);
|
|
}
|
|
}
|
|
|
|
var3 = FontName.method5318(var0);
|
|
if (var3 != null) {
|
|
class188.insertMenuItemNoShift(var3, var0.dataText, 25, 0, var0.childIndex, var0.id);
|
|
}
|
|
|
|
for (var4 = 4; var4 >= 0; --var4) {
|
|
String var15 = UserComparator10.method3407(var0, var4);
|
|
if (var15 != null) {
|
|
Entity.insertMenuItem(var15, var0.dataText, 57, var4 + 1, var0.childIndex, var0.id, var0.field2691);
|
|
}
|
|
}
|
|
|
|
if (InterfaceParent.method1119(class268.getWidgetClickMask(var0))) {
|
|
class188.insertMenuItemNoShift("Continue", "", 30, 0, var0.childIndex, var0.id);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|