From f3c39d4ccabc3663721d04cb1e0ea8bffa0a6ced Mon Sep 17 00:00:00 2001 From: Tommy Ettinger Date: Fri, 17 Jun 2022 21:47:02 -0700 Subject: [PATCH] Release 0.5.4 ! Former-commit-id: 565e97241d3f5017c95ca2405151e5d0fb5b90c6 --- README.md | 19 +- docs/apidocs/allclasses-frame.html | 3 +- docs/apidocs/allclasses-noframe.html | 3 +- .../textra/ColorLookup.GdxColorLookup.html | 4 +- .../tommyettinger/textra/ColorLookup.html | 4 +- .../github/tommyettinger/textra/Effect.html | 6 +- .../textra/Font.DistanceFieldType.html | 4 +- .../tommyettinger/textra/Font.FontFamily.html | 4 +- .../textra/Font.GlyphRegion.html | 4 +- .../com/github/tommyettinger/textra/Font.html | 8 +- .../textra/ImageTextraButton.html | 4 +- .../tommyettinger/textra/KnownFonts.html | 8 +- .../github/tommyettinger/textra/Layout.html | 4 +- .../com/github/tommyettinger/textra/Line.html | 4 +- .../tommyettinger/textra/TextraButton.html | 4 +- .../tommyettinger/textra/TextraCheckBox.html | 4 +- .../tommyettinger/textra/TextraDialog.html | 6 +- .../tommyettinger/textra/TextraLabel.html | 10 +- .../tommyettinger/textra/TextraTooltip.html | 4 +- .../tommyettinger/textra/TextraWindow.html | 4 +- .../tommyettinger/textra/TokenCategory.html | 4 +- .../tommyettinger/textra/TypingAdapter.html | 4 +- .../tommyettinger/textra/TypingConfig.html | 4 +- .../tommyettinger/textra/TypingLabel.html | 8 +- .../tommyettinger/textra/TypingListener.html | 4 +- .../textra/effects/BlinkEffect.html | 4 +- .../textra/effects/CarouselEffect.html | 4 +- .../textra/effects/CrowdEffect.html | 4 +- .../textra/effects/EaseEffect.html | 4 +- .../textra/effects/EmergeEffect.html | 4 +- .../textra/effects/FadeEffect.html | 4 +- .../textra/effects/GradientEffect.html | 4 +- .../textra/effects/HangEffect.html | 4 +- .../textra/effects/HeartbeatEffect.html | 4 +- .../textra/effects/JoltEffect.html | 4 +- .../textra/effects/JumpEffect.html | 4 +- .../textra/effects/RainbowEffect.html | 8 +- .../textra/effects/RotateEffect.html | 312 ++++++ .../textra/effects/ScaleEffect.html | 8 +- .../textra/effects/ShakeEffect.html | 4 +- .../textra/effects/ShrinkEffect.html | 4 +- .../textra/effects/SickEffect.html | 4 +- .../textra/effects/SlideEffect.html | 4 +- .../textra/effects/SpinEffect.html | 4 +- .../textra/effects/SpiralEffect.html | 4 +- .../textra/effects/SquashEffect.html | 4 +- .../textra/effects/WaveEffect.html | 4 +- .../textra/effects/WindEffect.html | 4 +- .../textra/effects/package-frame.html | 3 +- .../textra/effects/package-summary.html | 28 +- .../textra/effects/package-tree.html | 5 +- .../tommyettinger/textra/package-frame.html | 2 +- .../tommyettinger/textra/package-summary.html | 4 +- .../tommyettinger/textra/package-tree.html | 6 +- .../textra/utils/BlockUtils.html | 4 +- .../textra/utils/ColorUtils.html | 4 +- .../textra/utils/NoiseUtils.html | 4 +- .../textra/utils/package-frame.html | 2 +- .../textra/utils/package-summary.html | 4 +- .../textra/utils/package-tree.html | 4 +- docs/apidocs/constant-values.html | 4 +- docs/apidocs/deprecated-list.html | 4 +- docs/apidocs/help-doc.html | 4 +- docs/apidocs/index-all.html | 14 +- docs/apidocs/index.html | 2 +- docs/apidocs/overview-frame.html | 2 +- docs/apidocs/overview-summary.html | 6 +- docs/apidocs/overview-tree.html | 5 +- gradle.properties | 2 +- .../tommyettinger/textra/ColorLookup.java | 8 +- .../github/tommyettinger/textra/Effect.java | 58 +- .../com/github/tommyettinger/textra/Font.java | 928 ++++++++++-------- .../textra/ImageTextraButton.java | 433 ++++---- .../tommyettinger/textra/InternalToken.java | 48 +- .../tommyettinger/textra/KnownFonts.java | 245 ++--- .../github/tommyettinger/textra/Layout.java | 41 +- .../com/github/tommyettinger/textra/Line.java | 2 +- .../github/tommyettinger/textra/Parser.java | 144 +-- .../tommyettinger/textra/TextraButton.java | 305 +++--- .../tommyettinger/textra/TextraCheckBox.java | 221 +++-- .../tommyettinger/textra/TextraDialog.java | 598 +++++------ .../tommyettinger/textra/TextraLabel.java | 131 +-- .../tommyettinger/textra/TextraTooltip.java | 221 +++-- .../tommyettinger/textra/TextraWindow.java | 753 +++++++------- .../tommyettinger/textra/TokenEntry.java | 14 +- .../tommyettinger/textra/TypingAdapter.java | 4 +- .../tommyettinger/textra/TypingConfig.java | 32 +- .../tommyettinger/textra/TypingLabel.java | 248 ++--- .../tommyettinger/textra/TypingListener.java | 8 +- .../textra/effects/BlinkEffect.java | 16 +- .../textra/effects/CarouselEffect.java | 10 +- .../textra/effects/CrowdEffect.java | 14 +- .../textra/effects/EaseEffect.java | 18 +- .../textra/effects/EmergeEffect.java | 12 +- .../textra/effects/FadeEffect.java | 32 +- .../textra/effects/GradientEffect.java | 24 +- .../textra/effects/HangEffect.java | 16 +- .../textra/effects/HeartbeatEffect.java | 15 +- .../textra/effects/JoltEffect.java | 33 +- .../textra/effects/JumpEffect.java | 18 +- .../textra/effects/RainbowEffect.java | 20 +- .../textra/effects/RotateEffect.java | 6 +- .../textra/effects/ScaleEffect.java | 12 +- .../textra/effects/ShakeEffect.java | 16 +- .../textra/effects/ShrinkEffect.java | 18 +- .../textra/effects/SickEffect.java | 36 +- .../textra/effects/SlideEffect.java | 20 +- .../textra/effects/SpinEffect.java | 16 +- .../textra/effects/SpiralEffect.java | 21 +- .../textra/effects/SquashEffect.java | 24 +- .../textra/effects/WaveEffect.java | 16 +- .../textra/effects/WindEffect.java | 30 +- .../textra/utils/BlockUtils.java | 11 +- .../textra/utils/ColorUtils.java | 52 +- .../textra/utils/NoiseUtils.java | 10 +- 115 files changed, 3136 insertions(+), 2478 deletions(-) create mode 100644 docs/apidocs/com/github/tommyettinger/textra/effects/RotateEffect.html diff --git a/README.md b/README.md index 82fd7f46..30fb894c 100644 --- a/README.md +++ b/README.md @@ -100,12 +100,15 @@ licenses for details. You can rotate individual glyphs (if you draw them individually) or rotate whole blocks of text as a Layout, using an optional overload of `Font.drawGlyph()` or `Font.drawGlyphs()`. Custom effects for `TypingLabel` can also individually -change the rotation of any glyph, as well as its position and scale on x and/or y. You can also, for some fonts, have +change the rotation of any glyph, as well as its position and scale on x and/or y. You can rotate a TextraLabel or +TypingLabel by using their `setRotation()` methods, but these are currently only even remotely usable for Labels without +background graphics. Any help with the rotation code would be appreciated! You can also, for some fonts, have box-drawing characters and block elements be automatically generated. This needs a solid white block character (of any -size, 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, `'\u2588'`). 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 the +size, typically 1x1) present in the font at id 0 (used here because most fonts don't use it) or better, 9608 (the +Unicode full block index, `'\u2588'`, which is preferred because BitmapFont treats id 0 differently). 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 in some cases, or it can be set with a +parameter, but if it fails 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. Note that if you create a `Font` from a libGDX `BitmapFont`, this defaults to not even trying to make grid glyphs, because BitmapFonts rarely have a suitable solid block char. @@ -129,7 +132,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.5.3" +implementation "com.github.tommyettinger:textratypist:0.5.4" ``` This assumes you already depend on libGDX; TextraTypist depends on version 1.11.0 or higher. The requirement for 1.11.0 @@ -138,7 +141,7 @@ was added in TextraTypist 0.5.0 because of some breaking changes in tooltip code If you use GWT, this should be compatible. It needs these dependencies in the html module: ```groovy -implementation "com.github.tommyettinger:textratypist:0.5.3:sources" +implementation "com.github.tommyettinger:textratypist:0.5.4:sources" implementation "com.github.tommyettinger:regexodus:0.1.13:sources" ``` @@ -171,7 +174,7 @@ but I request that it only be used to refer to this project unless substantially Wow, raeleus has really helped a tremendous amount. Both by testing TextraTypist in his Skin Composer app (which found quite a lot of bugs, small and large), and advising on proper scene2d.ui layout practices (which were not easy to get -100% right), the large 0.5.2 release would not be what it is today without his input. Thank you! +100% right), the large 0.5.2 release (and those after it) would not be what it is today without his input. Thank you! Of course, I have to thank Rafa Skoberg for writing quite a lot of the code here! About 2/3 of the effects are almost purely by Rafa, much of the TypingLabel-related code is nearly unchanged from his work, and in general he showed what diff --git a/docs/apidocs/allclasses-frame.html b/docs/apidocs/allclasses-frame.html index a831bbe3..b424d410 100644 --- a/docs/apidocs/allclasses-frame.html +++ b/docs/apidocs/allclasses-frame.html @@ -3,7 +3,7 @@ -All Classes (textratypist 0.5.3 API) +All Classes (textratypist 0.5.4 API) @@ -37,6 +37,7 @@

All Classes

  • Line
  • NoiseUtils
  • RainbowEffect
  • +
  • RotateEffect
  • ScaleEffect
  • ShakeEffect
  • ShrinkEffect
  • diff --git a/docs/apidocs/allclasses-noframe.html b/docs/apidocs/allclasses-noframe.html index 560b23c8..6a6c7da4 100644 --- a/docs/apidocs/allclasses-noframe.html +++ b/docs/apidocs/allclasses-noframe.html @@ -3,7 +3,7 @@ -All Classes (textratypist 0.5.3 API) +All Classes (textratypist 0.5.4 API) @@ -37,6 +37,7 @@

    All Classes

  • Line
  • NoiseUtils
  • RainbowEffect
  • +
  • RotateEffect
  • ScaleEffect
  • ShakeEffect
  • ShrinkEffect
  • diff --git a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html index c9219df6..e0baa199 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html +++ b/docs/apidocs/com/github/tommyettinger/textra/ColorLookup.GdxColorLookup.html @@ -3,7 +3,7 @@ -ColorLookup.GdxColorLookup (textratypist 0.5.3 API) +ColorLookup.GdxColorLookup (textratypist 0.5.4 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ + + + + + +
    + + + + + + + +
    + + + +
    +
    com.github.tommyettinger.textra.effects
    +

    Class RotateEffect

    +
    +
    + +
    +
      +
    • +
      +
      +
      public class RotateEffect
      +extends Effect
      +
      Permanently rotates text in-place for each cell. Doesn't change over time.
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          RotateEffect

          +
          public RotateEffect(TypingLabel label,
          +                    java.lang.String[] params)
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          onApply

          +
          protected void onApply(long glyph,
          +                       int localIndex,
          +                       int globalIndex,
          +                       float delta)
          +
          Description copied from class: Effect
          +
          Called when this effect should be applied to the given glyph.
          +
          +
          Specified by:
          +
          onApply in class Effect
          +
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/docs/apidocs/com/github/tommyettinger/textra/effects/ScaleEffect.html b/docs/apidocs/com/github/tommyettinger/textra/effects/ScaleEffect.html index 085b7d3f..32bf9d56 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/effects/ScaleEffect.html +++ b/docs/apidocs/com/github/tommyettinger/textra/effects/ScaleEffect.html @@ -3,7 +3,7 @@ -ScaleEffect (textratypist 0.5.3 API) +ScaleEffect (textratypist 0.5.4 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -24,6 +24,7 @@

    Classes

  • JoltEffect
  • JumpEffect
  • RainbowEffect
  • +
  • RotateEffect
  • ScaleEffect
  • ShakeEffect
  • ShrinkEffect
  • diff --git a/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html b/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html index b4462fc4..c6b3bd94 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html +++ b/docs/apidocs/com/github/tommyettinger/textra/effects/package-summary.html @@ -3,7 +3,7 @@ -com.github.tommyettinger.textra.effects (textratypist 0.5.3 API) +com.github.tommyettinger.textra.effects (textratypist 0.5.4 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/com/github/tommyettinger/textra/package-summary.html b/docs/apidocs/com/github/tommyettinger/textra/package-summary.html index eff71acc..ebbecd9b 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/package-summary.html +++ b/docs/apidocs/com/github/tommyettinger/textra/package-summary.html @@ -3,7 +3,7 @@ -com.github.tommyettinger.textra (textratypist 0.5.3 API) +com.github.tommyettinger.textra (textratypist 0.5.4 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html b/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html index 0f2e566d..a6ebdd8d 100644 --- a/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html +++ b/docs/apidocs/com/github/tommyettinger/textra/utils/package-summary.html @@ -3,7 +3,7 @@ -com.github.tommyettinger.textra.utils (textratypist 0.5.3 API) +com.github.tommyettinger.textra.utils (textratypist 0.5.4 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@ diff --git a/docs/apidocs/overview-summary.html b/docs/apidocs/overview-summary.html index 4c198c46..76576ac6 100644 --- a/docs/apidocs/overview-summary.html +++ b/docs/apidocs/overview-summary.html @@ -3,7 +3,7 @@ -Overview (textratypist 0.5.3 API) +Overview (textratypist 0.5.4 API) @@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@