mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-17 20:10:21 -07:00
64 lines
2 KiB
Java
64 lines
2 KiB
Java
package rt4;
|
|
|
|
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static33 {
|
|
|
|
@OriginalMember(owner = "client!cj", name = "n", descriptor = "Lsignlink!im;")
|
|
public static PrivilegedRequest openUrlRequest;
|
|
|
|
@OriginalMember(owner = "client!cj", name = "a", descriptor = "(ILclient!pb;ZIIII)Z")
|
|
public static boolean method867(@OriginalArg(0) int arg0, @OriginalArg(1) LocType arg1, @OriginalArg(5) int arg2, @OriginalArg(6) int arg3) {
|
|
@Pc(10) MsiType local10 = MsiTypeList.get(arg1.mapSceneId);
|
|
if (local10.spriteId == -1) {
|
|
return true;
|
|
}
|
|
if (arg1.mapSceneRotated) {
|
|
@Pc(24) int local24 = arg3 + arg1.mapSceneAngleOffset;
|
|
arg3 = local24 & 0x3;
|
|
} else {
|
|
arg3 = 0;
|
|
}
|
|
@Pc(42) SoftwareIndexedSprite local42 = local10.getSprite(arg3);
|
|
if (local42 == null) {
|
|
return false;
|
|
}
|
|
@Pc(49) int local49 = arg1.width;
|
|
@Pc(52) int local52 = arg1.length;
|
|
if ((arg3 & 0x1) == 1) {
|
|
local49 = arg1.length;
|
|
local52 = arg1.width;
|
|
}
|
|
@Pc(66) int local66 = local42.innerWidth;
|
|
@Pc(69) int local69 = local42.innerHeight;
|
|
if (local10.aBoolean2) {
|
|
local69 = local52 * 4;
|
|
local66 = local49 * 4;
|
|
}
|
|
if (local10.anInt11 == 0) {
|
|
local42.method1398(arg0 * 4 + 48, (-local52 + -arg2 + 104) * 4 + 48, local66, local69);
|
|
} else {
|
|
local42.method1390(arg0 * 4 + 48, (-local52 + -arg2 + 104) * 4 + 48, local66, local69, local10.anInt11);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!cj", name = "a", descriptor = "(ZIIIIIIFB)[[I")
|
|
public static int[][] method874(@OriginalArg(7) float arg0) {
|
|
@Pc(15) int[][] local15 = new int[256][64];
|
|
@Pc(19) TextureOp34 local19 = new TextureOp34();
|
|
local19.anInt648 = (int) (arg0 * 4096.0F);
|
|
local19.anInt642 = 3;
|
|
local19.anInt641 = 4;
|
|
local19.aBoolean44 = false;
|
|
local19.anInt646 = 8;
|
|
local19.postDecode();
|
|
Texture.setSize(256, 64);
|
|
for (@Pc(46) int local46 = 0; local46 < 256; local46++) {
|
|
local19.method584(local46, local15[local46]);
|
|
}
|
|
return local15;
|
|
}
|
|
}
|