class GSF::BottomCenteredMessage

Defined in:

gsf/message.cr

Constant Summary

BottomPadding = Message::Padding * 3

Constructors

Instance Method Summary

Instance methods inherited from class GSF::Message

animate? : Bool animate?, animate_arrow_duration animate_arrow_duration, animate_duration animate_duration, animated? animated?, arrow_background_color arrow_background_color, arrow_radius arrow_radius, background_color background_color, choice_index : Int32 choice_index, choice_padding choice_padding, choice_selected : ChoiceData | Nil choice_selected, choice_text : SF::Text choice_text, choices : Array(ChoiceData) choices, draw(window : SF::RenderWindow) draw, draw_arrow(window) draw_arrow, draw_border(window) draw_border, draw_choice_border(window, px, py, text_width, selected) draw_choice_border, draw_choices(window) draw_choices, draw_text(window) draw_text, font font, font_size font_size, get_lines(all_text : Array(SF::Text)) : Array(Array(SF::Text)) get_lines, get_pages get_pages, height height, hide? : Bool hide?, hide_reset hide_reset, line_height : Float32 | Int32 line_height, line_spacing line_spacing, max_lines max_lines, next_choice_joysticks?(joysticks : Joysticks) next_choice_joysticks?, next_choice_keys next_choice_keys, next_choice_sound_buffer : SF::SoundBuffer | Nil next_choice_sound_buffer, next_choice_sound_pitch next_choice_sound_pitch, next_page_joystick_buttons next_page_joystick_buttons, next_page_keys next_page_keys, next_page_or_hide next_page_or_hide, next_page_sound_buffer : SF::SoundBuffer | Nil next_page_sound_buffer, next_page_sound_pitch next_page_sound_pitch, outline_color outline_color, outline_thickness outline_thickness, padding padding, page_index : Int32 page_index, pages : Array(Array(Array(SF::Text))) pages, play_sound(sound_buffer, pitch) play_sound, previous_choice_joysticks?(joysticks : Joysticks) previous_choice_joysticks?, previous_choice_keys previous_choice_keys, previous_choice_sound_buffer : SF::SoundBuffer | Nil previous_choice_sound_buffer, previous_choice_sound_pitch previous_choice_sound_pitch, reset_choice_selected reset_choice_selected, reset_message reset_message, show show, show? : Bool show?, skip_typing_joystick_buttons skip_typing_joystick_buttons, skip_typing_keys skip_typing_keys, skip_typing_sound_buffer : SF::SoundBuffer | Nil skip_typing_sound_buffer, skip_typing_sound_pitch skip_typing_sound_pitch, sound : SF::Sound sound, text : StyledText text, text_color text_color, type_duration type_duration, typed? typed?, typed_message typed_message, typing? : Bool typing?, update(keys : Keys, joysticks : Joysticks) update, update_data(message : String, choices : Array(NamedTuple(key: String, label: String)) = [] of ChoiceData) update_data, width width, x x, y y

Constructor methods inherited from class GSF::Message

new(cx : Float32 | Int32, y : Float32 | Int32 = -1, bot_y = -1, width : Float32 | Int32 = Screen.width, message = "", typing : Bool = false, animate : Bool = false, choices : Array(NamedTuple(key: String, label: String)) = [] of ChoiceData) new

Constructor Detail

def self.new(message = "", typing = true, animate = true, choices = [] of ChoiceData) #

[View source]

Instance Method Detail

def bottom_padding #

[View source]