mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-16 19:40:18 -07:00
62 lines
1.9 KiB
Java
62 lines
1.9 KiB
Java
package rt4;
|
|
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static226 {
|
|
|
|
@OriginalMember(owner = "client!sf", name = "i", descriptor = "I")
|
|
public static int anInt5084 = 0;
|
|
@OriginalMember(owner = "client!ml", name = "Q", descriptor = "I")
|
|
public static int anInt3953 = 0;
|
|
|
|
@OriginalMember(owner = "client!sf", name = "b", descriptor = "(B)V")
|
|
public static void method3901() {
|
|
@Pc(16) int local16 = Fonts.b12Full.getStringWidth(LocalizedText.CHOOSE_OPTION);
|
|
@Pc(18) int local18;
|
|
@Pc(27) int local27;
|
|
for (local18 = 0; local18 < MiniMenu.size; local18++) {
|
|
local27 = Fonts.b12Full.getStringWidth(MiniMenu.getOp(local18));
|
|
if (local27 > local16) {
|
|
local16 = local27;
|
|
}
|
|
}
|
|
local18 = MiniMenu.size * 15 + 21;
|
|
@Pc(43) int local43 = Static60.anInt1892;
|
|
local16 += 8;
|
|
local27 = Static155.anInt3751 - local16 / 2;
|
|
if (local43 + local18 > GameShell.canvasHeight) {
|
|
local43 = GameShell.canvasHeight - local18;
|
|
}
|
|
if (GameShell.canvasWidth < local27 + local16) {
|
|
local27 = GameShell.canvasWidth - local16;
|
|
}
|
|
if (local27 < 0) {
|
|
local27 = 0;
|
|
}
|
|
if (local43 < 0) {
|
|
local43 = 0;
|
|
}
|
|
if (anInt3953 == 1) {
|
|
if (Static155.anInt3751 == Mouse.anInt5850 && Static280.anInt5895 == Static60.anInt1892) {
|
|
Static13.anInt436 = MiniMenu.size * 15 + (Static40.aBoolean298 ? 26 : 22);
|
|
anInt3953 = 0;
|
|
Static229.anInt5138 = local43;
|
|
Static183.anInt4271 = local27;
|
|
Static40.aBoolean108 = true;
|
|
Static24.anInt761 = local16;
|
|
}
|
|
} else if (Static155.anInt3751 == Mouse.clickX && Static60.anInt1892 == Mouse.clickY) {
|
|
Static183.anInt4271 = local27;
|
|
anInt3953 = 0;
|
|
Static24.anInt761 = local16;
|
|
Static229.anInt5138 = local43;
|
|
Static13.anInt436 = (Static40.aBoolean298 ? 26 : 22) + MiniMenu.size * 15;
|
|
Static40.aBoolean108 = true;
|
|
} else {
|
|
Static280.anInt5895 = Mouse.clickY;
|
|
Mouse.anInt5850 = Mouse.clickX;
|
|
anInt3953 = 1;
|
|
}
|
|
}
|
|
}
|