Rename font_path member to font
This commit is contained in:
parent
e8401e0d6e
commit
ef9d140894
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue