mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 16:35:14 -06:00
Started organizing CS2/Protocol-related functions
This commit is contained in:
parent
46740027df
commit
ef6a5d7385
268 changed files with 5936 additions and 6093 deletions
|
|
@ -1,6 +1,21 @@
|
|||
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