class GSF::Dialog
- GSF::Dialog
- Reference
- Object
Defined in:
gsf/dialog.crConstructors
Instance Method Summary
- #choice_selected : Message::ChoiceData | Nil
- #choice_selected(*args, **options)
- #choice_selected(*args, **options, &)
- #data : Data
- #data=(data : Data)
- #draw(window : SF::RenderWindow)
- #hide?(*args, **options)
- #hide?(*args, **options, &)
- #hide_reset
-
#message_class
NOTE this can be overriden for a custom BottomCenteredMessage class
- #show(key : String)
- #show?(*args, **options)
- #show?(*args, **options, &)
- #update(keys : Keys, joysticks : Joysticks)
Constructor Detail
def self.new(data : Hash(String, NamedTuple(message: String, choices: Array(NamedTuple(key: String, label: String)))) = Data.new, typing = true, animate = true)
#