This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[cfg(test)] | |
mod tests { | |
use super::{BuildChildren, BuildWorldChildren}; | |
use crate::prelude::{Children, Parent}; | |
use smallvec::{smallvec, SmallVec}; | |
use bevy_ecs::{ | |
component::Component, | |
entity::Entity, | |
system::{CommandQueue, Commands}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use bevy_ecs::{prelude::*, system::EntityCommands}; | |
use bevy_math::prelude::*; | |
use bevy_text::*; | |
use bevy_transform::hierarchy::BuildChildren; | |
use bevy_ui::{entity::*, *}; | |
use super::TooltipTextUiNode; | |
pub struct TooltipBuilder<'a, 'w, 's> { | |
commands: &'a mut Commands<'w, 's>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use bevy::prelude::*; | |
use bevy_ui_widgets::tooltip::*; | |
fn main() { | |
App::new() | |
.add_plugins(DefaultPlugins) | |
.add_plugin(TooltipPlugin) | |
.add_startup_system(setup) | |
.add_system(setup_text) | |
.run(); |