Fix loading bug where button text did not appear

This commit is contained in:
Stephen Seo 2019-10-05 21:20:42 +09:00
parent c3b50c8995
commit af2f3101af

View file

@ -877,6 +877,7 @@ impl State for GameState {
*text_image = Some(font.render(text, &style)?);
Ok(())
})?;
if text_image.is_some() {
mi.is_loaded = true;
if i + 1 < self.menu.items.len() {
self.menu.items[i + 1].is_loaded = false;
@ -884,6 +885,7 @@ impl State for GameState {
self.current_finished = true;
}
}
}
MenuItemType::AppearingText {
text,
text_image,