popout 0.1.1

Small and simple modal popups powered by egui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use popout::{Color32, LogicalSize, RichText, dialog::Dialog};

fn main() {
    let error = "Something went wrong :("; // an extremely helpful microsoft approved error message

    Dialog::new()
        .with_title("Error")
        .with_line(RichText::new("Error").heading().color(Color32::RED))
        .with_line(error)
        .with_button("Close")
        .with_size(LogicalSize::new(200, 100))
        .show()
        .unwrap();
}