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