4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/views/options_view.rb', line 4
def show
TTY::Prompt.new.keypress("\nPress any key to continue".colorize(:light_magenta))
quote_idx = QuoteGenerator.quote_index
puts "\n\n\n#{QuoteGenerator.choose_quote(quote_idx)}\n".colorize(:white).italic
sound_path = QuoteGenerator.quote_sound(quote_idx) Sound.new(sound_path).play unless sound_path.nil? prompt = TTY::Prompt.new.select("\n\nWhat would you like to do?".colorize(:light_yellow), help: '') do ||
.choice "Start New Game".colorize(:light_green), true
.choice "Exit to Main Menu".colorize(:light_red), false
end
end
|