Yes / No dialogs and keyboard control

Moderator: Moderator

Post Reply
Message
Author
Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Yes / No dialogs and keyboard control

#1 Post by Castler »

It would be very nice if Dialog.yesnoPopup and Dialog.yesnoLongPopup optionally or always responded to "Y", "y", "N", and "n".
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

Jeoshua
Cornac
Posts: 37
Joined: Sat Sep 14, 2013 2:08 pm

Re: Yes / No dialogs and keyboard control

#2 Post by Jeoshua »

I would agree with this, but actually I think that's more of a module-based thing. The engine definitely supports this kind of thing, already. It's just that the modules you are playing quite frankly weren't coded with that in mind.

Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Re: Yes / No dialogs and keyboard control

#3 Post by Castler »

It is up to the engine to some extent; modules can do whatever they like, but simple Yes / No messages (both within each game module and within the boot module) are handled by the engine's base Dialog:yesnoPopup and related functions, so if Dialog:yesnoPopup and related functions responded to keystrokes, it would be helpful.

Here's a patch that accomplishes this, if DG is interested.
Attachments
DialogYesNoKeyboard.txt
(2.43 KiB) Downloaded 335 times
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

Post Reply