Moved source to rt4 package so external code can depend on it

This commit is contained in:
Pazaz 2022-04-25 05:31:58 -04:00
parent dc6deb9151
commit 153d8569b5
624 changed files with 1253 additions and 7 deletions

View file

@ -0,0 +1,100 @@
package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public final class Static226 {
@OriginalMember(owner = "client!sf", name = "c", descriptor = "I")
public static int anInt5080;
@OriginalMember(owner = "client!sf", name = "j", descriptor = "I")
public static int anInt5085;
@OriginalMember(owner = "client!sf", name = "g", descriptor = "Lclient!na;")
public static final JagString aClass100_965 = JagString.parse("<col=ffff00>");
@OriginalMember(owner = "client!sf", name = "i", descriptor = "I")
public static int anInt5084 = 0;
@OriginalMember(owner = "client!ml", name = "Q", descriptor = "I")
public static int anInt3953 = 0;
@OriginalMember(owner = "client!sf", name = "a", descriptor = "(ILclient!cd;)V")
public static void method3898(@OriginalArg(1) Class3_Sub7 arg0) {
@Pc(5) long local5 = 0L;
@Pc(7) int local7 = -1;
@Pc(14) int local14 = 0;
if (arg0.anInt927 == 0) {
local5 = Static265.method4521(arg0.anInt918, arg0.anInt928, arg0.anInt916);
}
@Pc(31) int local31 = 0;
if (arg0.anInt927 == 1) {
local5 = Static139.method2703(arg0.anInt918, arg0.anInt928, arg0.anInt916);
}
if (arg0.anInt927 == 2) {
local5 = Static35.method899(arg0.anInt918, arg0.anInt928, arg0.anInt916);
}
if (arg0.anInt927 == 3) {
local5 = Static20.method602(arg0.anInt918, arg0.anInt928, arg0.anInt916);
}
if (local5 != 0L) {
local7 = Integer.MAX_VALUE & (int) (local5 >>> 32);
local31 = (int) local5 >> 20 & 0x3;
local14 = (int) local5 >> 14 & 0x1F;
}
arg0.anInt921 = local7;
arg0.anInt920 = local14;
arg0.anInt923 = local31;
}
@OriginalMember(owner = "client!sf", name = "b", descriptor = "(B)V")
public static void method3901() {
@Pc(16) int local16 = Fonts.b12Full.getStringWidth(LocalizedText.CHOOSE_OPTION);
@Pc(18) int local18;
@Pc(27) int local27;
for (local18 = 0; local18 < Static231.anInt5204; local18++) {
local27 = Fonts.b12Full.getStringWidth(Static269.method2228(local18));
if (local27 > local16) {
local16 = local27;
}
}
local18 = Static231.anInt5204 * 15 + 21;
@Pc(43) int local43 = Static60.anInt1892;
local16 += 8;
local27 = Static155.anInt3751 - local16 / 2;
if (local43 + local18 > GameShell.canvasHeight) {
local43 = GameShell.canvasHeight - local18;
}
if (GameShell.canvasWidth < local27 + local16) {
local27 = GameShell.canvasWidth - local16;
}
if (local27 < 0) {
local27 = 0;
}
if (local43 < 0) {
local43 = 0;
}
if (anInt3953 == 1) {
if (Static155.anInt3751 == Static277.anInt5850 && Static280.anInt5895 == Static60.anInt1892) {
Static13.anInt436 = Static231.anInt5204 * 15 + (Static261.aBoolean298 ? 26 : 22);
anInt3953 = 0;
Static229.anInt5138 = local43;
Static183.anInt4271 = local27;
Static60.aBoolean108 = true;
Static24.anInt761 = local16;
}
} else if (Static155.anInt3751 == Mouse.clickX && Static60.anInt1892 == Mouse.clickY) {
Static183.anInt4271 = local27;
anInt3953 = 0;
Static24.anInt761 = local16;
Static229.anInt5138 = local43;
Static13.anInt436 = (Static261.aBoolean298 ? 26 : 22) + Static231.anInt5204 * 15;
Static60.aBoolean108 = true;
} else {
Static280.anInt5895 = Mouse.clickY;
Static277.anInt5850 = Mouse.clickX;
anInt3953 = 1;
}
}
}