Update script arguments to 2021-6-30
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user