mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-10 10:20:44 -07:00
67 lines
3.3 KiB
Java
67 lines
3.3 KiB
Java
import java.util.Calendar;
|
|
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static102 {
|
|
|
|
@OriginalMember(owner = "client!hn", name = "K", descriptor = "Ljava/util/Calendar;")
|
|
public static final Calendar aCalendar2 = Calendar.getInstance();
|
|
|
|
@OriginalMember(owner = "client!hn", name = "W", descriptor = "Lclient!na;")
|
|
public static JagString aClass100_545 = null;
|
|
|
|
@OriginalMember(owner = "client!hn", name = "Y", descriptor = "I")
|
|
public static int anInt2680 = 0;
|
|
|
|
@OriginalMember(owner = "client!hn", name = "d", descriptor = "(I)Lclient!mm;")
|
|
public static SoftwareSprite method2071() {
|
|
@Pc(13) int local13 = SpriteLoader.innerHeights[0] * SpriteLoader.innerWidths[0];
|
|
@Pc(17) byte[] local17 = SpriteLoader.pixels[0];
|
|
@Pc(78) SoftwareSprite local78;
|
|
if (SpriteLoader.hasAlpha[0]) {
|
|
@Pc(30) byte[] local30 = SpriteLoader.alpha[0];
|
|
@Pc(33) int[] local33 = new int[local13];
|
|
for (@Pc(35) int local35 = 0; local35 < local13; local35++) {
|
|
local33[local35] = (local30[local35] & 0xFF) << 24 | SpriteLoader.palette[local17[local35] & 0xFF];
|
|
}
|
|
local78 = new SoftwareAlphaSprite(SpriteLoader.width, SpriteLoader.height, SpriteLoader.xOffsets[0], SpriteLoader.yOffsets[0], SpriteLoader.innerWidths[0], SpriteLoader.innerHeights[0], local33);
|
|
} else {
|
|
@Pc(83) int[] local83 = new int[local13];
|
|
for (@Pc(85) int local85 = 0; local85 < local13; local85++) {
|
|
local83[local85] = SpriteLoader.palette[local17[local85] & 0xFF];
|
|
}
|
|
local78 = new SoftwareSprite(SpriteLoader.width, SpriteLoader.height, SpriteLoader.xOffsets[0], SpriteLoader.yOffsets[0], SpriteLoader.innerWidths[0], SpriteLoader.innerHeights[0], local83);
|
|
}
|
|
SpriteLoader.clear();
|
|
return local78;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hn", name = "f", descriptor = "(B)V")
|
|
public static void method2073() {
|
|
Static20.objectContainerCache = new HashTable(32);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hn", name = "a", descriptor = "(Lclient!ve;ILclient!ve;)V")
|
|
public static void load(@OriginalArg(0) Js5 arg0, @OriginalArg(2) Js5 arg1) {
|
|
Fonts.p11Full = Static127.method2462(Sprites.p11FullId, arg1, arg0);
|
|
if (GlRenderer.enabled) {
|
|
Static265.p11FullSoftware = Static122.method2412(Sprites.p11FullId, arg0, arg1);
|
|
} else {
|
|
Static265.p11FullSoftware = (SoftwareFont) Fonts.p11Full;
|
|
}
|
|
Fonts.p12Full = Static127.method2462(Sprites.p12FullId, arg1, arg0);
|
|
Fonts.b12Full = Static127.method2462(Sprites.b12FullId, arg1, arg0);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!hn", name = "a", descriptor = "(IIIZIIIIIIII)Z")
|
|
public static boolean method2075(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) boolean arg3, @OriginalArg(4) int arg4, @OriginalArg(6) int arg5, @OriginalArg(7) int arg6, @OriginalArg(8) int arg7, @OriginalArg(9) int arg8, @OriginalArg(10) int arg9, @OriginalArg(11) int arg10) {
|
|
if (PlayerList.self.getSize() == 2) {
|
|
return Static2.method8(arg6, arg7, arg4, arg0, arg9, arg3, arg2, arg1, arg5, arg8, arg10);
|
|
} else if (PlayerList.self.getSize() <= 2) {
|
|
return Static45.method1171(arg5, arg4, arg10, arg9, arg8, arg2, arg1, arg3, arg7, arg0, arg6);
|
|
} else {
|
|
return Static96.method1955(arg9, arg6, arg8, arg1, PlayerList.self.getSize(), arg5, arg7, arg4, arg10, arg2, arg3, arg0);
|
|
}
|
|
}
|
|
}
|