Class ImmersiveDialogNotification

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ImmersiveDialogNotification extends ImmersiveDialogCore
A specialized notification dialog that presents an immersive, modal, or non-modal message to the player.

This class extends ImmersiveDialogCore to provide a simple notification dialog featuring a customizable central message and a single "Understood" button. This dialog can be used to inform the player of important events or confirmations during gameplay. The dialog may optionally specify a custom width.

Since:
0.50.07
See Also:
  • Constructor Details

    • ImmersiveDialogNotification

      public ImmersiveDialogNotification(Campaign campaign, String centerMessage, boolean isModal)
      Constructs a notification dialog with the specified message, and modality.
      Parameters:
      campaign - the current campaign context
      centerMessage - the main message to display in the center of the dialog
      isModal - true if the dialog should be modal, false otherwise
      Since:
      0.50.07
    • ImmersiveDialogNotification

      public ImmersiveDialogNotification(Campaign campaign, String centerMessage, ImmersiveDialogWidth width, boolean isModal)
      Constructs a notification dialog with the specified campaign context, message, custom width, and modality.
      Parameters:
      campaign - the current campaign context
      centerMessage - the main message to display in the center of the dialog
      width - the ImmersiveDialogWidth to be used for the dialog
      isModal - true if the dialog should be modal, false otherwise
      Since:
      0.50.07