Flaxis / slick-ui

Lightweight Phaser UI plugin
http://slick-ui.com/
190 stars 25 forks source link

Text Inputs? #2

Closed devmattrick closed 8 years ago

devmattrick commented 8 years ago

I've just recently found this project and I can already see it being super useful. A major thing that is currently missing from this is text input. The only way I know to accept text input on Phaser is to make a "hack" using the HTML element, but something that uses the canvas natively would be extremely helpful.

Flaxis commented 8 years ago

Good point. I've been thinking about introducing text inputs before. For mobile users, we'd probably have to use an in-canvas virtual keyboard, though, because the native keyboard can't be triggered without the use of HTML. And this of course gives us limitations in the game's minimum width :) But maybe that isn't that big of a problem.

I'll look into it anyway. If you have any suggestions let me know or try setting something up.

devmattrick commented 8 years ago

Yeah, unfortunately the only way I know of to open the soft keyboard involves invisible HTML inputs, which would probably not be the best idea.

Even if it's a PC-only feature, I can still see if being quite useful. I'm not too sure how difficult it would be to create your own soft keyboard for mobile devices. Thanks for the quick reply! :)

giorgiobeggiora commented 8 years ago

are you implementing alla the

elements? I mean