mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 01:21:23 -07:00
Refactored GameShell
This commit is contained in:
parent
bc7ecce61c
commit
3c58eb3a01
83 changed files with 700 additions and 712 deletions
|
|
@ -34,42 +34,42 @@ public final class Static139 {
|
|||
|
||||
@OriginalMember(owner = "client!l", name = "b", descriptor = "(I)V")
|
||||
public static void method2704() {
|
||||
@Pc(7) int local7 = Static178.anInt4246;
|
||||
@Pc(9) int local9 = Static145.anInt3497;
|
||||
@Pc(16) int local16 = Static122.anInt3045 - Static254.anInt5554 - local7;
|
||||
@Pc(23) int local23 = Static72.anInt2046 - local9 - Static48.anInt1448;
|
||||
@Pc(7) int local7 = GameShell.topMargin;
|
||||
@Pc(9) int local9 = GameShell.leftMargin;
|
||||
@Pc(16) int local16 = GameShell.frameHeight - GameShell.canvasHeight - local7;
|
||||
@Pc(23) int local23 = GameShell.frameWidth - local9 - GameShell.canvasWidth;
|
||||
if (local9 <= 0 && local23 <= 0 && local7 <= 0 && local16 <= 0) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@Pc(46) Container local46;
|
||||
if (Static69.aFrame2 != null) {
|
||||
local46 = Static69.aFrame2;
|
||||
} else if (Static39.aFrame1 == null) {
|
||||
local46 = Static71.signLink.anApplet2;
|
||||
if (GameShell.fullScreenFrame != null) {
|
||||
local46 = GameShell.fullScreenFrame;
|
||||
} else if (GameShell.frame == null) {
|
||||
local46 = GameShell.signLink.applet;
|
||||
} else {
|
||||
local46 = Static39.aFrame1;
|
||||
local46 = GameShell.frame;
|
||||
}
|
||||
@Pc(59) int local59 = 0;
|
||||
@Pc(61) int local61 = 0;
|
||||
if (Static39.aFrame1 == local46) {
|
||||
@Pc(68) Insets local68 = Static39.aFrame1.getInsets();
|
||||
if (GameShell.frame == local46) {
|
||||
@Pc(68) Insets local68 = GameShell.frame.getInsets();
|
||||
local61 = local68.left;
|
||||
local59 = local68.top;
|
||||
}
|
||||
@Pc(77) Graphics local77 = local46.getGraphics();
|
||||
local77.setColor(Color.black);
|
||||
if (local9 > 0) {
|
||||
local77.fillRect(local61, local59, local9, Static122.anInt3045);
|
||||
local77.fillRect(local61, local59, local9, GameShell.frameHeight);
|
||||
}
|
||||
if (local7 > 0) {
|
||||
local77.fillRect(local61, local59, Static72.anInt2046, local7);
|
||||
local77.fillRect(local61, local59, GameShell.frameWidth, local7);
|
||||
}
|
||||
if (local23 > 0) {
|
||||
local77.fillRect(local61 + Static72.anInt2046 - local23, local59, local23, Static122.anInt3045);
|
||||
local77.fillRect(local61 + GameShell.frameWidth - local23, local59, local23, GameShell.frameHeight);
|
||||
}
|
||||
if (local16 > 0) {
|
||||
local77.fillRect(local61, local59 + Static122.anInt3045 - local16, Static72.anInt2046, local16);
|
||||
local77.fillRect(local61, local59 + GameShell.frameHeight - local16, GameShell.frameWidth, local16);
|
||||
}
|
||||
} catch (@Pc(132) Exception local132) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue