Function game_library::menu_helper::make_text_bundle
source · pub fn make_text_bundle(
text: &str,
font: Handle<Font>,
font_size: f32,
color: Color,
align_self: AlignSelf
) -> TextBundleExpand description
Make a text bundle with the given text, font, font size, and color. This is used in making menu buttons.
Parameters
text: The text to displayfont: The font to use (as a handle)font_size: The font size to usecolor: The color to usealign_self: The alignment of the text
Returns
A [TextBundle] with the given text, font, font size, alignment and color.