Class CompleteMissionGuidePreferences

java.lang.Object
mekhq.gui.dialog.CompleteMissionGuidePreferences

public final class CompleteMissionGuidePreferences extends Object
The CompleteMissionDialog's tutorial settings: whether the player has seen its guide, and whether the guide opens every time the dialog does.

They are stored per player in MekHQ's preferences file (mmconf/mhq.preferences), under this class's node, so they follow the MekHQ install rather than a campaign. Deleting this class's entry from that file (while MekHQ is closed) shows the guide again.

Since:
0.51.01
  • Method Details

    • getInstance

      public static CompleteMissionGuidePreferences getInstance()
      Returns:
      the settings, stored in MekHQ's preferences file
    • isGuideSeen

      public boolean isGuideSeen()
      Returns:
      true once the player has seen the guide
    • setGuideSeen

      public void setGuideSeen(boolean seen)
    • isGuideAlwaysOpen

      public boolean isGuideAlwaysOpen()
      Returns:
      true if the guide opens every time the dialog does, rather than only the first time
    • setGuideAlwaysOpen

      public void setGuideAlwaysOpen(boolean alwaysOpen)