public abstract static class ButtonsPanel.PreAllocatedPanels<T extends com.badlogic.gdx.graphics.Color> extends ButtonsPanel<T>
ISquidPanel
s. A single abstract method remains to be implemented:
what to do when a button is pressed, i.e.
ButtonsPanel.selectedButton(int)
.ButtonsPanel.FirstAndLastButtonIndex, ButtonsPanel.PreAllocatedPanels<T extends com.badlogic.gdx.graphics.Color>, ButtonsPanel.Rectangle
bgColor, borderColor, borderMargin, borderStyle, buttonMargin, buttons, buttonsAlignment, buttonsMarginColor, buttonsTexts, cornerStyle, doNotBind, enableScrolling, firstLastButtonIndexes, hcells, insideButtonBGColor, interButtonMargin, scrollText, shortcutCharacterColor, shortcuts, unbindable, vcells, xpadding, ypadding
bg, fg
Modifier | Constructor and Description |
---|---|
protected |
PreAllocatedPanels(squidpony.panel.ISquidPanel<T> bg,
squidpony.panel.ISquidPanel<T> fg,
List<squidpony.panel.IColoredString<T>> buttonTexts) |
Modifier and Type | Method and Description |
---|---|
protected squidpony.panel.ISquidPanel<T> |
buildPanel(int width,
int height)
This method can be left unimplemented if you give the panels at
construction time (constructor
ButtonsPanel.ButtonsPanel(ISquidPanel, ISquidPanel, List) . |
addDoNotBind, buildKeyInputProcessor, buildMouseInputProcessor, canBeShortcut, displayMarginsAround, getHCells, getVCells, hasScrollDown, hasScrollUp, init, pixelsHeight, pixelsWidth, putAll, putBorder, putButtonInside, putButtonsMarginsAndBorder, putHook, putShortcut, scrollDown, scrollDownButtonIndex, scrollUp, selectedButton, y_gdxToSquid
addActors, cellHeight, cellWidth, checkBG, checkFG, fill, getGridHeight, getGridWidth, hasActiveAnimations, put, put, put, putBG, putBottomLeft, putBottomRight, putFG, putFG, putFG, putFG, setColorCenter, setPanels, toString
act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, childrenChanged, clear, clearChildren, computeTransform, debugAll, draw, drawChildren, drawDebug, drawDebugChildren, findActor, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor
addAction, addCaptureListener, addListener, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasParent, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront
protected PreAllocatedPanels(squidpony.panel.ISquidPanel<T> bg, squidpony.panel.ISquidPanel<T> fg, List<squidpony.panel.IColoredString<T>> buttonTexts)
protected squidpony.panel.ISquidPanel<T> buildPanel(int width, int height)
ButtonsPanel
ButtonsPanel.ButtonsPanel(ISquidPanel, ISquidPanel, List)
.buildPanel
in class ButtonsPanel<T extends com.badlogic.gdx.graphics.Color>
width
- The width that the panel must have.height
- The height that the panel must have.ISquidPanel
.Copyright © 2012–2016. All rights reserved.