Class: Cliptic::Main::Player::Menus::Puzzle_Complete

Inherits:
Interface::Menu show all
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

#height, #selector

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, #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

small_num

Constructor Details

#initializePuzzle_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

#ctrlsObject



408
409
410
411
412
# File 'lib/cliptic/main.rb', line 408

def ctrls
  super.merge({
    ?q => ->{back; Screen.clear}
  })
end

#optsObject



399
400
401
402
403
404
# File 'lib/cliptic/main.rb', line 399

def opts
  {
    "Exit" => ->{back; Screen.clear},
    "Quit" => ->{exit}
  }
end

#titleObject



405
406
407
# File 'lib/cliptic/main.rb', line 405

def title
  "Puzzle Complete!"
end