class Dungeon::Message

Direct Known Subclasses

Defined in:

dungeon/message.cr

Constant Summary

BACKGROUND_COLOR = LibRay::Color.new(r: 51, g: 51, b: 51, a: 255)
BORDER = 5
BORDER_COLOR = LibRay::Color.new(r: 85, g: 85, b: 85, a: 255)
ICON_BLINK_INTERVAL = (ICON_BLINK_TIMER / ICON_BLINKS) / 2
ICON_BLINK_TIMER = 1.0
ICON_BLINKS = 1.125
ICON_SIZE = 16
MARGIN = 75
MAX_TEXT_WIDTH = ((Game::SCREEN_WIDTH - (MARGIN * 2)) - (BORDER * 2)) - (PADDING * 2)
PADDING = 30
SPACING = 3
TEXT_SIZE = 20

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : Array(String)) #

[View source]
def self.new(text : String) #

[View source]

Instance Method Detail

def close #

[View source]
def closed? #

[View source]
def dismiss #

[View source]
def done? #

[View source]
def draw #

[View source]
def draw_done_icon #

[View source]
def just_closed? #

[View source]
def next_line #

[View source]
def open #

[View source]
def open? : Bool #

[View source]
def text #

[View source]
def update #

[View source]