Class: Cliptic::Main::Player::Menus::Reset_Progress

Inherits:
Interface::Yes_No_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::Yes_No_Menu

#no, #post_proc, #yes

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::Yes_No_Menu

#opts, #post

Methods inherited from Interface::Menu

#back, #choose_opt, #ctrls, #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

#initialize(game:) ⇒ Reset_Progress

Returns a new instance of Reset_Progress.



415
416
417
418
419
# File 'lib/cliptic/main.rb', line 415

def initialize(game:)
  super(yes:->{game.reset},
        post_proc:->{game.unpause})
  @draw_bars = false
end

Instance Method Details

#titleObject



420
421
422
# File 'lib/cliptic/main.rb', line 420

def title
  "Reset puzzle progress?"
end