Hello everyone, I'm having a problem for some time now, and havent find the solution yet.
In my game, the player can write notes on his hand (it's a sprite of a hand). I setup something with textinput, making the textinput box invisible with CSS, and the letters appearing on the hand correctly. I'm not using a spriteFont for now (as I'm not sure it would suffice to solve all my issues). However, this method poses a few problems that I'd like to solve :
1 - No cursor visible : It would be great to have a cursor visible, for the player to know where/when to type. I understand that's doable with sprite font (there's a great tutorial for a blinking cursor)
2 - New line : Pressing enter should make a new line ; "append" doesnt suffice, as it only creates line break at the end of the whole text block, and not wherever the cursor is.
3 - No Highlighting Using selecting functions like "select all" (ctrl+a) makes the invisible text (in the invisible input box) be visible through selection. The letters typed on the hand appear selected (highlighted) in the inputbox. Keep in mind I can't set it out of the layout, as the textinput function can't work like that.
Do you think it'd be possible to create something with those 3 criterias ?
Thanks a lot for any pointers/advice !
Here's an example of problem number 3 (check the highlighted text in the top left corner) :