also how to drag and so select letters and words?
even on any label (button, etc…)
I actually mean if there is something already on that way implemented?
or I just have to implement the probable: guess the letter size (will work only with monospaced fonts), and calc based on the relative click position. If I could implement it in a pullable way to Lemur, I guess it would be a simple external/pluggable listener to any Label or TextField.
to initially guess the sure final font width, I create a new Label() with the current style, collect it’s BitmapText.getLineWidth() and divide by the number of chars on the text (monospaced only). I could just collect and label and do that too.
Yes, I am trying to provide editing capabilities, like word navigation (ctrl+left/right) etc
EDIT: also, it seems the mouse position is directly from lwjgl being the x,y on the app window. So I guess I would have to raycast and see where it hits in case of using a 3D rotated view of the user interface (I never used that to, I am just guessing we can attach it to other node than GuiNode).
EDIT: it is working (the carat positioning) but I stil feel I did a workaround (not proper implementation) despite I feel it will not break later as I used a new Label() using the TextField’s text and style, but I believe it could have been a more “to the point” code?
EDIT: to it work properly, I would need TextEntryComponent.textOffset to be exposed readonly thru get().