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 Summary
ConstructorsConstructorDescriptionFactionCensureConfirmationDialog
(Campaign campaign) Constructs a newFactionCensureConfirmationDialog
, showing the dialog to the user. -
Method Summary
Modifier 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.boolean
Returns whether the user confirmed the censure action.
-
Constructor Details
-
FactionCensureConfirmationDialog
Constructs 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
-
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
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
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
-