diff --git a/README.md b/README.md index 3deb9e8f..aeeac4f4 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ characters and block elements be automatically generated. This needs a solid whi typically 1x1) present in the font at id 0 (used here because most fonts don't use it) or 9608 (the Unicode full block index). This also enables a better guarantee of underline and strikethrough characters connecting properly, and without smudging where two underscores or hyphens overlap each other. `Font` attempts to enable this by default, but if it fails -then it falls back to using underscores for underline and hyphens for strikethrough. All of the fonts in `KnownFonts` +then it falls back to using underscores for underline and hyphens for strikethrough. All the fonts in `KnownFonts` either are configured to use a solid block or to specifically avoid it because that font renders better without it. These two features are new in 0.3.0, and are expected to see more attention in future releases (such as more @@ -106,7 +106,7 @@ configuration for rotation origin). ## Hold the phone, there's widgets! -Starting in the 0.4.0 release (in development), there are various widgets that replace their +Starting in the 0.4.0 release, there are various widgets that replace their scene2d.ui counterparts and swap out `Label` for `TextraLabel`, allowing you to use markup in them. The widgets are `ImageTextraButton`, `TextraButton`, `TextraCheckBox`, `TextraDialog`, `TextraLabel`, `TextraTooltip`, and `TextraWindow`, at least, so far. @@ -120,7 +120,7 @@ for some usage. A counterpart to `TextArea` is planned. You probably want to get this with Gradle! The dependency for a libGDX project's core module looks like: ```groovy -implementation "com.github.tommyettinger:textratypist:0.3.0" +implementation "com.github.tommyettinger:textratypist:0.4.0" ``` This assumes you already depend on libGDX; TextraTypist depends on version 1.10.0 or higher, and should have no problems @@ -131,7 +131,7 @@ a different version for 1.10.1 (-SNAPSHOT) and higher vs. 1.10.0 . If you use GWT, this should be compatible. It needs these dependencies in the html module: ```groovy -implementation "com.github.tommyettinger:textratypist:0.3.0:sources" +implementation "com.github.tommyettinger:textratypist:0.4.0:sources" implementation "com.github.tommyettinger:regexodus:0.1.13:sources" ``` diff --git a/docs/apidocs/allclasses-frame.html b/docs/apidocs/allclasses-frame.html index 6fe3a418..8eaccc89 100644 --- a/docs/apidocs/allclasses-frame.html +++ b/docs/apidocs/allclasses-frame.html @@ -3,7 +3,7 @@
-public class ImageTextraButton
+extends com.badlogic.gdx.scenes.scene2d.ui.Button
+Image
and TextraLabel
.ImageButton
,
+TextraButton
,
+Button
com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
com.badlogic.gdx.scenes.scene2d.ui.Table.Debug, com.badlogic.gdx.scenes.scene2d.ui.Table.DebugRect
backgroundBottom, backgroundLeft, backgroundRight, backgroundTop, debugActorColor, debugCellColor, debugTableColor
Constructor and Description | +
---|
ImageTextraButton(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton.ImageTextButtonStyle style) |
+
ImageTextraButton(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton.ImageTextButtonStyle style,
+ Font replacementFont) |
+
ImageTextraButton(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.Skin skin) |
+
ImageTextraButton(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.Skin skin,
+ Font replacementFont) |
+
ImageTextraButton(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.Skin skin,
+ java.lang.String styleName) |
+
ImageTextraButton(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.Skin skin,
+ java.lang.String styleName,
+ Font replacementFont) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+draw(com.badlogic.gdx.graphics.g2d.Batch batch,
+ float parentAlpha) |
+
protected com.badlogic.gdx.graphics.Color |
+getFontColor()
+Returns the appropriate label font color from the style based on the current button state.
+ |
+
com.badlogic.gdx.scenes.scene2d.ui.Image |
+getImage() |
+
com.badlogic.gdx.scenes.scene2d.ui.Cell<?> |
+getImageCell() |
+
protected com.badlogic.gdx.scenes.scene2d.utils.Drawable |
+getImageDrawable()
+Returns the appropriate image drawable from the style based on the current button state.
+ |
+
TextraLabel |
+getLabel() |
+
com.badlogic.gdx.scenes.scene2d.ui.Cell<?> |
+getLabelCell() |
+
com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton.ImageTextButtonStyle |
+getStyle() |
+
java.lang.String |
+getText() |
+
protected com.badlogic.gdx.scenes.scene2d.ui.Image |
+newImage() |
+
protected TextraLabel |
+newLabel(java.lang.String text,
+ Font font) |
+
protected TextraLabel |
+newLabel(java.lang.String text,
+ Font font,
+ com.badlogic.gdx.graphics.Color color) |
+
protected TextraLabel |
+newLabel(java.lang.String text,
+ com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style) |
+
void |
+setLabel(TextraLabel label) |
+
void |
+setStyle(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style) |
+
void |
+setStyle(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style,
+ boolean makeGridGlyphs) |
+
void |
+setStyle(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style,
+ Font font) |
+
void |
+setText(java.lang.CharSequence text) |
+
java.lang.String |
+toString() |
+
protected void |
+updateImage()
+Sets the image drawable based on the current button state.
+ |
+
getBackgroundDrawable, getButtonGroup, getClickListener, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, isChecked, isDisabled, isOver, isPressed, setChecked, setDisabled, setProgrammaticChangeEvents, toggle
add, add, add, add, add, add, add, align, background, background, bottom, center, clearChildren, clip, clip, columnDefaults, debug, debug, debugActor, debugAll, debugCell, debugTable, defaults, drawBackground, drawDebug, drawDebugBounds, getAlign, getBackground, getCell, getCells, getClip, getColumnMinWidth, getColumnPrefWidth, getColumns, getColumnWidth, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getRow, getRowHeight, getRowMinHeight, getRowPrefHeight, getRows, getSkin, getTableDebug, hit, 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, top
childrenChanged, getMaxHeight, getMaxWidth, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
act, addActor, 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
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, fire, firstAscendant, 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, 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, toFront
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ImageTextraButton(@Null + java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.Skin skin)+
public ImageTextraButton(@Null + java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.Skin skin, + java.lang.String styleName)+
public ImageTextraButton(@Null + java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton.ImageTextButtonStyle style)+
public ImageTextraButton(@Null + java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.Skin skin, + Font replacementFont)+
public ImageTextraButton(@Null + java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.Skin skin, + java.lang.String styleName, + Font replacementFont)+
public ImageTextraButton(@Null + java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton.ImageTextButtonStyle style, + Font replacementFont)+
protected com.badlogic.gdx.scenes.scene2d.ui.Image newImage()+
protected TextraLabel newLabel(java.lang.String text, + com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style)+
protected TextraLabel newLabel(java.lang.String text, + Font font)+
protected TextraLabel newLabel(java.lang.String text, + Font font, + com.badlogic.gdx.graphics.Color color)+
public void setStyle(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style)+
setStyle
in class com.badlogic.gdx.scenes.scene2d.ui.Button
public void setStyle(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style, + boolean makeGridGlyphs)+
public void setStyle(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style, + Font font)+
public com.badlogic.gdx.scenes.scene2d.ui.ImageTextButton.ImageTextButtonStyle getStyle()+
getStyle
in class com.badlogic.gdx.scenes.scene2d.ui.Button
@Null +protected com.badlogic.gdx.scenes.scene2d.utils.Drawable getImageDrawable()+
protected void updateImage()+
getImageDrawable()
.@Null +protected com.badlogic.gdx.graphics.Color getFontColor()+
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, + float parentAlpha)+
draw
in class com.badlogic.gdx.scenes.scene2d.ui.Button
public com.badlogic.gdx.scenes.scene2d.ui.Image getImage()+
public com.badlogic.gdx.scenes.scene2d.ui.Cell<?> getImageCell()+
public void setLabel(TextraLabel label)+
public TextraLabel getLabel()+
public com.badlogic.gdx.scenes.scene2d.ui.Cell<?> getLabelCell()+
public void setText(java.lang.CharSequence text)+
public java.lang.String getText()+
public java.lang.String toString()+
toString
in class com.badlogic.gdx.scenes.scene2d.Group