mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-18 17:05:16 -06:00
Moved source to rt4 package so external code can depend on it
This commit is contained in:
parent
dc6deb9151
commit
153d8569b5
624 changed files with 1253 additions and 7 deletions
|
|
@ -1,21 +0,0 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public class FontMetricsList {
|
||||
@OriginalMember(owner = "client!l", name = "f", descriptor = "Lclient!n;")
|
||||
public static final SoftLruHashTable fontMetrics = new SoftLruHashTable(4);
|
||||
|
||||
@OriginalMember(owner = "client!li", name = "a", descriptor = "(II)Lclient!dd;")
|
||||
public static SoftwareFont get(@OriginalArg(1) int arg0) {
|
||||
@Pc(16) SoftwareFont local16 = (SoftwareFont) fontMetrics.get((long) arg0);
|
||||
if (local16 != null) {
|
||||
return local16;
|
||||
}
|
||||
@Pc(26) byte[] local26 = client.js5Archive13.getFile(arg0, 0);
|
||||
local16 = new SoftwareFont(local26);
|
||||
local16.setNameIcons(Sprites.nameIcons, null);
|
||||
fontMetrics.put(local16, (long) arg0);
|
||||
return local16;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue