Package mindustry.ui.dialogs
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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class arc.scene.ui.Dialog
arc.scene.ui.Dialog.DialogStyleNested classes/interfaces inherited from class arc.scene.ui.layout.Table
arc.scene.ui.layout.Table.DrawRect -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal arc.graphics.gl.FrameBufferstatic booleanstatic booleanarc.scene.ui.layout.Tablearc.scene.ui.Labelarc.struct.Seq<Planet>Must not be null in planet launch mode.booleanarc.func.Cons<Sector>final LaunchLoadoutDialogarc.struct.Seq<Sector>arc.scene.ui.layout.Tablefinal PlanetRendererfloatstatic floatbooleanarc.scene.ui.layout.TablebooleanfloatFields inherited from class mindustry.ui.dialogs.BaseDialog
shouldPause, wasPausedFields inherited from class arc.scene.ui.Dialog
buttons, cont, dragging, edge, ignoreTouchDown, title, titleTableFields inherited from class arc.scene.Group
children, cullingArea, transformFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonSectorConfirm(Sector sector, Runnable listener) voidact(float delta) voiddraw()getHoverPlanet(float mouseX, float mouseY) voidvoidvoidrenderOverProjections(Planet planet) voidrenderProjections(Planet planet) voidrenderSectors(Planet planet) voidselectSector(Sector sector) arc.scene.ui.Dialogshow()show with no limitations, just as a map.voidvoidshowPlanetLaunch(Sector sector, arc.struct.Seq<Planet> launchCandidates, arc.func.Cons<Sector> listener) voidshowSelect(Sector sector, arc.func.Cons<Sector> listener) voidviewPlanet(Planet planet, boolean pan) Methods inherited from class mindustry.ui.dialogs.BaseDialog
addCloseButton, addCloseButton, addCloseListener, makeButtonOverlay, onResizeMethods 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, updateScrollFocusMethods 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, topMethods inherited from class arc.scene.ui.layout.WidgetGroup
childrenChanged, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validateMethods 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, toStringMethods 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
-
Field Details
-
debugSelect
public static boolean debugSelect -
debugSectorAttackEdit
public static boolean debugSectorAttackEdit -
sectorShowDuration
public static float sectorShowDuration -
buffer
public final arc.graphics.gl.FrameBuffer buffer -
loadouts
-
planets
-
state
-
zoom
public float zoom -
selected
-
hovered
-
launchSector
-
launchCandidates
Must not be null in planet launch mode. -
mode
-
launching
public boolean launching -
listener
-
newPresets
-
presetShow
public float presetShow -
showed
public boolean showed -
sectorsShown
public boolean sectorsShown -
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:
showin classarc.scene.ui.Dialog
-
showOverview
public void showOverview() -
showPlanetLaunch
-
showSelect
-
lookAt
-
lookAt
-
renderSectors
- Specified by:
renderSectorsin interfacePlanetRenderer.PlanetInterfaceRenderer
-
renderOverProjections
- Specified by:
renderOverProjectionsin interfacePlanetRenderer.PlanetInterfaceRenderer
-
renderProjections
- Specified by:
renderProjectionsin interfacePlanetRenderer.PlanetInterfaceRenderer
-
getHoverPlanet
-
viewPlanet
-
draw
public void draw()- Overrides:
drawin classarc.scene.ui.Dialog
-
act
public void act(float delta) - Overrides:
actin classarc.scene.ui.Dialog
-
abandonSectorConfirm
-
selectSector
-