mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-12 01:21:20 -07:00
Renamed texture operations
Started separating out draw calls
This commit is contained in:
parent
9a3d79abf0
commit
c1efb2a344
227 changed files with 5048 additions and 5118 deletions
|
|
@ -3,16 +3,20 @@ package org.runite.client;
|
|||
import org.rs09.client.config.GameConfig;
|
||||
|
||||
|
||||
final class Class21 {
|
||||
public final class Class21 {
|
||||
|
||||
static boolean aBoolean440 = false;
|
||||
static int[] maskUpdateIndexes = new int[2048];
|
||||
static int anInt443;
|
||||
public static int anInt3537;
|
||||
public static int anInt3552;
|
||||
public static int anInt3395;
|
||||
public static int anInt1462;
|
||||
|
||||
|
||||
static void method912() {
|
||||
try {
|
||||
Class3_Sub13_Sub1.outgoingBuffer.index = 0;
|
||||
TextureOperation12.outgoingBuffer.index = 0;
|
||||
Class7.anInt2166 = -1;
|
||||
Class38_Sub1.aBoolean2615 = false;
|
||||
Unsorted.incomingPacketLength = 0;
|
||||
|
|
@ -27,9 +31,9 @@ final class Class21 {
|
|||
Unsorted.incomingOpcode = -1;
|
||||
|
||||
int var1;
|
||||
for (var1 = 0; Class3_Sub13_Sub22.players.length > var1; ++var1) {
|
||||
if (null != Class3_Sub13_Sub22.players[var1]) {
|
||||
Class3_Sub13_Sub22.players[var1].anInt2772 = -1;
|
||||
for (var1 = 0; TextureOperation0.players.length > var1; ++var1) {
|
||||
if (null != TextureOperation0.players[var1]) {
|
||||
TextureOperation0.players[var1].anInt2772 = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +51,7 @@ final class Class21 {
|
|||
Unsorted.aBooleanArray3674[var1] = true;
|
||||
}
|
||||
|
||||
Class3_Sub13_Sub8.method204(-3);
|
||||
TextureOperation9.method204(-3);
|
||||
} catch (RuntimeException var2) {
|
||||
throw ClientErrorException.clientError(var2, "dh.F(" + false + ')');
|
||||
}
|
||||
|
|
@ -70,8 +74,8 @@ final class Class21 {
|
|||
Class3_Sub31 var4 = new Class3_Sub31();
|
||||
var4.anInt2603 = walkable;
|
||||
var4.anInt2602 = interfaceId;
|
||||
Class3_Sub13_Sub17.aHashTable_3208.put(interfaceHash, var4);
|
||||
Class3_Sub13_Sub13.method232(interfaceId);
|
||||
TextureOperation23.aHashTable_3208.put(interfaceHash, var4);
|
||||
TextureOperation20.method232(interfaceId);
|
||||
RSInterface var5 = Class7.getRSInterface(interfaceHash);
|
||||
if (var5 == null) {
|
||||
System.out.println("Invalid interface opened - [window=" + (interfaceHash >> 16) + ", child=" + (interfaceHash & 0xFF) + ", id=" + interfaceId + "]");
|
||||
|
|
@ -79,43 +83,43 @@ final class Class21 {
|
|||
Class20.method909(var5);
|
||||
}
|
||||
|
||||
if (null != Class3_Sub13_Sub7.aClass11_3087) {
|
||||
Class20.method909(Class3_Sub13_Sub7.aClass11_3087);
|
||||
Class3_Sub13_Sub7.aClass11_3087 = null;
|
||||
if (null != TextureOperation27.aClass11_3087) {
|
||||
Class20.method909(TextureOperation27.aClass11_3087);
|
||||
TextureOperation27.aClass11_3087 = null;
|
||||
}
|
||||
|
||||
int var6 = Unsorted.menuOptionCount;
|
||||
|
||||
int var7;
|
||||
for (var7 = 0; var6 > var7; ++var7) {
|
||||
if (Unsorted.method73(Class3_Sub13_Sub7.aShortArray3095[var7])) {
|
||||
if (Unsorted.method73(TextureOperation27.aShortArray3095[var7])) {
|
||||
Class3_Sub25.method509(var7);
|
||||
}
|
||||
}
|
||||
|
||||
if (1 == Unsorted.menuOptionCount) {
|
||||
Class38_Sub1.aBoolean2615 = false;
|
||||
Class75.method1340(AbstractIndexedSprite.anInt1462, Class3_Sub28_Sub3.anInt3552, Class3_Sub13_Sub33.anInt3395, Class3_Sub28_Sub1.anInt3537);
|
||||
method1340(anInt1462, anInt3552, anInt3395, anInt3537);
|
||||
} else {
|
||||
Class75.method1340(AbstractIndexedSprite.anInt1462, Class3_Sub28_Sub3.anInt3552, Class3_Sub13_Sub33.anInt3395, Class3_Sub28_Sub1.anInt3537);
|
||||
var7 = Class168.bold.method682(RSString.parse(GameConfig.RCM_TITLE));
|
||||
method1340(anInt1462, anInt3552, anInt3395, anInt3537);
|
||||
var7 = FontType.bold.method682(RSString.parse(GameConfig.RCM_TITLE));
|
||||
|
||||
for (int var8 = 0; Unsorted.menuOptionCount > var8; ++var8) {
|
||||
int var9 = Class168.bold.method682(Unsorted.method802(var8));
|
||||
int var9 = FontType.bold.method682(Unsorted.method802(var8));
|
||||
if (var7 < var9) {
|
||||
var7 = var9;
|
||||
}
|
||||
}
|
||||
|
||||
Class3_Sub28_Sub3.anInt3552 = 8 + var7;
|
||||
Class3_Sub28_Sub1.anInt3537 = 15 * Unsorted.menuOptionCount + (!Unsorted.aBoolean1951 ? 22 : 26);
|
||||
anInt3552 = 8 + var7;
|
||||
anInt3537 = 15 * Unsorted.menuOptionCount + (!Unsorted.aBoolean1951 ? 22 : 26);
|
||||
}
|
||||
|
||||
if (var5 != null) {
|
||||
Unsorted.method2104(var5, false, 55);
|
||||
}
|
||||
|
||||
Class3_Sub13_Sub12.method226(interfaceId);
|
||||
TextureOperation24.method226(interfaceId);
|
||||
if (Class3_Sub28_Sub12.anInt3655 != -1) {
|
||||
Class3_Sub8.method124(6422 ^ 6509, 1, Class3_Sub28_Sub12.anInt3655);
|
||||
}
|
||||
|
|
@ -149,4 +153,17 @@ final class Class21 {
|
|||
}
|
||||
}
|
||||
|
||||
public static void method1340(int var0, int var1, int var3, int var4) {
|
||||
try {
|
||||
|
||||
for (int var5 = 0; var5 < Class3_Sub28_Sub3.anInt3557; ++var5) {
|
||||
if (var0 < Class3_Sub28_Sub18.anIntArray3768[var5] + Class155.anIntArray1969[var5] && Class155.anIntArray1969[var5] < var1 + var0 && Class140_Sub4.anIntArray2794[var5] + Player.anIntArray3954[var5] > var3 && Player.anIntArray3954[var5] < var3 - -var4) {
|
||||
Unsorted.aBooleanArray3674[var5] = true;
|
||||
}
|
||||
}
|
||||
|
||||
} catch (RuntimeException var6) {
|
||||
throw ClientErrorException.clientError(var6, "kf.I(" + var0 + ',' + var1 + ',' + (byte) -40 + ',' + var3 + ',' + var4 + ')');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue