From 654ca959c3701edc8a0716626e282a2ce81d5385 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Sun, 18 Aug 2024 10:15:31 -0700 Subject: [PATCH] Remove `_entity` suffix --- src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3859039..27e43d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, + pub container: Option, /// Set a custom entity for [`PrimaryTooltip::text`], or spawn a default entity if `None`. - pub text_entity: Option, + pub text: Option, } impl Plugin for TooltipPlugin { fn build(&self, app: &mut bevy_app::App) { app.register_type::(); - 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::();