bevy_web_popups
Allows to trigger web/dom based popups/alerts and textinput in bevy using wasm-bindgen's web_sys. It is fully customizable but comes with a batteries included default style (see demo below).
See the crate in action in TinyTakeoff:

Features
window.alert()- popup dialog with background darkening, textinput, cancel and ok button (fully customizable)
Usage
Add dependency: cargo add bevy_web_popups
Initialize Bevy Plugin:
// request initialisation right on startup
app.add_plugins;
app.observe;
// system processing events coming from the web plugin
Our Other Crates
- bevy_debug_log
- bevy_device_lang
- bevy_libgdx_atlas
- bevy_ios_iap
- bevy_ios_review
- bevy_ios_gamecenter
- bevy_ios_alerts
- bevy_ios_notifications
- bevy_ios_impact
- bevy_ios_safearea
Bevy version support
| bevy | this crate |
|---|---|
| 0.17 | 0.6,main |
| 0.16 | 0.5 |
| 0.15 | 0.4 |
| 0.14 | 0.2,0.3 |
| 0.13 | 0.1 |
License
All code in this repository is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option. This means you can select the license you prefer.
Your contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.