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:
Cullable
,PlanetRenderer.PlanetInterfaceRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from class arc.scene.ui.Dialog
Dialog.DialogStyle
Nested classes/interfaces inherited from class arc.scene.ui.layout.Table
Table.DrawRect
-
Field Summary
Modifier and TypeFieldDescriptionfinal FrameBuffer
static boolean
boolean
final LaunchLoadoutDialog
final PlanetRenderer
float
static float
boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abandonSectorConfirm
(Sector sector, Runnable listener) void
act
(float delta) Updates the actor based on time.void
draw()
If this method is overridden, the super method orWidgetGroup.validate()
should be called to ensure the widget group is laid out.void
void
renderProjections
(Planet planet) void
renderSectors
(Planet planet) show()
show with no limitations, just as a map.void
void
showPlanetLaunch
(Sector sector, Cons<Sector> listener) void
showSelect
(Sector sector, Cons<Sector> listener) 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, 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
-
Field Details
-
debugSelect
public static boolean debugSelect -
sectorShowDuration
public static float sectorShowDuration -
buffer
-
loadouts
-
planets
-
state
-
zoom
public float zoom -
selected
-
hovered
-
launchSector
-
mode
-
launching
public boolean launching -
listener
-
newPresets
-
presetShow
public float presetShow -
showed
public boolean showed -
sectorsShown
public boolean sectorsShown -
searchText
-
sectorTop
-
notifs
-
expandTable
-
hoverLabel
-
-
Constructor Details
-
PlanetDialog
public PlanetDialog()
-
-
Method Details
-
show
show with no limitations, just as a map. -
showOverview
public void showOverview() -
showPlanetLaunch
-
showSelect
-
renderSectors
- Specified by:
renderSectors
in interfacePlanetRenderer.PlanetInterfaceRenderer
-
renderProjections
- Specified by:
renderProjections
in interfacePlanetRenderer.PlanetInterfaceRenderer
-
draw
public void draw()Description copied from class:WidgetGroup
If this method is overridden, the super method orWidgetGroup.validate()
should be called to ensure the widget group is laid out. -
lookAt
-
act
public void act(float delta) Description copied from class:Element
Updates the actor based on time. Typically this is called each frame byScene.act(float)
.The default implementation calls
Action.act(float)
on each action and removes actions that are complete. -
abandonSectorConfirm
-