Rename font_path member to font

This commit is contained in:
hodasemi 2023-01-18 12:27:08 +01:00
parent e8401e0d6e
commit ef9d140894

View file

@ -36,7 +36,7 @@ pub struct GuiHandlerCreateInfo<'a> {
// path to the alphabet image // path to the alphabet image
#[serde(borrow)] #[serde(borrow)]
pub font_path: Font<'a>, pub font: Font<'a>,
// sound info // sound info
#[cfg(feature = "audio")] #[cfg(feature = "audio")]
@ -56,7 +56,7 @@ impl<'a> GuiHandlerCreateInfo<'a> {
menu_button_selected: AssetPath::default(), menu_button_selected: AssetPath::default(),
// path to the alphabet image // path to the alphabet image
font_path: Font::Path(AssetPath::default()), font: Font::Path(AssetPath::default()),
// sound info // sound info
#[cfg(feature = "audio")] #[cfg(feature = "audio")]
@ -195,7 +195,7 @@ impl GuiHandler {
device, device,
queue, queue,
text_objs._descriptor_layout.clone(), text_objs._descriptor_layout.clone(),
gui_handler_create_info.font_path.clone(), gui_handler_create_info.font.clone(),
)?; )?;
let icon_descriptor_layout = DescriptorSetLayout::builder() let icon_descriptor_layout = DescriptorSetLayout::builder()