mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 21:40:30 -07:00
Refactored more CS2 stuff
This commit is contained in:
parent
e5eeecd0ad
commit
79fdaf96f8
154 changed files with 1382 additions and 1378 deletions
|
|
@ -6,10 +6,10 @@ public final class Static236 {
|
|||
|
||||
@OriginalMember(owner = "client!tc", name = "a", descriptor = "(B)I")
|
||||
public static int method4047() {
|
||||
if (Static127.aBoolean160) {
|
||||
if (Static127.neverRemoveRoofs) {
|
||||
return 0;
|
||||
} else if (Static138.allLevelsAreVisible()) {
|
||||
return Static80.aBoolean231 ? 2 : 1;
|
||||
return Static80.removeRoofsSelectively ? 2 : 1;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -27,10 +27,10 @@ public final class Static236 {
|
|||
if (Static22.anInt723 != 0) {
|
||||
if (arg4 <= arg3 && arg4 + 16 > arg3 && arg0 >= arg5 && arg5 + 16 > arg0) {
|
||||
arg2.scrollY -= 4;
|
||||
Static43.method1143(arg2);
|
||||
Static43.redraw(arg2);
|
||||
} else if (arg3 >= arg4 && arg3 < arg4 + 16 && arg0 >= arg1 + arg5 - 16 && arg1 + arg5 > arg0) {
|
||||
arg2.scrollY += 4;
|
||||
Static43.method1143(arg2);
|
||||
Static43.redraw(arg2);
|
||||
} else if (arg3 >= arg4 - Static42.anInt1396 && arg3 < arg4 + Static42.anInt1396 + 16 && arg0 >= arg5 + 16 && arg1 + arg5 - 16 > arg0) {
|
||||
local139 = arg1 * (arg1 - 32) / arg6;
|
||||
if (local139 < 8) {
|
||||
|
|
@ -39,7 +39,7 @@ public final class Static236 {
|
|||
@Pc(150) int local150 = arg1 - local139 - 32;
|
||||
@Pc(162) int local162 = arg0 - local139 / 2 - arg5 - 16;
|
||||
arg2.scrollY = (arg6 - arg1) * local162 / local150;
|
||||
Static43.method1143(arg2);
|
||||
Static43.redraw(arg2);
|
||||
Static45.aBoolean84 = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ public final class Static236 {
|
|||
local139 = arg2.anInt445;
|
||||
if (arg4 - local139 <= arg3 && arg5 <= arg0 && arg3 < arg4 + 16 && arg1 + arg5 >= arg0) {
|
||||
arg2.scrollY += Static58.wheelRotation * 45;
|
||||
Static43.method1143(arg2);
|
||||
Static43.redraw(arg2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue