Class DialogInterception

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

@Deprecated(since="0.05.06", forRemoval=true) public class DialogInterception extends JDialog
Deprecated, for removal: This API element is subject to removal in a future version.
unused
See Also:
  • Constructor Details

    • DialogInterception

      public DialogInterception(Resupply resupply, @Nullable Formation targetConvoy)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Displays a dialog for an interception event that occurs during a resupply operation.

      This method performs the following steps:

      1. Constructs a JDialog with a title from the localized ResourceBundle. 2. Determines the speaker's name and icon. This involves: - Retrieving the force commander from the convoy (if available). - Using fallback values for the speaker name and icon if no target convoy was provided. 3. Creates a message describing the interception event, using dynamic text generated from the resources. 4. Builds a GUI with Swing components: - A description panel containing a localized, HTML-styled message. - An image panel displaying the speaker's icon (sized to a width of 100 px). 5. Adds confirmation buttons to the dialog, allowing users to close it. 6. Displays the dialog as modal to block further user interaction until dismissed.
      Parameters:
      resupply - the Resupply instance containing the current campaign and contract details. Used to access mission context, player commander information, and employer details.
      targetConvoy - the optional Formation representing the convoy involved in the interception. If null, the dialog will use default values for the speaker and faction visuals.