Class BugReportDialog

java.lang.Object
megamek.client.ui.clientGUI.BugReportDialog

public class BugReportDialog extends Object
  • Constructor Details

    • BugReportDialog

      public BugReportDialog(@Nullable Window parent, @Nullable Action copySystemDataAction)
      Creates the dialog without a bug report packaging button.
      Parameters:
      parent - the window to centre on, or null
      copySystemDataAction - shown as a button when not null
    • BugReportDialog

      public BugReportDialog(@Nullable Window parent, @Nullable Action copySystemDataAction, @Nullable Action packageBugReportAction)
      Creates the dialog.
      Parameters:
      parent - the window to centre on, or null
      copySystemDataAction - shown as a button when not null
      packageBugReportAction - shown as a button when not null; collects the save and logs into a single archive the player can attach to an issue
  • Method Details

    • show

      public void show()
    • showWithGameTools

      public static void showWithGameTools(@Nullable Window parent, Supplier<Client> clientSupplier)
      Opens the helper with the full set of gathering tools, for the places in the program that are reached while a game may be running.
      Parameters:
      parent - the window to centre on, or null
      clientSupplier - supplies the client whose game should be packaged, consulted when the player presses the button rather than now; may return null, which packages the logs alone