class Buzzle::Message

Defined in:

buzzle/message.cr

Constant Summary

BORDER_SIZE = 3
MARGIN = 13
MIN_DELAY = 0.5
PADDING = 13

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(character : Nil | Buzzle::Character = nil, messages : Array(String) = [] of String) #

[View source]

Class Method Detail

def self.init #

[View source]
def self.message #

[View source]
def self.show(messages : Array(String), pause = true) #

[View source]
def self.show(messages : Array(String), pause = true, &block) #

[View source]
def self.show(character : Character, messages : Array(String), pause = true) #

[View source]
def self.show(character : Character, messages : Array(String), pause = true, &block) #

[View source]

Instance Method Detail

def delay? #

[View source]
def draw(character : Character) #

[View source]
def draw #

[View source]
def draw_background #

[View source]
def draw_border #

[View source]
def draw_message(x_start = MARGIN + BORDER_SIZE) #

[View source]
def hide #

[View source]
def show(character : Character, messages : Array(String), pause = true) #

[View source]
def show(messages : Array(String), pause = true) #

[View source]
def shown? : Bool #

[View source]
def update(frame_time) #

[View source]
def update_text_measured #

[View source]