mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-19 21:10:19 -07:00
113 lines
6.4 KiB
Java
113 lines
6.4 KiB
Java
package rt4;
|
|
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static112 {
|
|
|
|
@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 = SoftwareSprite.loadSoftwareAlphaSprite(client.js5Archive8, Static55.anInt1736);
|
|
Static181.aClass3_Sub2_Sub1_9 = SoftwareSprite.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) {
|
|
GlRaster.fillRectAlpha(local3, local9, local13, 20, Static40.anInt1275, 256 - Static111.anInt2910);
|
|
} else {
|
|
SoftwareRaster.fillRectAlpha(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.width;
|
|
for (local114 = 0; local114 < local112; local114++) {
|
|
Static39.aClass3_Sub2_Sub1_1.render(local114 * Static39.aClass3_Sub2_Sub1_1.width + local3, local9);
|
|
}
|
|
Static181.aClass3_Sub2_Sub1_9.render(local3, local9);
|
|
Static181.aClass3_Sub2_Sub1_9.renderHorizontalFlip(local3 + local13 - Static181.aClass3_Sub2_Sub1_9.width, local9);
|
|
}
|
|
Fonts.b12Full.renderLeft(LocalizedText.CHOOSE_OPTION, local3 + 3, local9 + 14, Static195.anInt4581, -1);
|
|
if (GlRenderer.enabled) {
|
|
GlRaster.fillRectAlpha(local3, local9 + 20, local13, local11 - 20, Static40.anInt1275, 256 - Static111.anInt2910);
|
|
} else {
|
|
SoftwareRaster.fillRectAlpha(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 < MiniMenu.size; local203++) {
|
|
local219 = (MiniMenu.size - local203 - 1) * 15 + local9 + 35;
|
|
if (local3 < local112 && local112 < local3 + local13 && local114 > local219 - 13 && local114 < local219 + 3) {
|
|
if (GlRenderer.enabled) {
|
|
GlRaster.fillRectAlpha(local3, local219 - 13, local13, 16, Static251.anInt5457, 256 - Static232.anInt5208);
|
|
} else {
|
|
SoftwareRaster.fillRectAlpha(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 = SoftwareSprite.loadSoftwareAlphaSprite(client.js5Archive8, Static85.anInt2261);
|
|
Static92.aClass3_Sub2_Sub1_6 = SoftwareSprite.loadSoftwareAlphaSprite(client.js5Archive8, Static136.anInt3324);
|
|
Static204.aClass3_Sub2_Sub1_10 = SoftwareSprite.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.width;
|
|
for (local219 = 0; local219 < local203; local219++) {
|
|
Static165.aClass3_Sub2_Sub1_8.render(local3 + Static165.aClass3_Sub2_Sub1_8.width * local219, local11 + local9 + -Static165.aClass3_Sub2_Sub1_8.height);
|
|
}
|
|
local219 = (local11 - 20) / Static92.aClass3_Sub2_Sub1_6.height;
|
|
for (local418 = 0; local418 < local219; local418++) {
|
|
Static92.aClass3_Sub2_Sub1_6.render(local3, local9 + local418 * Static92.aClass3_Sub2_Sub1_6.height + 20);
|
|
Static92.aClass3_Sub2_Sub1_6.renderHorizontalFlip(local3 + local13 - Static92.aClass3_Sub2_Sub1_6.width, local9 + 20 + local418 * Static92.aClass3_Sub2_Sub1_6.height);
|
|
}
|
|
Static204.aClass3_Sub2_Sub1_10.render(local3, local11 + local9 - Static204.aClass3_Sub2_Sub1_10.height);
|
|
Static204.aClass3_Sub2_Sub1_10.renderHorizontalFlip(local3 + local13 - Static204.aClass3_Sub2_Sub1_10.width, local9 - -local11 + -Static204.aClass3_Sub2_Sub1_10.height);
|
|
}
|
|
for (local203 = 0; local203 < MiniMenu.size; local203++) {
|
|
local219 = (MiniMenu.size - 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.renderLeft(MiniMenu.getOp(local203), local3 + 3, local219, local418, 0);
|
|
}
|
|
Static121.method2407(Static183.anInt4271, Static229.anInt5138, Static13.anInt436, Static24.anInt761);
|
|
}
|
|
|
|
}
|