rev184
This commit is contained in:
@@ -1,149 +1,20 @@
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.awt.image.PixelGrabber;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import javax.imageio.ImageIO;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("i")
|
||||
public class class16 {
|
||||
@ObfuscatedName("x")
|
||||
@Export("FileSystem_cacheDir")
|
||||
static File FileSystem_cacheDir;
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BI)Lli;",
|
||||
garbageValue = "509351236"
|
||||
)
|
||||
@Export("convertJpgToSprite")
|
||||
public static final Sprite convertJpgToSprite(byte[] var0) {
|
||||
BufferedImage var1 = null;
|
||||
|
||||
try {
|
||||
var1 = ImageIO.read(new ByteArrayInputStream(var0));
|
||||
int var2 = var1.getWidth();
|
||||
int var3 = var1.getHeight();
|
||||
int[] var4 = new int[var2 * var3];
|
||||
PixelGrabber var5 = new PixelGrabber(var1, 0, 0, var2, var3, var4, 0, var2);
|
||||
var5.grabPixels();
|
||||
return new Sprite(var4, var2, var3);
|
||||
} catch (IOException var7) {
|
||||
} catch (InterruptedException var8) {
|
||||
}
|
||||
|
||||
return new Sprite(0, 0);
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcu;ZI)I",
|
||||
garbageValue = "443442748"
|
||||
)
|
||||
static int method162(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = Player.getWidget(Interpreter.Interpreter_intStack[--class160.Interpreter_intStackSize]);
|
||||
if (var0 == ScriptOpcodes.IF_GETSCROLLX) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.scrollX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETSCROLLY) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.scrollY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTEXT) {
|
||||
Interpreter.Interpreter_stringStack[++TextureProvider.Interpreter_stringStackSize - 1] = var3.text;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETSCROLLWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.scrollWidth;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETSCROLLHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.scrollHeight;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELZOOM) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.modelZoom;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_X) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.modelAngleX;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_Z) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.modelAngleZ;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_Y) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.modelAngleY;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTRANSTOP) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.transparencyTop;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTRANSBOT) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.transparencyBot;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.color;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETFILLCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.color2;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETFILLMODE) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELTRANSPARENT) {
|
||||
Interpreter.Interpreter_intStack[++class160.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hh")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lbo;B)V",
|
||||
garbageValue = "-39"
|
||||
)
|
||||
static final void method164(PendingSpawn var0) {
|
||||
long var1 = 0L;
|
||||
int var3 = -1;
|
||||
int var4 = 0;
|
||||
int var5 = 0;
|
||||
if (var0.type == 0) {
|
||||
var1 = WorldMapIcon_1.scene.getBoundaryObjectTag(var0.plane, var0.x, var0.y);
|
||||
}
|
||||
|
||||
if (var0.type == 1) {
|
||||
var1 = WorldMapIcon_1.scene.getWallDecorationTag(var0.plane, var0.x, var0.y);
|
||||
}
|
||||
|
||||
if (var0.type == 2) {
|
||||
var1 = WorldMapIcon_1.scene.getGameObjectTag(var0.plane, var0.x, var0.y);
|
||||
}
|
||||
|
||||
if (var0.type == 3) {
|
||||
var1 = WorldMapIcon_1.scene.getFloorDecorationTag(var0.plane, var0.x, var0.y);
|
||||
}
|
||||
|
||||
if (var1 != 0L) {
|
||||
int var6 = WorldMapIcon_1.scene.getObjectFlags(var0.plane, var0.x, var0.y, var1);
|
||||
var3 = SecureRandomFuture.Entity_unpackID(var1);
|
||||
var4 = var6 & 31;
|
||||
var5 = var6 >> 6 & 3;
|
||||
}
|
||||
|
||||
var0.objectId = var3;
|
||||
var0.field903 = var4;
|
||||
var0.field900 = var5;
|
||||
}
|
||||
|
||||
@ObfuscatedName("kf")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lhy;B)Ljava/lang/String;",
|
||||
garbageValue = "25"
|
||||
)
|
||||
static String method165(Widget var0) {
|
||||
if (WorldMapElement.method4390(class60.getWidgetClickMask(var0)) == 0) {
|
||||
return null;
|
||||
} else {
|
||||
return var0.spellActionName != null && var0.spellActionName.trim().length() != 0 ? var0.spellActionName : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("t")
|
||||
public class class16 {
|
||||
@ObfuscatedName("bv")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lha;"
|
||||
)
|
||||
static StudioGame field101;
|
||||
|
||||
@ObfuscatedName("gt")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)Z",
|
||||
garbageValue = "-194801296"
|
||||
)
|
||||
static boolean method195() {
|
||||
return (Client.drawPlayerNames & 8) != 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user