Class: Cliptic::Main::Player::Menus::Reset_Progress
- Inherits:
-
Interface::Yes_No_Menu
- Object
- Curses::Window
- Windows::Window
- Interface::Menu_Box
- Interface::Menu
- Interface::Yes_No_Menu
- Cliptic::Main::Player::Menus::Reset_Progress
- 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
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
-
#initialize(game:) ⇒ Reset_Progress
constructor
A new instance of Reset_Progress.
- #title ⇒ Object
Methods inherited from Interface::Yes_No_Menu
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
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
#title ⇒ Object
420 421 422 |
# File 'lib/cliptic/main.rb', line 420 def title "Reset puzzle progress?" end |