Class FactionCensureConfirmationDialog

java.lang.Object
mekhq.gui.dialog.factionStanding.factionJudgment.FactionCensureConfirmationDialog

public class FactionCensureConfirmationDialog extends Object
Displays a confirmation dialog for faction censure actions within a campaign.

This dialog asks the user to confirm or cancel a censure event affecting the campaign. It presents both in-character and out-of-character explanatory text and returns whether the user confirmed the action.

Since:
0.50.07
  • Constructor Details

    • FactionCensureConfirmationDialog

      public FactionCensureConfirmationDialog(Campaign campaign)
      Constructs a new FactionCensureConfirmationDialog, showing the dialog to the user.

      The dialog content is dynamically generated based on the specified campaign and its commander.

      Parameters:
      campaign - the campaign context in which censure is being performed
      Since:
      0.50.07
  • Method Details

    • wasConfirmed

      public boolean wasConfirmed()
      Returns whether the user confirmed the censure action.
      Returns:
      true if the user confirmed; false otherwise
      Since:
      0.50.07
    • getDialogOptions

      public List<String> getDialogOptions()
      Returns the list of dialog option labels presented to the user.
      Returns:
      a list of option labels (such as "Cancel" and "Confirm")
      Since:
      0.50.07
    • getInCharacterText

      public String getInCharacterText(Campaign campaign)
      Returns the in-character narrative text shown in the dialog.
      Parameters:
      campaign - the campaign context used to personalize the dialog text
      Returns:
      the formatted in-character dialog string
      Since:
      0.50.07