mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-19 21:10:19 -07: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
137
client/src/main/java/rt4/Static112.java
Normal file
137
client/src/main/java/rt4/Static112.java
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
package rt4;
|
||||
|
||||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public final class Static112 {
|
||||
|
||||
@OriginalMember(owner = "client!ij", name = "a", descriptor = "Lclient!na;")
|
||||
public static final JagString aClass100_574 = JagString.parse(":duelfriend:");
|
||||
|
||||
@OriginalMember(owner = "client!ij", name = "a", descriptor = "(B)V")
|
||||
public static void method2297() {
|
||||
@Pc(3) int local3 = Static183.anInt4271;
|
||||
@Pc(9) int local9 = Static229.anInt5138;
|
||||
@Pc(11) int local11 = Static13.anInt436;
|
||||
@Pc(13) int local13 = Static24.anInt761;
|
||||
if (Static39.aClass3_Sub2_Sub1_1 == null || Static181.aClass3_Sub2_Sub1_9 == null) {
|
||||
if (client.js5Archive8.isFileReady(Static55.anInt1736) && client.js5Archive8.isFileReady(Static169.anInt4073)) {
|
||||
Static39.aClass3_Sub2_Sub1_1 = Static80.loadSoftwareAlphaSprite(client.js5Archive8, Static55.anInt1736);
|
||||
Static181.aClass3_Sub2_Sub1_9 = Static80.loadSoftwareAlphaSprite(client.js5Archive8, Static169.anInt4073);
|
||||
if (GlRenderer.enabled) {
|
||||
if (Static39.aClass3_Sub2_Sub1_1 instanceof SoftwareAlphaSprite) {
|
||||
Static39.aClass3_Sub2_Sub1_1 = new GlAlphaSprite((SoftwareSprite) Static39.aClass3_Sub2_Sub1_1);
|
||||
} else {
|
||||
Static39.aClass3_Sub2_Sub1_1 = new GlSprite((SoftwareSprite) Static39.aClass3_Sub2_Sub1_1);
|
||||
}
|
||||
if (Static181.aClass3_Sub2_Sub1_9 instanceof SoftwareAlphaSprite) {
|
||||
Static181.aClass3_Sub2_Sub1_9 = new GlAlphaSprite((SoftwareSprite) Static181.aClass3_Sub2_Sub1_9);
|
||||
} else {
|
||||
Static181.aClass3_Sub2_Sub1_9 = new GlSprite((SoftwareSprite) Static181.aClass3_Sub2_Sub1_9);
|
||||
}
|
||||
}
|
||||
} else if (GlRenderer.enabled) {
|
||||
Static46.method1182(local3, local9, local13, 20, Static40.anInt1275, 256 - Static111.anInt2910);
|
||||
} else {
|
||||
SoftwareRaster.method2484(local3, local9, local13, 20, Static40.anInt1275, 256 - Static111.anInt2910);
|
||||
}
|
||||
}
|
||||
@Pc(112) int local112;
|
||||
@Pc(114) int local114;
|
||||
if (Static39.aClass3_Sub2_Sub1_1 != null && Static181.aClass3_Sub2_Sub1_9 != null) {
|
||||
local112 = local13 / Static39.aClass3_Sub2_Sub1_1.anInt1867;
|
||||
for (local114 = 0; local114 < local112; local114++) {
|
||||
Static39.aClass3_Sub2_Sub1_1.method1423(local114 * Static39.aClass3_Sub2_Sub1_1.anInt1867 + local3, local9);
|
||||
}
|
||||
Static181.aClass3_Sub2_Sub1_9.method1423(local3, local9);
|
||||
Static181.aClass3_Sub2_Sub1_9.method1421(local3 + local13 - Static181.aClass3_Sub2_Sub1_9.anInt1867, local9);
|
||||
}
|
||||
Fonts.b12Full.method2857(LocalizedText.CHOOSE_OPTION, local3 + 3, local9 + 14, Static195.anInt4581, -1);
|
||||
if (GlRenderer.enabled) {
|
||||
Static46.method1182(local3, local9 + 20, local13, local11 - 20, Static40.anInt1275, 256 - Static111.anInt2910);
|
||||
} else {
|
||||
SoftwareRaster.method2484(local3, local9 + 20, local13, local11 - 20, Static40.anInt1275, 256 - Static111.anInt2910);
|
||||
}
|
||||
local114 = Mouse.anInt5032;
|
||||
local112 = Mouse.anInt4873;
|
||||
@Pc(203) int local203;
|
||||
@Pc(219) int local219;
|
||||
for (local203 = 0; local203 < Static231.anInt5204; local203++) {
|
||||
local219 = (Static231.anInt5204 - local203 - 1) * 15 + local9 + 35;
|
||||
if (local3 < local112 && local112 < local3 + local13 && local114 > local219 - 13 && local114 < local219 + 3) {
|
||||
if (GlRenderer.enabled) {
|
||||
Static46.method1182(local3, local219 - 13, local13, 16, Static251.anInt5457, 256 - Static232.anInt5208);
|
||||
} else {
|
||||
SoftwareRaster.method2484(local3, local219 - 13, local13, 16, Static251.anInt5457, 256 - Static232.anInt5208);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((Static165.aClass3_Sub2_Sub1_8 == null || Static92.aClass3_Sub2_Sub1_6 == null || Static204.aClass3_Sub2_Sub1_10 == null) && client.js5Archive8.isFileReady(Static85.anInt2261) && client.js5Archive8.isFileReady(Static136.anInt3324) && client.js5Archive8.isFileReady(Static254.anInt5556)) {
|
||||
Static165.aClass3_Sub2_Sub1_8 = Static80.loadSoftwareAlphaSprite(client.js5Archive8, Static85.anInt2261);
|
||||
Static92.aClass3_Sub2_Sub1_6 = Static80.loadSoftwareAlphaSprite(client.js5Archive8, Static136.anInt3324);
|
||||
Static204.aClass3_Sub2_Sub1_10 = Static80.loadSoftwareAlphaSprite(client.js5Archive8, Static254.anInt5556);
|
||||
if (GlRenderer.enabled) {
|
||||
if (Static165.aClass3_Sub2_Sub1_8 instanceof SoftwareAlphaSprite) {
|
||||
Static165.aClass3_Sub2_Sub1_8 = new GlAlphaSprite((SoftwareSprite) Static165.aClass3_Sub2_Sub1_8);
|
||||
} else {
|
||||
Static165.aClass3_Sub2_Sub1_8 = new GlSprite((SoftwareSprite) Static165.aClass3_Sub2_Sub1_8);
|
||||
}
|
||||
if (Static92.aClass3_Sub2_Sub1_6 instanceof SoftwareAlphaSprite) {
|
||||
Static92.aClass3_Sub2_Sub1_6 = new GlAlphaSprite((SoftwareSprite) Static92.aClass3_Sub2_Sub1_6);
|
||||
} else {
|
||||
Static92.aClass3_Sub2_Sub1_6 = new GlSprite((SoftwareSprite) Static92.aClass3_Sub2_Sub1_6);
|
||||
}
|
||||
if (Static204.aClass3_Sub2_Sub1_10 instanceof SoftwareAlphaSprite) {
|
||||
Static204.aClass3_Sub2_Sub1_10 = new GlAlphaSprite((SoftwareSprite) Static204.aClass3_Sub2_Sub1_10);
|
||||
} else {
|
||||
Static204.aClass3_Sub2_Sub1_10 = new GlSprite((SoftwareSprite) Static204.aClass3_Sub2_Sub1_10);
|
||||
}
|
||||
}
|
||||
}
|
||||
@Pc(418) int local418;
|
||||
if (Static165.aClass3_Sub2_Sub1_8 != null && Static92.aClass3_Sub2_Sub1_6 != null && Static204.aClass3_Sub2_Sub1_10 != null) {
|
||||
local203 = local13 / Static165.aClass3_Sub2_Sub1_8.anInt1867;
|
||||
for (local219 = 0; local219 < local203; local219++) {
|
||||
Static165.aClass3_Sub2_Sub1_8.method1423(local3 + Static165.aClass3_Sub2_Sub1_8.anInt1867 * local219, local11 + local9 + -Static165.aClass3_Sub2_Sub1_8.anInt1859);
|
||||
}
|
||||
local219 = (local11 - 20) / Static92.aClass3_Sub2_Sub1_6.anInt1859;
|
||||
for (local418 = 0; local418 < local219; local418++) {
|
||||
Static92.aClass3_Sub2_Sub1_6.method1423(local3, local9 + local418 * Static92.aClass3_Sub2_Sub1_6.anInt1859 + 20);
|
||||
Static92.aClass3_Sub2_Sub1_6.method1421(local3 + local13 - Static92.aClass3_Sub2_Sub1_6.anInt1867, local9 + 20 + local418 * Static92.aClass3_Sub2_Sub1_6.anInt1859);
|
||||
}
|
||||
Static204.aClass3_Sub2_Sub1_10.method1423(local3, local11 + local9 - Static204.aClass3_Sub2_Sub1_10.anInt1859);
|
||||
Static204.aClass3_Sub2_Sub1_10.method1421(local3 + local13 - Static204.aClass3_Sub2_Sub1_10.anInt1867, local9 - -local11 + -Static204.aClass3_Sub2_Sub1_10.anInt1859);
|
||||
}
|
||||
for (local203 = 0; local203 < Static231.anInt5204; local203++) {
|
||||
local219 = (Static231.anInt5204 - local203 - 1) * 15 + local9 + 35;
|
||||
local418 = Static195.anInt4581;
|
||||
if (local3 < local112 && local13 + local3 > local112 && local219 - 13 < local114 && local114 < local219 + 3) {
|
||||
local418 = Static262.anInt5752;
|
||||
}
|
||||
Fonts.b12Full.method2857(Static269.method2228(local203), local3 + 3, local219, local418, 0);
|
||||
}
|
||||
Static121.method2407(Static183.anInt4271, Static229.anInt5138, Static13.anInt436, Static24.anInt761);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ij", name = "a", descriptor = "(Lclient!km;I)I")
|
||||
public static int getSound(@OriginalArg(0) Npc arg0) {
|
||||
@Pc(13) NpcType local13 = arg0.type;
|
||||
if (local13.multiNpcs != null) {
|
||||
local13 = local13.getMultiNpc();
|
||||
if (local13 == null) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@Pc(29) int local29 = local13.walkSound;
|
||||
@Pc(33) BasType local33 = arg0.method2681();
|
||||
if (local33.idleAnimationId == arg0.anInt3366) {
|
||||
local29 = local13.idleSound;
|
||||
} else if (arg0.anInt3366 == local33.runAnimationId || local33.runAnimationId2 == arg0.anInt3366 || arg0.anInt3366 == local33.runAnimationId4 || arg0.anInt3366 == local33.runAnimationId3) {
|
||||
local29 = local13.runSound;
|
||||
} else if (local33.anInt1062 == arg0.anInt3366 || arg0.anInt3366 == local33.anInt1042 || arg0.anInt3366 == local33.anInt1048 || arg0.anInt3366 == local33.anInt1066) {
|
||||
local29 = local13.crawlSound;
|
||||
}
|
||||
return local29;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue