dialogic-godot / dialogic

💬 Create Dialogs, Visual Novels, RPGs, and manage Characters with Godot to create your Game!
https://dialogic.pro
MIT License
3.42k stars 206 forks source link

Select choices using keyboard #226

Closed LoipesMas closed 3 years ago

LoipesMas commented 3 years ago

Is your feature request related to a problem? Please describe. Currently player has to select choice using mouse.

Describe the solution you'd like Ability to highlight and then select choice options using keyboard (/other input device e.g. gamepad)

Describe alternatives you've considered Don't know of any alternatives

coppolaemilio commented 3 years ago

I believe this is already implemented by @timkrief. Is that correct?

timkrief commented 3 years ago

Yes! but the highlight will only happen if using standard godot buttons (toggle available in themes) as we discussed. We could add different texture choices for highlight or a little arrow to show which one is selected for instance.

LoipesMas commented 3 years ago

Oh right. I was using the release. It works on main branch. But on main branch the choice options seem to be placed in top-left corner, pretty much out of the screen, while on release version they were centered. Is this a (known) bug, or I need to do something differently?

coppolaemilio commented 3 years ago

@LoipesMas can you post screenshots and more details about your setup?

LoipesMas commented 3 years ago

Release: image image Main branch: image image

Both using unchanged theme and default scene.

coppolaemilio commented 3 years ago

I'll look into it! thanks for the screenshots

LoipesMas commented 3 years ago

Also the scene setup is just a Node2D that in _ready() spawns dialog and adds it as its child.

coppolaemilio commented 3 years ago

okay, I recently did some changes with the stretch mode and that seemed to be the reason. Try with the latest version of main and it should be centering properly 👍🏻

LoipesMas commented 3 years ago

Yep, it works now. Thanks.

coppolaemilio commented 3 years ago

Glad it works now! Closing :)