I’m really not sure what you’re getting at here, why you’re calling me a liar, or what your problem seems to be. Whether the size is updated every frame or every time the property changes literally does not change the point.
Amazing addition, can’t wait to use it!
I’m having issues with this while inside a scrolling frame.
If you never restrict the TextBox’s size, the cursor will never leave its rectangle, so it won’t scroll. In this case, you’re letting the TextBox grow inside the scrolling frame. This feature won’t automatically scroll parent scrolling frames for you.
So the autoscroll only works with cursor movement and not scrolling with handles? Are there any api’s that could assist in creating a sytem that could scroll a parent scrolling frame such as obtaining the cursor position?
Uh, what? I was saying that in reply to a message… not the original post.
Cool! Can you also add an BackgroundColor2/HoverColor property to Buttons that maybe appears when AutoButtonColor is deselected? So we can test colors outside of scripts and because than the game doesn’t have to be running to see the effects on hover and that would be soooo niiiiicccceeee!!!..Seems like it’s missing!
The way scrolling is handled with this feature is unrelated to scrolling frames and is based on cursor position only.
You could manually calculate the position using the cursor position and the TextService’s GetTextSize function. See an example of this with a regular frame here. You could likely adapt this to a scrolling frame by adjusting the canvas position instead of the TextBox’s position in the parent frame.
THANK you for this, as a game developer this is VERY useful.
great feature, but I want to ask this; this is not for beta users? I mean, this is rolled to everyone?
OR you could use AutomaticSize with a TextBox and use the AbsoluteSize with the CanvasSize of the ScrollingFrame instead and calculate it that way. Still haven’t found a code-based solution, but it is a good idea.
I was just about to script this for my UI myself! Saves me a bit of time I guess. This is a feature that could be greatly expanded on. However, is there a potential for a better TextScaled option that works with stuff like this in the future that we can split into multiple lines with a property? I hate scripting that myself.
Hey!
This is a great update! However, I noticed that selecting the entire textbox (Ctrl + A) and typing/pasting over the selected text will cause the new text to be pushed to the left of the actual textbox.
This appears visually very odd.
I would benefit from this if TextScaled was supported. Is there a plan to support it in the future?
The fix for this was just deployed. Let us know if you’re still experiencing similar issues! This also fixes centered text not going back to centered after deleting it, which was reported earlier.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.