class GSF::Message
- GSF::Message
- Reference
- Object
Direct Known Subclasses
Defined in:
gsf/message.crConstant Summary
-
AnimateArrowDuration =
500.milliseconds
-
AnimateDuration =
300.milliseconds
-
ArrowBackgroundColor =
SF::Color.new(17, 17, 17)
-
ArrowRadius =
16
-
BackgroundColor =
SF::Color.new(17, 17, 17, 170)
-
FontSize =
16
-
LineSpacing =
16
-
MaxLines =
4
-
OutlineColor =
SF::Color.new(102, 102, 102)
-
OutlineThickness =
4
-
Padding =
24
-
TextColor =
SF::Color::White
-
TypeDuration =
69.milliseconds
Constructors
Instance Method Summary
- #animate? : Bool
- #animate_arrow_duration
- #animate_duration
- #animated?
- #arrow_background_color
- #arrow_radius
- #background_color
- #choice_index : Int32
- #choice_padding
- #choice_selected : ChoiceData | Nil
- #choice_text : SF::Text
- #choices : Array(ChoiceData)
- #draw(window : SF::RenderWindow)
- #draw_arrow(window)
- #draw_border(window)
- #draw_choice_border(window, px, py, text_width, selected)
- #draw_choices(window)
- #draw_text(window)
-
#font
NOTE this has to be overridden by a custom font
- #font_size
- #get_lines(all_text : Array(SF::Text)) : Array(Array(SF::Text))
- #get_pages
- #height
- #hide? : Bool
- #hide_reset
- #line_height : Float32 | Int32
- #line_spacing
- #max_lines
- #next_choice_joysticks?(joysticks : Joysticks)
- #next_choice_keys
-
#next_choice_sound_buffer : SF::SoundBuffer | Nil
NOTE this has to be overridden by a custom SF::SoundBuffer like
@@next_choice_sound_buffer ||= SF::SoundBuffer.from_file("./assets/next_choice.wav")
- #next_choice_sound_pitch
- #next_page_joystick_buttons
- #next_page_keys
- #next_page_or_hide
-
#next_page_sound_buffer : SF::SoundBuffer | Nil
NOTE this has to be overridden by a custom SF::SoundBuffer like
@@next_page_sound_buffer ||= SF::SoundBuffer.from_file("./assets/next_page.wav")
- #next_page_sound_pitch
- #outline_color
- #outline_thickness
- #padding
- #page_index : Int32
- #pages : Array(Array(Array(SF::Text)))
- #play_sound(sound_buffer, pitch)
- #previous_choice_joysticks?(joysticks : Joysticks)
- #previous_choice_keys
-
#previous_choice_sound_buffer : SF::SoundBuffer | Nil
NOTE this has to be overridden by a custom SF::SoundBuffer like
@@previous_choice_sound_buffer ||= SF::SoundBuffer.from_file("./assets/previous_choice.wav")
- #previous_choice_sound_pitch
- #reset_choice_selected
- #reset_message
- #show
- #show? : Bool
- #skip_typing_joystick_buttons
- #skip_typing_keys
-
#skip_typing_sound_buffer : SF::SoundBuffer | Nil
NOTE this has to be overridden by a custom SF::SoundBuffer like
@@skip_typing_sound_buffer ||= SF::SoundBuffer.from_file("./assets/skip_page.wav")
- #skip_typing_sound_pitch
- #sound : SF::Sound
- #text : StyledText
- #text_color
- #type_duration
- #typed?
- #typed_message
- #typing? : Bool
- #update(keys : Keys, joysticks : Joysticks)
- #update_data(message : String, choices : Array(NamedTuple(key: String, label: String)) = [] of ChoiceData)
- #width
- #x
- #y
Constructor Detail
Instance Method Detail
NOTE this has to be overridden by a custom SF::SoundBuffer
like @@next_choice_sound_buffer ||= SF::SoundBuffer.from_file("./assets/next_choice.wav")
NOTE this has to be overridden by a custom SF::SoundBuffer
like @@next_page_sound_buffer ||= SF::SoundBuffer.from_file("./assets/next_page.wav")
NOTE this has to be overridden by a custom SF::SoundBuffer
like @@previous_choice_sound_buffer ||= SF::SoundBuffer.from_file("./assets/previous_choice.wav")
NOTE this has to be overridden by a custom SF::SoundBuffer
like @@skip_typing_sound_buffer ||= SF::SoundBuffer.from_file("./assets/skip_page.wav")