mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Consolidated a LOT of static classes (first pass)
This commit is contained in:
parent
9789c5b66e
commit
7ffd30e31c
264 changed files with 7190 additions and 8201 deletions
|
|
@ -1,15 +1,13 @@
|
|||
package rt4;
|
||||
|
||||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public final class Static59 {
|
||||
|
||||
@OriginalMember(owner = "client!ej", name = "h", descriptor = "(I)V")
|
||||
public static void method1372() {
|
||||
if (Static226.anInt3953 == 2) {
|
||||
if (Static155.anInt3751 == Mouse.anInt5850 && Static60.anInt1892 == Static280.anInt5895) {
|
||||
if (ScriptRunner.anInt3751 == Mouse.anInt5850 && ScriptRunner.anInt1892 == Static226.anInt5895) {
|
||||
Static226.anInt3953 = 0;
|
||||
if (Cheat.shiftClick && Keyboard.pressedKeys[Keyboard.KEY_SHIFT] && MiniMenu.size > 2) {
|
||||
MiniMenu.doAction(MiniMenu.size - 2);
|
||||
|
|
@ -17,7 +15,7 @@ public final class Static59 {
|
|||
MiniMenu.doAction(MiniMenu.size - 1);
|
||||
}
|
||||
}
|
||||
} else if (Static155.anInt3751 == Mouse.clickX && Static60.anInt1892 == Mouse.clickY) {
|
||||
} else if (ScriptRunner.anInt3751 == Mouse.clickX && ScriptRunner.anInt1892 == Mouse.clickY) {
|
||||
Static226.anInt3953 = 0;
|
||||
if (Cheat.shiftClick && Keyboard.pressedKeys[Keyboard.KEY_SHIFT] && MiniMenu.size > 2) {
|
||||
MiniMenu.doAction(MiniMenu.size - 2);
|
||||
|
|
@ -25,42 +23,10 @@ public final class Static59 {
|
|||
MiniMenu.doAction(MiniMenu.size - 1);
|
||||
}
|
||||
} else {
|
||||
Static280.anInt5895 = Mouse.clickY;
|
||||
Static226.anInt5895 = Mouse.clickY;
|
||||
Static226.anInt3953 = 2;
|
||||
Mouse.anInt5850 = Mouse.clickX;
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ej", name = "a", descriptor = "(IZIJ)Lclient!na;")
|
||||
public static JagString method1376(@OriginalArg(3) long arg0) {
|
||||
@Pc(35) long local35 = arg0 / (long) 10;
|
||||
@Pc(37) int local37 = 1;
|
||||
while (local35 != 0L) {
|
||||
local37++;
|
||||
local35 /= 10;
|
||||
}
|
||||
@Pc(51) int local51 = local37;
|
||||
if (arg0 < 0L) {
|
||||
local51 = local37 + 1;
|
||||
}
|
||||
@Pc(61) byte[] local61 = new byte[local51];
|
||||
if (arg0 < 0L) {
|
||||
local61[0] = 45;
|
||||
}
|
||||
for (@Pc(79) int local79 = 0; local79 < local37; local79++) {
|
||||
@Pc(92) int local92 = (int) (arg0 % (long) 10);
|
||||
arg0 /= 10;
|
||||
if (local92 < 0) {
|
||||
local92 = -local92;
|
||||
}
|
||||
if (local92 > 9) {
|
||||
local92 += 39;
|
||||
}
|
||||
local61[local51 - local79 - 1] = (byte) (local92 + 48);
|
||||
}
|
||||
@Pc(126) JagString local126 = new JagString();
|
||||
local126.chars = local61;
|
||||
local126.length = local51;
|
||||
return local126;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue