fn key_down(&mut self, screen: &mut Screen) {
        if self.selected + 1 < self.menu.options.len() {
            self.selected += 1;
            if self.selected >= self.last_row {
                self.first_row += 1;
                self.update_last_row(screen.size());
            }
            self.render(screen);
        } else if self.is_not_cancelling() {
            self.cancel = Some(true);
            self.render(screen);
        }
    }
/// Should be triggered when DOWN key is pressed.
Should be triggered when DOWN key is pressed.
Should be triggered when DOWN key is pressed .
fn key_down(&mut self, screen: &mut Screen) {
        if self.selected + 1 < self.menu.options.len() {
            self.selected += 1;
            if self.selected >= self.last_row {
                self.first_row += 1;
                self.update_last_row(screen.size());
            }
            self.render(screen);
        } else if self.is_not_cancelling() {
            self.cancel = Some(true);
            self.render(screen);
        }
    }
fn key_down ( & mut self , screen : & mut Screen ) { if self . selected + 1 < self . menu . options . len ( ) { self . selected += 1 ; if self . selected >= self . last_row { self . first_row += 1 ; self . update_last_row ( screen . size ( ) ) ; } self . render ( screen ) ; } else if self . is_not_cancelling ( ) { self . cancel = Some ( true ) ; self . render ( screen ) ; } }
Should be triggered when DOWN key is pressed.
Should be triggered when DOWN key is pressed .
&mut self
screen
&mut Screen
&mut self
screen
&mut Screen