Update script arguments to 2021-6-30

This commit is contained in:
Max Weber
2021-06-29 13:02:49 -06:00
parent 458e685208
commit 00c971ef15
4 changed files with 7 additions and 5 deletions

View File

@@ -84,9 +84,10 @@ public final class ScriptID
* <ul> * <ul>
* <li> int (boolean) Clear the current text </li> * <li> int (boolean) Clear the current text </li>
* <li> int (boolean) Restore to chat view </li> * <li> int (boolean) Restore to chat view </li>
* <li> int (boolean) Submit close to server </li>
* </ul> * </ul>
*/ */
@ScriptArguments(integer = 2) @ScriptArguments(integer = 3)
public static final int MESSAGE_LAYER_CLOSE = 299; public static final int MESSAGE_LAYER_CLOSE = 299;
/** /**

View File

@@ -93,7 +93,8 @@ public class ChatboxPanelManager
client.runScript( client.runScript(
ScriptID.MESSAGE_LAYER_CLOSE, ScriptID.MESSAGE_LAYER_CLOSE,
0, 0,
1 1,
0
); );
if (currentInput != null) if (currentInput != null)
{ {

View File

@@ -105,7 +105,7 @@ public class BankSearch
if (closeChat) if (closeChat)
{ {
// this clears the input text and type, and resets the chatbox to allow input // this clears the input text and type, and resets the chatbox to allow input
client.runScript(ScriptID.MESSAGE_LAYER_CLOSE, 1, 1); client.runScript(ScriptID.MESSAGE_LAYER_CLOSE, 1, 1, 0);
} }
else else
{ {

View File

@@ -56,7 +56,7 @@ public class ChatboxPerformancePlugin extends Plugin
{ {
if (client.getGameState() == GameState.LOGGED_IN) if (client.getGameState() == GameState.LOGGED_IN)
{ {
clientThread.invokeLater(() -> client.runScript(ScriptID.MESSAGE_LAYER_CLOSE, 0, 0)); clientThread.invokeLater(() -> client.runScript(ScriptID.MESSAGE_LAYER_CLOSE, 0, 0, 0));
} }
} }
@@ -65,7 +65,7 @@ public class ChatboxPerformancePlugin extends Plugin
{ {
if (client.getGameState() == GameState.LOGGED_IN) if (client.getGameState() == GameState.LOGGED_IN)
{ {
clientThread.invokeLater(() -> client.runScript(ScriptID.MESSAGE_LAYER_CLOSE, 0, 0)); clientThread.invokeLater(() -> client.runScript(ScriptID.MESSAGE_LAYER_CLOSE, 0, 0, 0));
} }
} }