ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.77k stars 380 forks source link

Buy/split unit stack dialogue not letting you input specific number for touch devices #7941

Open Novicek opened 1 year ago

Novicek commented 1 year ago

Preliminary checks

Describe the problem requiring a solution

Sometimes when managing large numbers of troops, I want to split them into specific size. Fheroes2 only lets you do that by splitting in half or using the arrow buttons to "scroll" to the desired number. The original game offered an input for typing in the desired number when clicking on it.

Describe the possible solution

Implement an input dialogue.

Additional info

Vanilla (DosBox)

Untitled
oleg-derevenetz commented 1 year ago

Fheroes2 only lets you do that by splitting in half or using the arrow buttons to "scroll" to the desired number.

In fact, this is not the case. You can enter a specific number just by entering the number using the keyboard and/or using the backspace key to remove the last digit. You just don't need to click on that field.

Novicek commented 1 year ago

Fheroes2 only lets you do that by splitting in half or using the arrow buttons to "scroll" to the desired number.

In fact, this is not the case. You can enter a specific number just by entering the number using the keyboard and/or using the backspace key to remove the last digit. You just don't need to click on that field.

Oh, you're right. I never would've guessed this. That said, I don't know how I can input a number on a touch device. No keyboard will come up.

oleg-derevenetz commented 1 year ago

That said, I don't know how I can input a number on a touch device. No keyboard will come up.

Yes, for now there is no virtual numeric keypad for such cases.

ihhub commented 1 year ago

Related to #1631.