content
protected com.badlogic.gdx.scenes.scene2d.ui.Table content
com.badlogic.gdx.scenes.scene2d.utils.Cullable, com.badlogic.gdx.scenes.scene2d.utils.Layout, IScreenAboutWindow, AddShapeDialog, ArchiveViewWindow, BatchDownloadWindow, BookmarkInfoDialog, BookmarkNameDialog, DataInfoWindow, DataLocationCheckWindow, DatasetFiltersWindow, DatasetInfoWindow, DatasetLoadDialog, DatasetManagerWindow, DatasetTransformsWindow, DatasetVisualSettingsWindow, DateDialog, FileChooser, FileNameWindow, GalaxyGenerationWindow, GamepadConfigWindow, IndexNameConflictsWindow, IndividualVisibilityWindow, KeyframePreferencesWindow, KeyframesWindow, LandAtWindow, LogWindow, MemInfoWindow, MinimapWindow, NewBookmarkFolderDialog, ObjectDebugWindow, PreferencesWindow, ProceduralGenerationWindow, QuitWindow, ReleaseNotesWindow, SearchDialog, SlaveConfigWindow, TextureWindow, UpdatePopupGenericDialog intended to be subclassed for creating
custom interactive dialog windows. It serves as a wrapper around a main content table and
a bottom row for action buttons (Accept/Cancel).
This class provides a layout manager that automatically arranges the main content area
and the footer button group. Subclasses must implement the build() method to
populate the content table before showing the dialog. It supports multiple tabs,
modal/non-modal behavior, and captures input (mouse, keyboard, gamepad) to prevent
interference with the rest of the application while the dialog is open.
build() method implementation in the subclass.
addTabContent(Group).
Tabs are managed via a stack and a button group that restricts selection to one tab at a time.
To create a functional dialog, the subclass must:
build() method to add UI actors to the content table.accept() method, which returns true if the dialog should close
upon clicking the accept button.cancel() method, which is called upon clicking cancel or pressing Escape.dispose() for cleanup resources.Subclasses typically override the following methods or use the provided helpers:
show(Stage) or show(Stage, Action) to display the dialog.setAcceptText(String) and setCancelText(String) to customize button labels.setModal(boolean) to toggle modal behavior (blocking input).addSeparator() to add horizontal dividers within the content area.tabRight() and tabLeft() for manual tab navigation.The class handles internal logic for:
com.badlogic.gdx.scenes.scene2d.ui.Table.Debug, com.badlogic.gdx.scenes.scene2d.ui.Table.DebugRectprotected com.badlogic.gdx.scenes.scene2d.ui.TextButtonprotected Runnableprotected Set<com.badlogic.gdx.controllers.ControllerListener> protected Set<AbstractMouseKbdListener> protected com.badlogic.gdx.scenes.scene2d.ui.Tableprotected com.badlogic.gdx.scenes.scene2d.ui.HorizontalGroupprotected com.badlogic.gdx.scenes.scene2d.ui.TextButtonprotected Runnableprotected Runnableprotected com.badlogic.gdx.scenes.scene2d.ui.Tableprotected booleanprotected booleanprotected booleanprotected booleanprotected AbstractGamepadListenerprotected com.badlogic.gdx.scenes.scene2d.InputListenerprotected booleanprotected floatprotected floatprotected GenericDialogprotected booleanprotected AbstractMouseKbdListenerprotected com.badlogic.gdx.utils.Array<OwnScrollPane> protected intprotected final com.badlogic.gdx.scenes.scene2d.ui.Skinprotected final com.badlogic.gdx.scenes.scene2d.Stageprotected com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.ui.TextButton> protected com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Group> protected com.badlogic.gdx.scenes.scene2d.ui.StackcollapseSpeed
protected floatbackgroundBottom, backgroundLeft, backgroundRight, backgroundTop, debugActorColor, debugCellColor, debugTableColorPOOLSGenericDialog(String title,
com.badlogic.gdx.scenes.scene2d.ui.Skin skin,
com.badlogic.gdx.scenes.scene2d.Stage stage) protected abstract booleanaccept()com.badlogic.gdx.scenes.scene2d.ui.Buttonvoidact(float delta) voidvoidaddSeparator(int colSpan) protected voidaddTabContent(com.badlogic.gdx.scenes.scene2d.Group tabContent) protected abstract voidbuild()voidprotected abstract voidcancel()com.badlogic.gdx.scenes.scene2d.ui.Buttonbooleanbooleanabstract voiddispose()protected voidenableComponents(boolean enabled,
com.badlogic.gdx.scenes.scene2d.utils.Disableable... components) voidcom.badlogic.gdx.scenes.scene2d.ui.Tablecom.badlogic.gdx.scenes.scene2d.Groupcom.badlogic.gdx.scenes.scene2d.Groupcom.badlogic.gdx.scenes.scene2d.ui.Tablecom.badlogic.gdx.scenes.scene2d.Groupcom.badlogic.gdx.scenes.scene2d.StagegetStage()com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.ui.TextButton> booleanbooleanbooleanvoidhide()voidhide(com.badlogic.gdx.scenes.scene2d.Action action) protected voidvoidsetAcceptButtonColor(com.badlogic.gdx.graphics.Color col) voidsetAcceptButtonStyle(String style) voidvoidsetAcceptText(String acceptText) voidsetCancelButtonColors(com.badlogic.gdx.graphics.Color textColor,
com.badlogic.gdx.graphics.Color buttonColor) voidsetCancelButtonStyle(String style) voidvoidsetCancelText(String cancelText) voidvoidvoidsetModal(boolean modal) protected voidshow(com.badlogic.gdx.scenes.scene2d.Stage stage) Packs the dialog and adds it to the stage, centered with
default fadeIn action.show(com.badlogic.gdx.scenes.scene2d.Stage stage,
float x,
float y) Packs the dialog and adds it to the stage at the specified position.show(com.badlogic.gdx.scenes.scene2d.Stage stage,
com.badlogic.gdx.scenes.scene2d.Action action) Packs the dialog and adds it to the stage with custom
action which can be null for instant show.protected voidshowDialogHook(com.badlogic.gdx.scenes.scene2d.Stage stage) booleantabLeft()booleantabRight()voidtouch()collapse, collapseInstant, drawBackground, expand, expandInstant, getHeight, getMaxHeight, getMaxWidth, getPrefHeight, getPrefWidth, getWidth, isCollapsed, isCollapsible, pack, setCollapsible, setResizable, toggleCollapsed
voidcollapse()voidprotected voiddrawBackground(com.badlogic.gdx.graphics.g2d.Batch batch,
float parentAlpha,
float x,
float y) voidexpand()voidfloatfloatfloatfloatfloatfloatgetWidth()booleanbooleanvoidpack()voidsetCollapsible(boolean collapsible) voidsetResizable(boolean w,
boolean h) voiddraw, drawStageBackground, getStyle, getTitleLabel, getTitleTable, hg, hit, isModal, isResizable, keepWithinStage, setMovable, setResizable, setStyle
voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch,
float parentAlpha) protected voiddrawStageBackground(com.badlogic.gdx.graphics.g2d.Batch batch,
float parentAlpha,
float x,
float y,
float width,
float height) com.badlogic.gdx.scenes.scene2d.ui.Window.WindowStylegetStyle()com.badlogic.gdx.scenes.scene2d.ui.Labelcom.badlogic.gdx.scenes.scene2d.ui.Tableprotected com.badlogic.gdx.scenes.scene2d.ui.HorizontalGrouphg(com.badlogic.gdx.scenes.scene2d.Actor... actors) com.badlogic.gdx.scenes.scene2d.Actorhit(float x,
float y,
boolean touchable) booleanisModal()booleanvoidvoidsetMovable(boolean isMovable) voidsetResizable(boolean isResizable) voidsetStyle(com.badlogic.gdx.scenes.scene2d.ui.Window.WindowStyle style) add, add, add, add, add, add, add, align, background, background, bottom, center, clearChildren, clip, clip, columnDefaults, debug, debug, debugActor, debugAll, debugCell, debugTable, defaults, drawDebug, drawDebugBounds, getAlign, getBackground, getCell, getCells, getClip, getColumnMinWidth, getColumnPrefWidth, getColumns, getColumnWidth, getMinHeight, getMinWidth, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getRow, getRowHeight, getRowMinHeight, getRowPrefHeight, getRows, getSkin, getTableDebug, invalidate, layout, left, pad, pad, pad, pad, padBottom, padBottom, padLeft, padLeft, padRight, padRight, padTop, padTop, removeActor, removeActor, removeActorAt, reset, right, row, setBackground, setBackground, setClip, setDebug, setRound, setSkin, stack, topchildrenChanged, invalidateHierarchy, needsLayout, setFillParent, setLayoutEnabled, sizeChanged, validateaddActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, clear, clear, clearChildren, computeTransform, drawChildren, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toStringaddAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getTop, getTouchable, getUserObject, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFronttabContent - The contents.setModal in class CollapsibleWindowcloseAccept in interface IScreencloseCancel in interface IScreenPacks the dialog and adds it to the stage with custom
action which can be null for instant show.stage - The stage.action - Action to run.getCurrentContentContainer in interface IScreengetBottomGroup in interface IScreengetButtonsGroup in interface IScreenPacks the dialog and adds it to the stage, centered with
default fadeIn action.Packs the dialog and adds it to the stage at the specified position.colSpan - The column span to use.r - The listener.r - The listener.r - The listener.enabled - The state to set.components - The components to enable or disable.act in class CollapsibleWindowacceptButton in interface IScreencancelButton in interface IScreen