Changed the script processor code to no longer incorrectly close interfaces on SOFT queue scripts

Rewrote Jarvald
This commit is contained in:
Player Name
2024-07-18 09:39:09 +00:00
committed by Ryan
parent 806680517b
commit 68c1e572b9
12 changed files with 256 additions and 293 deletions
+10
View File
@@ -1606,6 +1606,16 @@ fun closeTabInterface(player: Player) {
player.interfaceManager.closeSingleTab()
}
/**
* Closes any open (both chat and non-chat) interfaces for the player
* @param player the player to close the interfaces for
*/
fun closeAllInterfaces(player: Player) {
player.interfaceManager.close()
player.interfaceManager.closeChatbox()
player.dialogueInterpreter.close()
}
/**
* Sends a dialogue that uses the player's chathead.
* @param player the player to send the dialogue to