Class: Cliptic::Main::Windows::Cluebox
- Inherits:
-
Windows::Window
- Object
- Curses::Window
- Windows::Window
- Cliptic::Main::Windows::Cluebox
- 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 Windows::Window
#centered_x, #centered_y, #col, #line, #x, #y
Instance Method Summary collapse
-
#initialize(grid:) ⇒ Cluebox
constructor
A new instance of Cluebox.
- #show(clue:) ⇒ Object
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(grid:) ⇒ Cluebox
Returns a new instance of Cluebox.
109 110 111 |
# File 'lib/cliptic/main.rb', line 109 def initialize(grid:) super(y:Curses.lines-grid.y-2, line:grid.y+1, col:0) end |
Instance Method Details
#show(clue:) ⇒ Object
112 113 114 115 116 117 |
# File 'lib/cliptic/main.rb', line 112 def show(clue:) draw(cp:$colors[:cluebox]) (clue) set_hint(clue) noutrefresh end |