class Escapist::Message

Direct Known Subclasses

Defined in:

escapist/message.cr

Constant Summary

AnimateDuration = 300.milliseconds
BackgroundColor = SF::Color.new(17, 17, 17, 170)
FontSize = 28
LineSpacing = 2.25
OutlineColor = SF::Color.new(102, 102, 102)
OutlineThickness = 8
Padding = 64
TextColor = SF::Color::White
TypeDuration = 69.milliseconds

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def animate? : Bool #

[View source]
def calc_lines #

[View source]
def cx : Float32 | Int32 #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def draw_border(window) #

[View source]
def draw_text(window) #

[View source]
def height #

[View source]
def hide #

[View source]
def hide? : Bool #

[View source]
def max_width : Float32 | Int32 #

[View source]
def message : String #

[View source]
def message_typed : String #

[View source]
def show #

[View source]
def show? : Bool #

[View source]
def text : SF::Text #

[View source]
def typing? : Bool #

[View source]
def update(keys : Keys) #

[View source]
def width #

[View source]
def x #

[View source]
def y : Float32 | Int32 #

[View source]