Class BaseDialog

java.lang.Object
arc.scene.Element
arc.scene.Group
arc.scene.ui.layout.WidgetGroup
arc.scene.ui.layout.Table
arc.scene.ui.Dialog
mindustry.ui.dialogs.BaseDialog
All Implemented Interfaces:
arc.scene.utils.Cullable
Direct Known Subclasses:
AboutDialog, AdminsDialog, BannedContentDialog, BansDialog, CampaignCompleteDialog, CampaignRulesDialog, ColorPicker, ContentInfoDialog, CustomRulesDialog, DatabaseDialog, EffectsDialog, FileChooser, FullTextDialog, GameOverDialog, GlobalVarsDialog, HostDialog, JoinDialog, LanguageDialog, LaunchLoadoutDialog, LoadDialog, LoadoutDialog, LogicDialog, MapGenerateDialog, MapInfoDialog, MapListDialog, MapLoadDialog, MapLocalesDialog, MapObjectivesDialog, MapPlayDialog, MapProcessorsDialog, MapResizeDialog, ModsDialog, PausedDialog, PlanetDialog, ResearchDialog, SchematicsDialog, SchematicsDialog.SchematicInfoDialog, SectorGenerateDialog, SettingsMenuDialog, TraceDialog, WaveInfoDialog

public class BaseDialog extends arc.scene.ui.Dialog
  • Nested Class Summary

    Nested classes/interfaces inherited from class arc.scene.ui.Dialog

    arc.scene.ui.Dialog.DialogStyle

    Nested classes/interfaces inherited from class arc.scene.ui.layout.Table

    arc.scene.ui.layout.Table.DrawRect
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    If true, this dialog will pause the game while open.
    protected boolean
     

    Fields inherited from class arc.scene.ui.Dialog

    buttons, cont, dragging, edge, ignoreTouchDown, title, titleTable

    Fields inherited from class arc.scene.Group

    children, cullingArea, transform

    Fields inherited from class arc.scene.Element

    color, cullable, fillParent, height, name, originX, originY, parent, parentAlpha, rotation, scaleX, scaleY, touchable, touchablility, translation, userObject, visibility, visible, width, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BaseDialog(String title, arc.scene.ui.Dialog.DialogStyle style)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    addCloseButton(float width)
     
    void
     
    protected void
    Places the buttons as an overlay on top of the content.
    protected void
     

    Methods inherited from class arc.scene.ui.Dialog

    act, centerWindow, closeOnBack, closeOnBack, draw, drawStageBackground, getStyle, hidden, hide, hide, hit, isCentered, isDragging, isModal, isMovable, isResizable, isShown, resized, resized, resizedShown, setCentered, setHideAction, setKeepWithinStage, setModal, setMovable, setResizable, setResizeBorder, setScene, setShowAction, setStyle, show, show, show, shown, toggle, updateScrollFocus

    Methods inherited from class arc.scene.ui.layout.Table

    add, add, add, add, add, add, add, add, add, align, area, area, background, bottom, button, button, button, button, button, button, button, button, button, button, button, button, buttonCenter, buttonCenter, buttonCenter, buttonRow, center, check, check, check, clearChildren, collapser, collapser, collapser, collapser, defaults, drawBackground, field, field, field, fill, getAlign, getBackground, getCell, getCells, getClip, getColumns, getColumnWidth, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getRow, getRowHeight, getRows, image, image, image, image, image, imageDraw, invalidate, label, labelWrap, labelWrap, layout, left, margin, margin, marginBottom, marginLeft, marginRight, marginTop, pane, pane, pane, pane, rect, removeChild, removeChild, reset, right, row, setBackground, setClip, setRound, slider, slider, slider, spacer, spacerX, spacerY, stack, table, table, table, table, table, top

    Methods inherited from class arc.scene.ui.layout.WidgetGroup

    childrenChanged, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate

    Methods inherited from class arc.scene.Group

    addChild, addChildAfter, addChildAt, addChildBefore, applyTransform, clear, computeTransform, drawChildren, fill, fill, fill, find, find, findVisible, forEach, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, setCullingArea, setTransform, swapActor, swapActor, toString

    Methods inherited from class arc.scene.Element

    actions, addAction, addCaptureListener, addListener, change, changed, clearActions, clearListeners, clicked, clicked, clicked, clicked, clipBegin, clipBegin, clipEnd, dragged, exited, fire, fireClick, getActions, getCaptureListeners, getHeight, getListeners, getMaxHeight, getMaxWidth, getRight, getRotation, getScene, getTop, getWidth, getX, getY, getZIndex, hasActions, hasKeyboard, hasMouse, hasParent, hasScroll, hovered, isAscendantOf, isDescendantOf, isDescendantOf, isTouchable, keepInStage, keyDown, keyDown, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, released, remove, removeAction, removeCaptureListener, removeListener, requestKeyboard, requestScroll, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, scrolled, setBounds, setColor, setColor, setHeight, setOrigin, setOrigin, setPosition, setPosition, setRotation, setRotationOrigin, setScale, setScale, setSize, setSize, setTranslation, setWidth, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, tapped, toBack, toFront, touchable, update, updateVisibility, visible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • wasPaused

      protected boolean wasPaused
    • shouldPause

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

    • BaseDialog

      public BaseDialog(String title, arc.scene.ui.Dialog.DialogStyle style)
    • BaseDialog

      public BaseDialog(String title)
  • 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 arc.scene.ui.Dialog