Class BaseDialog

All Implemented Interfaces:
Cullable
Direct Known Subclasses:
AboutDialog, AdminsDialog, BansDialog, CampaignCompleteDialog, ColorPicker, ContentInfoDialog, CustomRulesDialog, DatabaseDialog, EffectsDialog, FileChooser, FullTextDialog, GameOverDialog, HostDialog, JoinDialog, LanguageDialog, LaunchLoadoutDialog, LoadDialog, LoadoutDialog, LogicDialog, MapGenerateDialog, MapInfoDialog, MapListDialog, MapLoadDialog, MapObjectivesDialog, MapPlayDialog, MapResizeDialog, ModsDialog, PausedDialog, PlanetDialog, ResearchDialog, SchematicsDialog, SchematicsDialog.SchematicInfoDialog, SectorGenerateDialog, SettingsMenuDialog, TraceDialog, WaveInfoDialog

public class BaseDialog extends Dialog
  • Field Details

    • wasPaused

      protected boolean wasPaused
    • shouldPause

      protected boolean shouldPause
      If true, this dialog will pause the game while open.
  • Constructor Details

  • Method Details

    • makeButtonOverlay

      protected void makeButtonOverlay()
      Places the buttons as an overlay on top of the content. Used when the content can be scrolled through.
    • onResize

      protected void onResize(Runnable run)
    • addCloseListener

      public void addCloseListener()
    • addCloseButton

      public void addCloseButton(float width)
    • addCloseButton

      public void addCloseButton()
      Overrides:
      addCloseButton in class Dialog