Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WTextFields don't have the full functionality of a vanilla text field #139

Open
Baphomet42 opened this issue Oct 29, 2021 · 1 comment · Fixed by #140
Open

WTextFields don't have the full functionality of a vanilla text field #139

Baphomet42 opened this issue Oct 29, 2021 · 1 comment · Fixed by #140
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Baphomet42
Copy link

Unlike the vanilla anvil or command block text fields, WTextFields don't scroll horizontally when it is full of characters. It still allows characters to be typed, but they cannot be seen. Also the delete key has the same functionality as the backspace when used in a WTextField.

Unless there is an option I am unaware of, there is no way to make WTextFields scroll horizontally. It should be noted that the WTextFields I've tested on are inside of a WScrollPanel, so maybe that has something to do with it? The delete key works as normal when used inside a vanilla anvil or command block, it only has the backspace functionality in a WTextField, instead of deleting the character after the cursor.

@Baphomet42 Baphomet42 added the enhancement New feature or request label Oct 29, 2021
@Juuxel Juuxel added the help wanted Extra attention is needed label Oct 29, 2021
@Juuxel
Copy link
Member

Juuxel commented Oct 29, 2021

All of this is known. That particular widget is a bunch of horror code that I don't have time to unravel (and not written by me in the first place).

If you want full functionality, you can try wrapping vanilla's text field widget in a LibGui WWidget. It's a bit tedious, but should work afaik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants