#notifications #applications #notify #system #context #bevy-egui

bevy-egui-notify

Simple notifications library for EGUI, in the bevy system

1 unstable release

0.16.0 Oct 3, 2024

#938 in Game dev

Download history 129/week @ 2024-09-29 17/week @ 2024-10-06 12/week @ 2024-10-13 1/week @ 2024-10-20

159 downloads per month

MIT license

115KB
636 lines

FORK NOTICE: This is a simple fork that uses bevy_egui's re-exported egui crate, such that one can use the same egui version within the same applications (otherwise, there would be issue if you try to pass in an older/newer version of egui context to draw things).

bevy-egui-notify

Simple notifications library for egui

example_image

example_video

Usage

use bevy_egui_notify::EguiToastsPlugin;

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

fn my_system(
    toasts: ResMut<EguiToasts>,
    ...
) {
    ...
    toasts.0.info("hello");
}

Installation

cargo add bevy-egui-notify

lib.rs:

egui-notify Simple notifications library for egui.

Dependencies

~29–68MB
~1M SLoC