Replace opcode constants with ScriptOpcodes field refs in rsclient
This commit is contained in:
@@ -7,6 +7,7 @@ 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("g")
|
||||
@Implements("GrandExchangeEvents")
|
||||
@@ -109,43 +110,43 @@ public class GrandExchangeEvents {
|
||||
)
|
||||
static int method75(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = Huffman.getWidget(Interpreter.Interpreter_intStack[--RouteStrategy.Interpreter_intStackSize]);
|
||||
if (var0 == 2600) {
|
||||
if (var0 == ScriptOpcodes.IF_GETSCROLLX) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.scrollX;
|
||||
return 1;
|
||||
} else if (var0 == 2601) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETSCROLLY) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.scrollY;
|
||||
return 1;
|
||||
} else if (var0 == 2602) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTEXT) {
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var3.text;
|
||||
return 1;
|
||||
} else if (var0 == 2603) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETSCROLLWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.scrollWidth;
|
||||
return 1;
|
||||
} else if (var0 == 2604) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETSCROLLHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.scrollHeight;
|
||||
return 1;
|
||||
} else if (var0 == 2605) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELZOOM) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.modelZoom;
|
||||
return 1;
|
||||
} else if (var0 == 2606) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_X) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.modelAngleX;
|
||||
return 1;
|
||||
} else if (var0 == 2607) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_Z) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.modelAngleZ;
|
||||
return 1;
|
||||
} else if (var0 == 2608) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETMODELANGLE_Y) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.modelAngleY;
|
||||
return 1;
|
||||
} else if (var0 == 2609) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTRANS) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.transparency;
|
||||
return 1;
|
||||
} else if (var0 == 2610) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.field960;
|
||||
return 1;
|
||||
} else if (var0 == 2611) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.color;
|
||||
return 1;
|
||||
} else if (var0 == 2612) {
|
||||
} else if (var0 == ScriptOpcodes.IF_GETFILLCOLOUR) {
|
||||
Interpreter.Interpreter_intStack[++RouteStrategy.Interpreter_intStackSize - 1] = var3.color2;
|
||||
return 1;
|
||||
} else if (var0 == 2613) {
|
||||
|
||||
Reference in New Issue
Block a user