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,57 @@
package rt4;
import org.openrs2.deob.annotation.OriginalArg;
import org.openrs2.deob.annotation.OriginalMember;
import org.openrs2.deob.annotation.Pc;
public class Fonts {
@OriginalMember(owner = "client!j", name = "x", descriptor = "Lclient!rk;")
public static Font p11Full;
@OriginalMember(owner = "client!rh", name = "h", descriptor = "Lclient!rk;")
public static Font p12Full;
@OriginalMember(owner = "client!wl", name = "q", descriptor = "Lclient!rk;")
public static Font b12Full;
@OriginalMember(owner = "client!vj", name = "j", descriptor = "Lclient!dd;")
public static SoftwareFont p11FullSoftware;
@OriginalMember(owner = "client!fn", name = "a", descriptor = "(Lclient!ve;Lclient!ve;Z)I")
public static int getReady(@OriginalArg(0) Js5 arg0, @OriginalArg(1) Js5 arg1) {
@Pc(5) int ready = 0;
if (arg0.isFileReady(Sprites.p11FullId)) {
ready++;
}
if (arg0.isFileReady(Sprites.p12FullId)) {
ready++;
}
if (arg0.isFileReady(Sprites.b12FullId)) {
ready++;
}
if (arg1.isFileReady(Sprites.p11FullId)) {
ready++;
}
if (arg1.isFileReady(Sprites.p12FullId)) {
ready++;
}
if (arg1.isFileReady(Sprites.b12FullId)) {
ready++;
}
return ready;
}
@OriginalMember(owner = "client!ld", name = "a", descriptor = "(B)I")
public static int getTotal() {
return 6;
}
@OriginalMember(owner = "client!hn", name = "a", descriptor = "(Lclient!ve;ILclient!ve;)V")
public static void load(@OriginalArg(0) Js5 arg0, @OriginalArg(2) Js5 arg1) {
p11Full = Static127.method2462(Sprites.p11FullId, arg1, arg0);
if (GlRenderer.enabled) {
p11FullSoftware = Static122.method2412(Sprites.p11FullId, arg0, arg1);
} else {
p11FullSoftware = (SoftwareFont) p11Full;
}
p12Full = Static127.method2462(Sprites.p12FullId, arg1, arg0);
b12Full = Static127.method2462(Sprites.b12FullId, arg1, arg0);
}
}