Class: Cliptic::Main::Player::Menus::Puzzle_Complete
- Inherits:
-
Interface::Menu
- Object
- Curses::Window
- Windows::Window
- Interface::Menu_Box
- Interface::Menu
- Cliptic::Main::Player::Menus::Puzzle_Complete
- Defined in:
- lib/cliptic/main.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
- #ctrls ⇒ Object
-
#initialize ⇒ Puzzle_Complete
constructor
A new instance of Puzzle_Complete.
- #opts ⇒ Object
- #title ⇒ Object
Methods inherited from Interface::Menu
#back, #choose_opt, #enter, #hide, #redraw, #reset_pos, #show
Methods inherited from Interface::Menu_Box
#add_title, #draw, #line, #reset_pos
Methods inherited from Windows::Window
#add_str, #bold, #clear, #color, #draw, #move, #refresh, #reset_attrs, #reset_pos, #setpos, #standend, #standout, #time_str, #wrap_str
Methods included from Chars
Constructor Details
#initialize ⇒ Puzzle_Complete
Returns a new instance of Puzzle_Complete.
395 396 397 398 |
# File 'lib/cliptic/main.rb', line 395 def initialize super @draw_bars = false end |
Instance Method Details
#ctrls ⇒ Object
408 409 410 411 412 |
# File 'lib/cliptic/main.rb', line 408 def ctrls super.merge({ ?q => ->{back; Screen.clear} }) end |
#opts ⇒ Object
399 400 401 402 403 404 |
# File 'lib/cliptic/main.rb', line 399 def opts { "Exit" => ->{back; Screen.clear}, "Quit" => ->{exit} } end |
#title ⇒ Object
405 406 407 |
# File 'lib/cliptic/main.rb', line 405 def title "Puzzle Complete!" end |