aboutsummaryrefslogtreecommitdiff
path: root/src/systems.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2024-11-21 12:24:51 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2024-11-21 12:24:51 -0500
commitfa9217470368e694654d534039dfaebea2a1c6a6 (patch)
treee4193834275ec8115cbcde37949474765b9dbeb9 /src/systems.rs
parentaddcfff12a76f861e07d844eabfa349e2f4014c1 (diff)
Thu Nov 21 12:24:51 PM EST 2024
Diffstat (limited to 'src/systems.rs')
-rw-r--r--src/systems.rs19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/systems.rs b/src/systems.rs
index 444e99f..fc94d9a 100644
--- a/src/systems.rs
+++ b/src/systems.rs
@@ -1,24 +1,21 @@
+use std::time::Duration;
+
use bevy::prelude::*;
use bevy_terminal_display::widgets::components::Widget;
-use super::widgets::{DialogBox, DialogBoxWidget, InteractTooltip, InteractTooltipWidget, OptionsBox, OptionsBoxWidget};
+use super::widgets::{DialogBox, DialogBoxWidget, OptionsBox, OptionsBoxWidget};
pub fn setup(mut commands: Commands) {
commands.spawn((
- InteractTooltip,
- Widget {
- enabled: false,
- depth: 0,
- widget: Box::new(InteractTooltipWidget),
- },
- ));
-
- commands.spawn((
DialogBox,
Widget {
enabled: false,
depth: 0,
- widget: Box::<DialogBoxWidget>::default(),
+ widget: Box::new(DialogBoxWidget::new(
+ None,
+ vec![],
+ Duration::from_millis(25),
+ )),
},
));
commands.spawn((