From 8c6482c38dcb1af5fdc188e2366d6814ceb8cbe1 Mon Sep 17 00:00:00 2001 From: Max Weber Date: Wed, 28 Mar 2018 01:11:42 -0600 Subject: [PATCH] field341 > currentTypedKey --- runescape-client/src/main/java/Client.java | 4 ++-- runescape-client/src/main/java/Size.java | 4 +++- runescape-client/src/main/java/class195.java | 14 +++++++------- runescape-client/src/main/java/class290.java | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/runescape-client/src/main/java/Client.java b/runescape-client/src/main/java/Client.java index b9a2a5f0cf3..6cc7c6b756e 100644 --- a/runescape-client/src/main/java/Client.java +++ b/runescape-client/src/main/java/Client.java @@ -3172,9 +3172,9 @@ final void method1552() { if(rights >= 2 && KeyFocusListener.keyPressed[82] && class85.currentPressedKey == 66) { String var26 = class61.method1092(); class249.clientInstance.method923(var26); - } else if(field923 != 1 || Size.field341 <= 0) { + } else if(field923 != 1 || Size.currentTypedKey <= 0) { field1069[field869] = class85.currentPressedKey; - field1068[field869] = Size.field341; + field1068[field869] = Size.currentTypedKey; ++field869; } } diff --git a/runescape-client/src/main/java/Size.java b/runescape-client/src/main/java/Size.java index 8a9fdc84f67..610d03b8cdf 100644 --- a/runescape-client/src/main/java/Size.java +++ b/runescape-client/src/main/java/Size.java @@ -1,4 +1,5 @@ import java.util.Iterator; +import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; @@ -23,7 +24,8 @@ public class Size { ) public static final Size field334; @ObfuscatedName("cv") - public static char field341; + @Export("currentTypedKey") + public static char currentTypedKey; @ObfuscatedName("dk") @ObfuscatedGetter( intValue = 1746983793 diff --git a/runescape-client/src/main/java/class195.java b/runescape-client/src/main/java/class195.java index a8220889063..2928fe07cfe 100644 --- a/runescape-client/src/main/java/class195.java +++ b/runescape-client/src/main/java/class195.java @@ -380,7 +380,7 @@ static void method3768(GameEngine var0) { boolean var10 = false; for(int var11 = 0; var11 < "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".length(); ++var11) { - if(Size.field341 == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var11)) { + if(Size.currentTypedKey == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var11)) { var10 = true; break; } @@ -403,7 +403,7 @@ static void method3768(GameEngine var0) { } if(var10 && class90.username.length() < 320) { - class90.username = class90.username + Size.field341; + class90.username = class90.username + Size.currentTypedKey; } } else if(class90.field1351 == 1) { if(class85.currentPressedKey == 85 && class90.password.length() > 0) { @@ -433,7 +433,7 @@ static void method3768(GameEngine var0) { } if(var10 && class90.password.length() < 20) { - class90.password = class90.password + Size.field341; + class90.password = class90.password + Size.currentTypedKey; } } } @@ -496,7 +496,7 @@ static void method3768(GameEngine var0) { var23 = false; for(var24 = 0; var24 < "1234567890".length(); ++var24) { - if(Size.field341 == "1234567890".charAt(var24)) { + if(Size.currentTypedKey == "1234567890".charAt(var24)) { var23 = true; break; } @@ -529,7 +529,7 @@ static void method3768(GameEngine var0) { } if(var23 && Coordinates.field2779.length() < 6) { - Coordinates.field2779 = Coordinates.field2779 + Size.field341; + Coordinates.field2779 = Coordinates.field2779 + Size.currentTypedKey; } } } @@ -550,7 +550,7 @@ static void method3768(GameEngine var0) { var23 = false; for(var24 = 0; var24 < "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".length(); ++var24) { - if(Size.field341 == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var24)) { + if(Size.currentTypedKey == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var24)) { var23 = true; break; } @@ -569,7 +569,7 @@ static void method3768(GameEngine var0) { } if(var23 && class90.username.length() < 320) { - class90.username = class90.username + Size.field341; + class90.username = class90.username + Size.currentTypedKey; } } } diff --git a/runescape-client/src/main/java/class290.java b/runescape-client/src/main/java/class290.java index f049ee28155..360deeeec54 100644 --- a/runescape-client/src/main/java/class290.java +++ b/runescape-client/src/main/java/class290.java @@ -87,7 +87,7 @@ public static final boolean method5196() { return false; } else { class85.currentPressedKey = KeyFocusListener.field605[KeyFocusListener.field611]; - Size.field341 = KeyFocusListener.field601[KeyFocusListener.field611]; + Size.currentTypedKey = KeyFocusListener.field601[KeyFocusListener.field611]; KeyFocusListener.field611 = KeyFocusListener.field611 + 1 & 127; return true; }