T
- TextPanel
instead@Deprecated public abstract class SquidTextPanel<T extends com.badlogic.gdx.graphics.Color> extends GroupCombinedPanel<T>
This class is somehow doing a simpler business as ButtonsPanel
but
they did not get merged, because ButtonsPanel
would then become a
monster.
This class is deprecated. You should likely use TextPanel
instead,
because it directly relies on libgdx for rendering and hence has a more
"serif" display, which is appropriate for text. Moreover TextPanel
uses more recent stuff (such as GDXMarkup
), supports scrolling, and
is more memory efficient (no backing SquidPanel
-> save on allocated
arrays).
ButtonsPanel
Modifier and Type | Field and Description |
---|---|
T |
backgroundColor
Deprecated.
The background color
|
T |
borderColor
Deprecated.
The border's color
|
int |
borderSize
Deprecated.
|
UIUtil.CornerStyle |
borderStyle
Deprecated.
The style of the border
|
protected int |
h
Deprecated.
|
boolean |
justifyText
Deprecated.
Whether to use
IColoredString.justify(int) on text |
int |
maxHeight
Deprecated.
The maximum height that this panel can take (in number of cells).
|
int |
maxWidth
Deprecated.
The maximum width that this panel can take (in number of cells).
|
protected List<squidpony.panel.IColoredString<T>> |
text
Deprecated.
|
float |
zoomMultiplierX
Deprecated.
|
float |
zoomMultiplierY
Deprecated.
|
bg, fg
Constructor and Description |
---|
SquidTextPanel()
Deprecated.
A panel with backers created lazily.
|
SquidTextPanel(squidpony.panel.ISquidPanel<T> bg,
squidpony.panel.ISquidPanel<T> fg)
Deprecated.
A panel with preallocated backers.
|
Modifier and Type | Method and Description |
---|---|
protected abstract squidpony.panel.ISquidPanel<T> |
buildPanel(int width,
int height)
Deprecated.
This method can be left unimplemented if you give the panels at
construction time.
|
void |
init(List<squidpony.panel.IColoredString<T>> text)
Deprecated.
Sets the text and prepares for display.
|
protected void |
prepare()
Deprecated.
|
void |
put(boolean putBorders)
Deprecated.
|
void |
putBorder()
Deprecated.
|
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 List<squidpony.panel.IColoredString<T extends com.badlogic.gdx.graphics.Color>> text
public int maxWidth
public int maxHeight
public T extends com.badlogic.gdx.graphics.Color backgroundColor
public T extends com.badlogic.gdx.graphics.Color borderColor
public UIUtil.CornerStyle borderStyle
public int borderSize
public float zoomMultiplierX
public float zoomMultiplierY
public boolean justifyText
IColoredString.justify(int)
on textprotected int h
public SquidTextPanel(squidpony.panel.ISquidPanel<T> bg, squidpony.panel.ISquidPanel<T> fg)
bg
- fg
- public SquidTextPanel()
public void init(List<squidpony.panel.IColoredString<T>> text)
put(boolean)
or
putBorder()
.text
- public void put(boolean putBorders)
putBorders
- Puts this panel on screen, but do not draw it yet (we'd need a
Stage
for that).public void putBorder()
protected abstract squidpony.panel.ISquidPanel<T> buildPanel(int width, int height)
width
- The width that the panel must have.height
- The height that the panel must have.ISquidPanel
.protected void prepare()
Copyright © 2012–2016. All rights reserved.