Skip to content

Commit

Permalink
Remove _entity suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 18, 2024
1 parent cce77f1 commit 654ca95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ use tiny_bail::prelude::*;
#[derive(Default)]
pub struct TooltipPlugin {
/// Set a custom entity for [`PrimaryTooltip::container`], or spawn a default entity if `None`.
pub container_entity: Option<Entity>,
pub container: Option<Entity>,
/// Set a custom entity for [`PrimaryTooltip::text`], or spawn a default entity if `None`.
pub text_entity: Option<Entity>,
pub text: Option<Entity>,
}

impl Plugin for TooltipPlugin {
fn build(&self, app: &mut bevy_app::App) {
app.register_type::<PrimaryTooltip>();
let primary_tooltip =
PrimaryTooltip::new(app.world_mut(), self.container_entity, self.text_entity);
let primary_tooltip = PrimaryTooltip::new(app.world_mut(), self.container, self.text);
app.insert_resource(primary_tooltip);

app.register_type::<Tooltip>();
Expand Down

0 comments on commit 654ca95

Please sign in to comment.