class

Escapist::Message

Inherits Reference < Object

Constants

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

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

Instance methods

animate?
Source
calc_lines
Source
draw(window : SF::RenderWindow)
Source
draw_border(window)
Source
draw_text(window)
Source
height
Source
hide
Source
hide?
Source
max_width
Source
message
Source
message_typed
Source
show
Source
show?
Source
text
Source
typing?
Source
update(keys : Keys)
Source
width
Source