bevy-egui-notify

Crates.iobevy-egui-notify
lib.rsbevy-egui-notify
version0.16.0
sourcesrc
created_at2024-10-03 13:49:06.92185
updated_at2024-10-03 13:49:06.92185
descriptionSimple notifications library for EGUI, in the bevy system
homepage
repositoryhttps://github.com/soraxas/bevy-egui-notify
max_upload_size
id1395225
size209,322
Tin Lai (soraxas)

documentation

README

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
Commit count: 111

cargo fmt