Releases: void-scape/pretty-text
Releases · void-scape/pretty-text
v0.4.1
v0.4.0
Fixed
- Panic when parsing empty strings.
- Build errors about missing method
with_docsin complex projects.
Changed
- Upgraded to Bevy 0.18.
Rainboweffect will ignoreTextColor.
v0.3.1
Fixed
- Panic when encountering newlines.
v0.3.0
Added
vertex_maskexample.dynamic_stylesexample.
Changed
- Upgraded to Bevy 0.17
- Renamed system sets as per the
:
PrettyEffectSet=>PrettyEffectSystemsPrettyStyleSet=>PrettyStyleSystemsTypewriterSet=>TypewriterSystems
- Parser syntax. Spans are now delimited with brackets and styles with parenthesis:
[my span](my_styles).
This syntax is more intuitive for new users and allows defining spans without styles,
e.g.first, [second], third. - Renamed
PauseTypewritertoDelayTypewriter.PauseTypewriternow pauses execution
indefinitely. GlyphScaleis now only computed fromTextFont::font_size. The translation ofGlyphVerticesis
automatically scaled based on theGlobalTransform/UiGlobalTransformcomponents.- Pulled out shader bindings and types into a
bevy_pretty_textshader library. See
default_glyph_material.wgslfor an example. StringtoPrettyParserErroras the error type for parsing operations.- Effects systems have been moved from
UpdatetoPostUpdate. This prevents any delay between
glyph and effects systems.
Removed
default_stylesexample because it relied on a non-obvious implementation detail.TrackedSpanbecause of the introduction ofSpawnDetails.
Fixed
- Rendering bug when
TextandText2dare used in the same scene.
v0.2.0
Added
- Support for
Text. - Support for effects inserted directly into text entities.
PrettyTextParser2dstruct andpretty2dmacro.PrettyTextParserandprettynow
produceTextinstead ofText2d.- Custom render pipelines for
TextandText2dusingGlyphMaterials. - New behavior effects:
Rainbow,Bounce,Breathe,Fade,Pivot, andSpin. - New appearance effects:
FadeInandSpread. Appearance effects are driven by
theAppearedcomponent, which is automatically inserted intoGlyphentities when
GlyphRevealedevents are triggered by theTypewriter. effectsmacro to declareEffectOfrelationships in style entities.EffectQueryto iterate overGlypheffect query data.- Components to configure
Typewriterbehavior:DisableCommands,DisableEvents,
DisableCallbacks,DisableAppearance,FinishTypewriter, andShortCircuitTypewriter. PrettyTextBuilderfor dynamically buildingParsedPrettyText.- Tracking information for
ParsedPrettyTextto debug syntax and style errors. Stylescomponent for text spans to track style entities.StyleWriterto update the styles inStylescomponents.- Default style entities for all colors in
bevy::color::palettes::basic.
Changed
- Refactored crate structure. Moved
bevy_pretty_effectsandbevy_pretty_textcrates
intopretty_text. Renamedpretty_texttobevy_pretty_text. Pulled out the pretty
text parser into thepretty_text_parsercrate. - Vertex shader input and view uniform binding for
GlyphMaterials. Look to
default_glyph_material.wgslfor reference. Scrambleis now an appearance effect instead of a behavior effect.- Renamed
PrettyTextSpanstoParsedPrettyText. - Replaced
GlyphSpanEntitywith theSpanGlyphsandSpanGlyphOfrelationship. - Renamed the
TextMaterial2dtrait toGlyphMaterial. Removed theset_atlasmethod
and addedvertex_shaderandfragment_shadermethods. - Renamed
DynamicTextMaterialtoDynamicEffect - Renamed
ErasedPrettyTextMaterialtoStyle. - Renamed
TypeWriterModetoTypewriterIndex.
Removed
Typewriter::finish. Insert theFinishTypewritercomponent instead.Revealcomponent.Glyphvisibility is now managed with theGlyphRevealedevent.GlyphOffset. Replaced functionality withGlyphVertices.GlyphOrigin.Glyphentities now automatically calculate their position.GlyphCacheandGlyphCacheTrimTimeout.Glyphentities are directly extracted in
the new render pipelines, removing the need to cacheMeshes.SpanAtlasImage. The atlas image is automatically provided for shader code in the
new render pipelines.default_effectsfeature. Effects have been migrated to thebevy_pretty_textcrate.TextMaterial2dderive macro.
Fixed
- Replaced all names with
TypeWritertoTypewriter.
v0.1.0
Fixed README link