64 lines
2.9 KiB
Java
64 lines
2.9 KiB
Java
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
import net.runelite.rs.ScriptOpcodes;
|
|
|
|
@ObfuscatedName("jy")
|
|
public class class268 {
|
|
@ObfuscatedName("w")
|
|
@ObfuscatedSignature(
|
|
signature = "(ILcr;ZI)I",
|
|
garbageValue = "1046379510"
|
|
)
|
|
static int method4893(int var0, Script var1, boolean var2) {
|
|
Widget var3 = WorldMapElement.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
|
if (var0 == ScriptOpcodes.IF_GETSCROLLX) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollX;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETSCROLLY) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollY;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETTEXT) {
|
|
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETSCROLLWIDTH) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollWidth;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETSCROLLHEIGHT) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.scrollHeight;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETMODELZOOM) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelZoom;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_X) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelAngleX;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_Z) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelAngleZ;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_Y) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelAngleY;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETTRANSTOP) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.transparencyTop;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETTRANSBOT) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.transparencyBot;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETCOLOUR) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.color;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETFILLCOLOUR) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.color2;
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETFILLMODE) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.fillMode.rsOrdinal();
|
|
return 1;
|
|
} else if (var0 == ScriptOpcodes.IF_GETMODELTRANSPARENT) {
|
|
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.modelTransparency ? 1 : 0;
|
|
return 1;
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|
|
}
|