34 lines
802 B
Ruby
34 lines
802 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Widgets
|
|
class Menu < Container
|
|
class Logo < Base
|
|
LOGO = [
|
|
' _____ ___ _ _ ___ _ _ ',
|
|
' |_ _/ _ \ \/ / _ \| \ | | ',
|
|
' | || | | \ / | | | \| | ',
|
|
' | || |_| / \ |_| | |\ | ',
|
|
' |_| \___/_/\_\___/|_| \_| ',
|
|
' ',
|
|
' Version 0.0.0 ',
|
|
' ',
|
|
].freeze
|
|
|
|
WIDTH = LOGO.first.length
|
|
HEIGHT = LOGO.length
|
|
|
|
def initialize(x, y, _width, _height)
|
|
super x, y, WIDTH, HEIGHT
|
|
end
|
|
|
|
def draw
|
|
Style.default.logo do
|
|
LOGO.each_with_index do |s, index|
|
|
setpos 0, index
|
|
Curses.addstr s
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|