Class: Cliptic::Menus::Main
- Inherits:
-
Interface::Menu
- Object
- Curses::Window
- Windows::Window
- Interface::Menu_Box
- Interface::Menu
- Cliptic::Menus::Main
- Defined in:
- lib/cliptic/menus.rb
Constant Summary
Constants included from Chars
Chars::Block, Chars::HL, Chars::LL, Chars::LS, Chars::LU, Chars::MS, Chars::Nums, Chars::RL, Chars::RS, Chars::RU, Chars::TD, Chars::TL, Chars::TR, Chars::TU, Chars::Tick, Chars::VL, Chars::XX
Instance Attribute Summary
Attributes inherited from Interface::Menu
Attributes inherited from Interface::Menu_Box
#bot_b, #draw_bars, #logo, #top_b
Attributes inherited from Windows::Window
#centered_x, #centered_y, #col, #line, #x, #y
Instance Method Summary collapse
Methods inherited from Interface::Menu
#back, #choose_opt, #ctrls, #enter, #hide, #initialize, #redraw, #reset_pos, #show
Methods inherited from Interface::Menu_Box
#add_title, #draw, #initialize, #line, #reset_pos
Methods inherited from Windows::Window
#add_str, #bold, #clear, #color, #draw, #initialize, #move, #refresh, #reset_attrs, #reset_pos, #setpos, #standend, #standout, #time_str, #wrap_str
Methods included from Chars
Constructor Details
This class inherits a constructor from Cliptic::Interface::Menu
Instance Method Details
#opts ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/cliptic/menus.rb', line 4 def opts { "Play Today" => ->{Cliptic::Main::Player::Game.new.play}, "Select Date"=> ->{Select_Date.new.choose_opt}, "This Week" => ->{This_Week.new.choose_opt}, "Recent Puzzles" => ->{Recent_Puzzles.new.choose_opt}, "High Scores"=> ->{High_Scores.new.choose_opt}, "Quit" => ->{exit} } end |
#title ⇒ Object
14 15 16 |
# File 'lib/cliptic/menus.rb', line 14 def title "Main Menu" end |