Class PlanetDialog

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
mindustry.ui.dialogs.PlanetDialog
All Implemented Interfaces:
arc.scene.utils.Cullable, PlanetRenderer.PlanetInterfaceRenderer

public class PlanetDialog extends BaseDialog implements PlanetRenderer.PlanetInterfaceRenderer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    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
    final arc.graphics.gl.FrameBuffer
     
    static boolean
     
    arc.scene.ui.layout.Table
     
     
    arc.scene.ui.Label
     
    arc.struct.Seq<Planet>
    Must not be null in planet launch mode.
    boolean
     
     
    arc.func.Cons<Sector>
     
     
     
    arc.struct.Seq<Sector>
     
    arc.scene.ui.layout.Table
     
     
    float
     
     
    static float
     
    boolean
     
    arc.scene.ui.layout.Table
     
     
    boolean
     
     
    float
     

    Fields inherited from class mindustry.ui.dialogs.BaseDialog

    shouldPause, wasPaused

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    act(float delta)
     
    void
     
    getHoverPlanet(float mouseX, float mouseY)
     
    void
    lookAt(Sector sector)
     
    void
    lookAt(Sector sector, float alpha)
     
    void
     
    void
     
    arc.scene.ui.Dialog
    show with no limitations, just as a map.
    void
     
    void
    showPlanetLaunch(Sector sector, arc.struct.Seq<Planet> launchCandidates, arc.func.Cons<Sector> listener)
     
    void
    showSelect(Sector sector, arc.func.Cons<Sector> listener)
     
    void
    viewPlanet(Planet planet, boolean pan)
     

    Methods inherited from class mindustry.ui.dialogs.BaseDialog

    addCloseButton, addCloseButton, addCloseListener, makeButtonOverlay, onResize

    Methods inherited from class arc.scene.ui.Dialog

    centerWindow, closeOnBack, closeOnBack, 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, 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

    • debugSelect

      public static boolean debugSelect
    • sectorShowDuration

      public static float sectorShowDuration
    • buffer

      public final arc.graphics.gl.FrameBuffer buffer
    • loadouts

      public final LaunchLoadoutDialog loadouts
    • planets

      public final PlanetRenderer planets
    • state

      public PlanetParams state
    • zoom

      public float zoom
    • selected

      @Nullable public Sector selected
    • hovered

      @Nullable public Sector hovered
    • launchSector

      @Nullable public Sector launchSector
    • launchCandidates

      @Nullable public arc.struct.Seq<Planet> launchCandidates
      Must not be null in planet launch mode.
    • mode

      public PlanetDialog.Mode mode
    • launching

      public boolean launching
    • listener

      public arc.func.Cons<Sector> listener
    • newPresets

      public arc.struct.Seq<Sector> newPresets
    • presetShow

      public float presetShow
    • showed

      public boolean showed
    • sectorsShown

      public boolean sectorsShown
    • searchText

      public String searchText
    • sectorTop

      public arc.scene.ui.layout.Table sectorTop
    • notifs

      public arc.scene.ui.layout.Table notifs
    • expandTable

      public arc.scene.ui.layout.Table expandTable
    • hoverLabel

      public arc.scene.ui.Label hoverLabel
  • Constructor Details

    • PlanetDialog

      public PlanetDialog()
  • Method Details

    • show

      public arc.scene.ui.Dialog show()
      show with no limitations, just as a map.
      Overrides:
      show in class arc.scene.ui.Dialog
    • showOverview

      public void showOverview()
    • showPlanetLaunch

      public void showPlanetLaunch(Sector sector, arc.struct.Seq<Planet> launchCandidates, arc.func.Cons<Sector> listener)
    • showSelect

      public void showSelect(Sector sector, arc.func.Cons<Sector> listener)
    • lookAt

      public void lookAt(Sector sector)
    • lookAt

      public void lookAt(Sector sector, float alpha)
    • renderSectors

      public void renderSectors(Planet planet)
      Specified by:
      renderSectors in interface PlanetRenderer.PlanetInterfaceRenderer
    • renderProjections

      public void renderProjections(Planet planet)
      Specified by:
      renderProjections in interface PlanetRenderer.PlanetInterfaceRenderer
    • getHoverPlanet

      public Planet getHoverPlanet(float mouseX, float mouseY)
    • viewPlanet

      public void viewPlanet(Planet planet, boolean pan)
    • draw

      public void draw()
      Overrides:
      draw in class arc.scene.ui.Dialog
    • act

      public void act(float delta)
      Overrides:
      act in class arc.scene.ui.Dialog
    • abandonSectorConfirm

      public void abandonSectorConfirm(Sector sector, Runnable listener)