mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25: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
|
|
@ -15,8 +15,10 @@ public final class WorldMapFont {
|
|||
|
||||
@OriginalMember(owner = "client!fd", name = "d", descriptor = "Ljava/lang/String;")
|
||||
public static final String ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:'@#~,<.>/?\\| " + String.valueOf('Ä') + 'Ë' + 'Ï' + 'Ö' + 'Ü' + 'ä' + 'ë' + 'ï' + 'ö' + 'ü' + 'ÿ' + 'ß' + 'Á' + 'À' + 'É' + 'È' + 'Í' + 'Ì' + 'Ó' + 'Ò' + 'Ú' + 'Ù' + 'á' + 'à' + 'é' + 'è' + 'í' + 'ì' + 'ó' + 'ò' + 'ú' + 'ù' + 'Â' + 'Ê' + 'Î' + 'Ô' + 'Û' + 'â' + 'ê' + 'î' + 'ô' + 'û' + 'Æ' + 'æ';
|
||||
@OriginalMember(owner = "client!fd", name = "e", descriptor = "I")
|
||||
public static final int ALPHABET_SIZE = ALPHABET.length();
|
||||
|
||||
@OriginalMember(owner = "client!fd", name = "f", descriptor = "[I")
|
||||
@OriginalMember(owner = "client!fd", name = "f", descriptor = "[I")
|
||||
private static final int[] CHAR_INDEXES = new int[256];
|
||||
|
||||
@OriginalMember(owner = "client!fd", name = "c", descriptor = "I")
|
||||
|
|
@ -40,26 +42,26 @@ public final class WorldMapFont {
|
|||
|
||||
@OriginalMember(owner = "client!fd", name = "<init>", descriptor = "(IZLjava/awt/Component;)V")
|
||||
public WorldMapFont(@OriginalArg(0) int arg0, @OriginalArg(1) boolean arg1, @OriginalArg(2) Component arg2) {
|
||||
this.dataIndex = Static66.ALPHABET_SIZE * 9;
|
||||
this.dataIndex = ALPHABET_SIZE * 9;
|
||||
this.grayscale = false;
|
||||
@Pc(30) Font local30 = new Font("Helvetica", 1, arg0);
|
||||
@Pc(34) FontMetrics local34 = arg2.getFontMetrics(local30);
|
||||
@Pc(36) int local36;
|
||||
for (local36 = 0; local36 < Static66.ALPHABET_SIZE; local36++) {
|
||||
for (local36 = 0; local36 < ALPHABET_SIZE; local36++) {
|
||||
this.preRenderGlyph(local30, local34, ALPHABET.charAt(local36), local36, false);
|
||||
}
|
||||
if (this.grayscale) {
|
||||
this.dataIndex = Static66.ALPHABET_SIZE * 9;
|
||||
this.dataIndex = ALPHABET_SIZE * 9;
|
||||
this.grayscale = false;
|
||||
local30 = new Font("Helvetica", 0, arg0);
|
||||
local34 = arg2.getFontMetrics(local30);
|
||||
for (local36 = 0; local36 < Static66.ALPHABET_SIZE; local36++) {
|
||||
for (local36 = 0; local36 < ALPHABET_SIZE; local36++) {
|
||||
this.preRenderGlyph(local30, local34, ALPHABET.charAt(local36), local36, false);
|
||||
}
|
||||
if (!this.grayscale) {
|
||||
this.dataIndex = Static66.ALPHABET_SIZE * 9;
|
||||
this.dataIndex = ALPHABET_SIZE * 9;
|
||||
this.grayscale = false;
|
||||
for (local36 = 0; local36 < Static66.ALPHABET_SIZE; local36++) {
|
||||
for (local36 = 0; local36 < ALPHABET_SIZE; local36++) {
|
||||
this.preRenderGlyph(local30, local34, ALPHABET.charAt(local36), local36, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue