Class FactionCensureConfirmationDialog
java.lang.Object
mekhq.gui.dialog.factionStanding.factionJudgment.FactionCensureConfirmationDialog
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 SummaryConstructorsConstructorDescriptionFactionCensureConfirmationDialog(Campaign campaign) Constructs a newFactionCensureConfirmationDialog, showing the dialog to the user.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the list of dialog option labels presented to the user.getInCharacterText(Campaign campaign) Returns the in-character narrative text shown in the dialog.booleanReturns whether the user confirmed the censure action.
- 
Constructor Details- 
FactionCensureConfirmationDialogConstructs a newFactionCensureConfirmationDialog, 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- 
wasConfirmedpublic boolean wasConfirmed()Returns whether the user confirmed the censure action.- Returns:
- trueif the user confirmed;- falseotherwise
- Since:
- 0.50.07
 
- 
getDialogOptionsReturns 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
 
- 
getInCharacterTextReturns 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
 
 
-