0.0.2
CHANGES:
MintTea
-
Add support for custom events – any Riot message sent to a Mint Tea app will
become anEvent.Custom msgevent, which enables sending data into TUIs from
other processes. -
Add
keytype for key down events – this means we now get better
discoverability of what key down events we can match on, and its easier to
keep examples working -
Capture more key events: arrows (left,down,up,right), backspace, space,
enter, escape. -
Move
initial_stateto the application start invocation – you can now run
your app with multiple initial states, which makes it ideal for starting apps
in the middle of other flows, or to test specific scenarios. -
Fix bug where TTY was not restored from RAW mode during normal shutdown.
-
Now the
Event.Frame timeevent includes the frame time, and all examples
are updated to work with it. -
Add new
Hide_cursorandShow_cursorcommands, and always restore the
cursor to visible on exit
Leaves
-
New
Leaves.Fpsto specify a frame rate and cap updates at that rate (Thanks
to @sabine) -
New
Leaves.Spritemodule to create frame-based animations that are ticked
at a specific frame-rate (Thanks to @sabine) -
New
Leaves.Spinnercontains several spinners ready to be used in
applications (Thanks to @sabine) -
New
Leaves.Text_inputfield ready to be used in applications (Thanks to
@lessp) -
New
Leaves.Cursorthat can be used to highlight where the cursor is in a
given text (Thanks to @nguermond) -
Reworked
Leaves.Progressto support plain and gradient progress bars with
customizable empty/full/trail characters, and to fit right into the
make/update/view pattern.
Spices
- Implemented support for gradients between two RGB colors
Examples
-
New Spinners example showcasing several spinners (Thanks to @sabine)
-
New Emojis game example showcasing a tilemap and moving a player around
-
New Basic example for the README tutorial
-
New Progress bars examples showcasing plain, gradient, and emoji progress bars
-
New Text input field example (Thanks to @lessp)
-
Updated other examples to use the new progress bars
Docs
- New tutorial starting from zero and building a small shopping list app
(Thanks to @metame)