class GSF::Dialog

Defined in:

gsf/dialog.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Hash(String, NamedTuple(message: String, choices: Array(NamedTuple(key: String, label: String)))) = Data.new, typing = true, animate = true) #

[View source]

Instance Method Detail

def choice_selected : Message::ChoiceData | Nil #

[View source]
def choice_selected(*args, **options) #

[View source]
def choice_selected(*args, **options, &) #

[View source]
def data : Data #

[View source]
def data=(data : Data) #

[View source]
def draw(window : SF::RenderWindow) #

[View source]
def hide?(*args, **options) #

[View source]
def hide?(*args, **options, &) #

[View source]
def hide_reset #

[View source]
def message_class #

NOTE this can be overriden for a custom BottomCenteredMessage class


[View source]
def show(key : String) #

[View source]
def show?(*args, **options) #

[View source]
def show?(*args, **options, &) #

[View source]
def update(keys : Keys, joysticks : Joysticks) #

[View source]