@@ -8,7 +8,7 @@ use bevy::{
8
8
text:: BreakLineOn ,
9
9
} ;
10
10
11
- /// A `Plugin` providing the systems and assets required to make a [`TextInputBundle`] work.
11
+ /// A Bevy `Plugin` providing the systems and assets required to make a [`TextInputBundle`] work.
12
12
pub struct TextInputPlugin ;
13
13
14
14
impl Plugin for TextInputPlugin {
@@ -46,7 +46,7 @@ const CURSOR_HANDLE: Handle<Font> = Handle::weak_from_u128(10482756907980398621)
46
46
47
47
/// A bundle providing the additional components required for a text input.
48
48
///
49
- /// Add this to a [ `NodeBundle`] .
49
+ /// Add this to a Bevy `NodeBundle`.
50
50
///
51
51
/// Examples:
52
52
/// ```rust
@@ -60,7 +60,7 @@ const CURSOR_HANDLE: Handle<Font> = Handle::weak_from_u128(10482756907980398621)
60
60
pub struct TextInputBundle {
61
61
/// A component containing the text input's settings.
62
62
pub settings : TextInputSettings ,
63
- /// A component containing the [ `TextStyle`] that will be used when creating the text input's inner [ `TextBundle`] .
63
+ /// A component containing the Bevy `TextStyle` that will be used when creating the text input's inner Bevy `TextBundle`.
64
64
pub text_style : TextInputTextStyle ,
65
65
/// A component containing a value indicating whether the text input is active or not.
66
66
pub inactive : TextInputInactive ,
@@ -87,7 +87,7 @@ impl TextInputBundle {
87
87
self
88
88
}
89
89
90
- /// Returns this [`TextInputBundle`] with a new [`TextInputTextStyle`] containing the provided `TextStyle`.
90
+ /// Returns this [`TextInputBundle`] with a new [`TextInputTextStyle`] containing the provided Bevy `TextStyle`.
91
91
pub fn with_text_style ( mut self , text_style : TextStyle ) -> Self {
92
92
self . text_style = TextInputTextStyle ( text_style) ;
93
93
self
@@ -106,7 +106,7 @@ impl TextInputBundle {
106
106
}
107
107
}
108
108
109
- /// The [ `TextStyle`] that will be used when creating the text input's inner [ `TextBundle`] .
109
+ /// The Bevy `TextStyle` that will be used when creating the text input's inner Bevy `TextBundle`.
110
110
#[ derive( Component , Default , Reflect ) ]
111
111
pub struct TextInputTextStyle ( pub TextStyle ) ;
112
112
@@ -158,7 +158,7 @@ pub struct TextInputSubmitEvent {
158
158
pub value : String ,
159
159
}
160
160
161
- /// A convenience parameter for dealing with a [`TextInput`] 's inner [ `Text`] entity.
161
+ /// A convenience parameter for dealing with a text input 's inner Bevy `Text` entity.
162
162
#[ derive( SystemParam ) ]
163
163
struct InnerText < ' w , ' s > {
164
164
text_query : Query < ' w , ' s , & ' static mut Text , With < TextInputInner > > ,
@@ -372,7 +372,7 @@ fn create(
372
372
}
373
373
}
374
374
375
- // Shows or hides the cursor based on the text input's `inactive` property.
375
+ // Shows or hides the cursor based on the text input's [`TextInputInactive`] property.
376
376
fn show_hide_cursor (
377
377
mut input_query : Query <
378
378
(
0 commit comments