Add SAO UI exit button

This commit is contained in:
mars 2022-07-25 22:47:05 -06:00
parent 495fb40c9f
commit a6b1e50dc5
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ impl MainMenu {
impl Default for MainMenu {
fn default() -> Self {
let icon_font = Font::new("Iosevka Nerd Font");
let icons = ["", "", "", "", ""];
let icons = ["", "", "", "", "", ""];
let mut buttons = Vec::new();
for icon in icons {
@ -56,7 +56,7 @@ impl Default for MainMenu {
let inventory = Reveal::new(inventory, -0.02, 0.1);
Self {
menu: SlotMenu::new(buttons, 0.2),
menu: SlotMenu::new(buttons, 0.18),
inventory,
}
}
@ -66,7 +66,7 @@ impl Widget for MainMenu {
fn update(&mut self, dt: f32) {
match self.menu.get_was_clicked() {
None => {}
Some(4) => self.menu.close(),
Some(5) => self.menu.close(),
Some(button) => self.menu.select(button),
};