2 releases

0.1.1 Aug 21, 2024
0.1.0 Aug 20, 2024

#1929 in Game dev

Download history 238/week @ 2024-08-16 35/week @ 2024-08-23 4/week @ 2024-08-30 29/week @ 2024-09-13 21/week @ 2024-09-20 14/week @ 2024-09-27 102/week @ 2024-10-04 59/week @ 2024-10-11 30/week @ 2024-10-18 22/week @ 2024-10-25 54/week @ 2024-11-01 11/week @ 2024-11-08

117 downloads per month

MIT/Apache

34KB
689 lines

pyri_tooltip

Crates.io Docs License

A simple demonstration of a few tooltip features

Read the documentation for more information.

Bevy version compatibility

bevy version pyri_tooltip version
0.14 0.1

License

This crate is available under either of MIT or Apache-2.0 at your choice.


lib.rs:

Powerful tooltips for Bevy.

Getting started

Import the [prelude] to bring common types into scope:

use pyri_tooltip::prelude::*;

Add TooltipPlugin to set up the tooltip system:

app.add_plugins(TooltipPlugin::default());

Spawn a UI node with Interaction and Tooltip components:

commands.spawn((
    NodeBundle::default(),
    Interaction::default(),
    Tooltip::cursor("Hello, world!"),
));

Advanced

To customize the behavior and appearance of a tooltip, see Tooltip.

To replace the default primary tooltip, see TooltipPlugin and PrimaryTooltip.

Dependencies

~36–73MB
~1.5M SLoC