Fix loading bug where button text did not appear
This commit is contained in:
parent
c3b50c8995
commit
af2f3101af
1 changed files with 7 additions and 5 deletions
|
@ -877,6 +877,7 @@ impl State for GameState {
|
||||||
*text_image = Some(font.render(text, &style)?);
|
*text_image = Some(font.render(text, &style)?);
|
||||||
Ok(())
|
Ok(())
|
||||||
})?;
|
})?;
|
||||||
|
if text_image.is_some() {
|
||||||
mi.is_loaded = true;
|
mi.is_loaded = true;
|
||||||
if i + 1 < self.menu.items.len() {
|
if i + 1 < self.menu.items.len() {
|
||||||
self.menu.items[i + 1].is_loaded = false;
|
self.menu.items[i + 1].is_loaded = false;
|
||||||
|
@ -884,6 +885,7 @@ impl State for GameState {
|
||||||
self.current_finished = true;
|
self.current_finished = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
MenuItemType::AppearingText {
|
MenuItemType::AppearingText {
|
||||||
text,
|
text,
|
||||||
text_image,
|
text_image,
|
||||||
|
|
Loading…
Reference in a new issue