mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
Added method to force an Sui Window to be closed on the client
This commit is contained in:
@@ -129,4 +129,22 @@ public final class IntentFactory {
|
||||
public void showSuiWindow(Player player, SuiBaseWindow suiWindow) {
|
||||
new SuiWindowIntent(player, suiWindow, SuiWindowIntent.SuiWindowEvent.NEW).broadcast();
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes a currently opened window on the client with the id of the SUI Window
|
||||
* @param player Player that has the window to be closed
|
||||
* @param suiWindow {@link SuiBaseWindow} to be closed
|
||||
*/
|
||||
public void closeSuiWindow(Player player, SuiBaseWindow suiWindow) {
|
||||
new SuiWindowIntent(player, suiWindow, SuiWindowIntent.SuiWindowEvent.CLOSE).broadcast();
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes a currently opened window on the client with the id of the SUI Window
|
||||
* @param player Player that has the window to be closed
|
||||
* @param windowId Window id of the {@link SuiBaseWindow} to close
|
||||
*/
|
||||
public void closeSuiWindow(Player player, int windowId) {
|
||||
new SuiWindowIntent(player, null, windowId, SuiWindowIntent.SuiWindowEvent.CLOSE).broadcast();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user