Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
escapist
master
Escapist
BaseBlock
Block
Box
CenteredMessage
Cursor
DoorConfig
Floor
FloorData
FloorSwitch
Font
Game
HUD
Joysticks
Keys
LaserBlock
LaserInfo
LaserSwitch
LastCursor
Message
MiniMap
Mouse
MovableBlock
Player
Room
TileGrid
TileRow
RoomData
RoomDoors
DoorKey
RoomEditor
ScaleHelpers
Scene
Editor
Main
NewItem
Start
Screen
Stage
Switch
TileObj
Timer
View
Generated using Crystal 1.14.0
2024-11-26 09:00:29 UTC
class
Escapist::
CenteredMessage
Escapist::CenteredMessage
Escapist::Message
Reference
Object
Defined in:
escapist/message.cr
Constructors
.new
(screen_width, screen_height, message =
""
, typing =
true
, animate =
true
)
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
]