Method: Ektoplayer::Views::Info#draw_download

Defined in:
lib/ektoplayer/views/info.rb

#draw_download(file, percent, error) ⇒ Object



59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/ektoplayer/views/info.rb', line 59

def draw_download(file, percent, error)
   @win.attrset(Theme[:'info.download.file'])
   @win.mvaddstr(@win.cury + 1, START_TAG, file)
   @win.addch(32) # ' '

   @win.attrset(Theme[:'info.download.percent'])
   @win.addstr(percent.to_s)

   if error
      @win.addch(32) # ' '
      @win.attrset(Theme[:'info.download.error'])
      @win.addstr(error.to_s)
   end
end