Class: Cliptic::Main::Windows::Bottom_Bar

Inherits:
Interface::Bottom_Bar 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 Windows::Bar

#bg_col

Attributes inherited from Windows::Window

#centered_x, #centered_y, #col, #line, #x, #y

Instance Method Summary collapse

Methods inherited from Interface::Bottom_Bar

#initialize, #reset_pos

Methods inherited from Windows::Bar

#add_str, #initialize, #time_str

Methods inherited from Windows::Window

#add_str, #bold, #clear, #color, #initialize, #move, #refresh, #reset_attrs, #reset_pos, #setpos, #standend, #standout, #time_str, #wrap_str

Methods included from Chars

small_num

Constructor Details

This class inherits a constructor from Cliptic::Interface::Bottom_Bar

Instance Method Details

#drawObject



10
11
12
13
# File 'lib/cliptic/main.rb', line 10

def draw
  super
  add_str(x:-1, str:controls)
end

#mode(mode) ⇒ Object



14
15
16
17
18
# File 'lib/cliptic/main.rb', line 14

def mode(mode)
  setpos.color($colors[mode]) << mode_str(mode)
    .center(8)
  color.refresh
end

#unsaved(bool) ⇒ Object



19
20
21
# File 'lib/cliptic/main.rb', line 19

def unsaved(bool)
  add_str(x:9, str:(bool ? "| +" : "   "), bold:bool)
end