class Escapist::Message
- Escapist::Message
- Reference
- Object
Direct Known Subclasses
Defined in:
escapist/message.crConstant 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
- #animate? : Bool
- #calc_lines
- #cx : Float32 | Int32
- #draw(window : SF::RenderWindow)
- #draw_border(window)
- #draw_text(window)
- #height
- #hide
- #hide? : Bool
- #max_width : Float32 | Int32
- #message : String
- #message_typed : String
- #show
- #show? : Bool
- #text : SF::Text
- #typing? : Bool
- #update(keys : Keys)
- #width
- #x
- #y : Float32 | Int32
Constructor Detail
def self.new(cx : Float32 | Int32, y : Float32 | Int32, max_width : Float32 | Int32, message : String = "", typing : Bool = false, animate : Bool = false)
#