use of com.faforever.client.notification.ImmediateNotificationController in project downlords-faf-client by FAForever.
the class MainController method displayImmediateNotification.
private void displayImmediateNotification(ImmediateNotification notification) {
ImmediateNotificationController controller = uiService.loadFxml("theme/immediate_notification.fxml");
controller.setNotification(notification);
Stage userInfoWindow = new Stage(StageStyle.TRANSPARENT);
userInfoWindow.initModality(Modality.NONE);
userInfoWindow.initOwner(StageHolder.getStage().getOwner());
WindowController windowController = uiService.loadFxml("theme/window.fxml");
windowController.configure(userInfoWindow, controller.getRoot(), true, CLOSE, MAXIMIZE_RESTORE);
userInfoWindow.show();
}
Aggregations