mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 13:30:27 -07:00
Minor fixes to the dev console
This commit is contained in:
parent
6b9b6cc70b
commit
e3c66c7f3e
3 changed files with 12 additions and 11 deletions
|
|
@ -73,10 +73,10 @@ final class KeyboardListener implements KeyListener, FocusListener {
|
||||||
DeveloperConsole.INSTANCE.toggle();
|
DeveloperConsole.INSTANCE.toggle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if (DeveloperConsole.INSTANCE.getOpen()) {
|
if (DeveloperConsole.INSTANCE.getOpen()) {
|
||||||
// DeveloperConsole.INSTANCE.handleKeyDown(var1);
|
DeveloperConsole.INSTANCE.handleKeyDown(var1);
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
if(null != Class3_Sub13_Sub3.aClass148_3049) {
|
if(null != Class3_Sub13_Sub3.aClass148_3049) {
|
||||||
Class3_Sub13_Sub33.anInt3398 = 0;
|
Class3_Sub13_Sub33.anInt3398 = 0;
|
||||||
|
|
|
||||||
|
|
@ -4111,7 +4111,6 @@ public class Unsorted {
|
||||||
if (var11.anInt189 == 1405) {
|
if (var11.anInt189 == 1405) {
|
||||||
if (DeveloperConsole.INSTANCE.getOpen()) {
|
if (DeveloperConsole.INSTANCE.getOpen()) {
|
||||||
gameWindowWidth = var11.width + var13;
|
gameWindowWidth = var11.width + var13;
|
||||||
//Toolkit.getActiveToolkit().fillRect(0, 0, var11.width + var13, 300, 0x332277, 128);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ClientCommands.fpsOverlayEnabled) {
|
if (ClientCommands.fpsOverlayEnabled) {
|
||||||
|
|
|
||||||
|
|
@ -192,12 +192,13 @@ object DeveloperConsole {
|
||||||
Class3_Sub13_Sub1.outgoingBuffer.finishVarshortPacket(Class3_Sub13_Sub1.outgoingBuffer.index - index)
|
Class3_Sub13_Sub1.outgoingBuffer.finishVarshortPacket(Class3_Sub13_Sub1.outgoingBuffer.index - index)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println(str)
|
||||||
val clientCommand: MutableList<String>
|
val clientCommand: MutableList<String>
|
||||||
val args: Any
|
val args: Any
|
||||||
val command: String = str
|
val command: String = str
|
||||||
clientCommand = command.split(' ') as MutableList<String>
|
clientCommand = command.split(' ') as MutableList<String>
|
||||||
val argSize = clientCommand.size
|
val argSize = clientCommand.size
|
||||||
println(str)
|
|
||||||
when (clientCommand[0]) {
|
when (clientCommand[0]) {
|
||||||
"enableconsolepackets" -> {
|
"enableconsolepackets" -> {
|
||||||
ENABLE_PACKETS = true
|
ENABLE_PACKETS = true
|
||||||
|
|
@ -340,7 +341,8 @@ object DeveloperConsole {
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
|
System.out.println("Console command: $str")
|
||||||
|
sendCommand(str)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -406,10 +408,10 @@ object DeveloperConsole {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun sendCommand(command: String) {
|
@JvmStatic
|
||||||
|
fun sendCommand(command: String) {
|
||||||
Class3_Sub13_Sub1.outgoingBuffer.putOpcode(44)
|
Class3_Sub13_Sub1.outgoingBuffer.putOpcode(44)
|
||||||
Class3_Sub13_Sub1.outgoingBuffer.writeByte(command.length + -1)
|
Class3_Sub13_Sub1.outgoingBuffer.writeByte(command.length + 2)
|
||||||
// Class3_Sub13_Sub1.outgoingBuffer.writeString(command.substring(2))
|
Class3_Sub13_Sub1.outgoingBuffer.writeString(command)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue