You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Was trying to make a simple script editor UI, but didn't find any text field widget with multi-line text support (line breaks).
Describe the solution you'd like
Either a WTextArea with multi-line editing and stuff, or that functionality in WTextField. From what I can see, the latter would involve at least a int maxLines field with a setter and a getter, some sort of line start -> offset map to be used in most methods using scrollOffset or cursor position, and some small changes in render* functions and event handlers.
Describe alternatives you've considered
Trying to write this myself.
Additional context
By, essentially, copying-and-pasting WTextField.java into another file and editing out the forced height of 20px I got it to render a box, but it looks like some more sophisticated adjustments need to be made to actually allow using those as multiline text inputs.
The text was updated successfully, but these errors were encountered:
Text editing - especially multiline - is notoriously painful. For that reason, I don't have the energy to create a multiline text area for LibGui. If someone wants to contribute such a widget themself, I'll definitely merge that PR though.
Is your feature request related to a problem? Please describe.
Was trying to make a simple script editor UI, but didn't find any text field widget with multi-line text support (line breaks).
Describe the solution you'd like
Either a
WTextArea
with multi-line editing and stuff, or that functionality inWTextField
. From what I can see, the latter would involve at least aint maxLines
field with a setter and a getter, some sort of line start -> offset map to be used in most methods usingscrollOffset
orcursor
position, and some small changes inrender*
functions and event handlers.Describe alternatives you've considered
Trying to write this myself.
Additional context
By, essentially, copying-and-pasting WTextField.java into another file and editing out the forced height of 20px I got it to render a box, but it looks like some more sophisticated adjustments need to be made to actually allow using those as multiline text inputs.
The text was updated successfully, but these errors were encountered: