class Escapist::CenteredMessage

Defined in:

escapist/message.cr

Constructors

Instance methods inherited from class Escapist::Message

animate? : Bool animate?, calc_lines calc_lines, cx : Float32 | Int32 cx, draw(window : SF::RenderWindow) draw, draw_border(window) draw_border, draw_text(window) draw_text, height height, hide hide, hide? : Bool hide?, max_width : Float32 | Int32 max_width, message : String message, message_typed : String message_typed, show show, show? : Bool show?, text : SF::Text text, typing? : Bool typing?, update(keys : Keys) update, width width, x x, y : Float32 | Int32 y

Constructor methods inherited from class Escapist::Message

new(cx : Float32 | Int32, y : Float32 | Int32, max_width : Float32 | Int32, message : String = "", typing : Bool = false, animate : Bool = false) new

Constructor Detail

def self.new(screen_width, screen_height, message = "", typing = true, animate = true) #

[View source]