Make Entering UDim2s Easier

Typing out “{1, 0}, {1,0}” isn’t exactly a ton of work, but when working with GUIs it gets a bit tedious, especially since “{” and “}” require holding shift.

It would be great if we could just type “1, 0, 1, 0” for example, and have it converted to the correct text ("{1, 0}, {1, 0}"), and would make creating and working with GUIs in ROBLOX a lot more comfortable.

13 Likes

I prefer to expand it out so I can edit each number individually. I even find that easier than writing it out with comma separations.

But it would be nice if it could identify that format too.

3 Likes

Yea this can get really annoying having to type out {1, 0}, {1, 0}; especially if you are trying to get that perfect size for your UI’s. This is probably one of the most annoying things about creating UI’s because it can become really repetitive over time.

<:

I think I’ll give it a checkbox for ClearTextOnFocus

If you double click the number you’re trying to edit only that number will be selected. Then you can just write over it.

@Sharksie

8 clicks to change all 4, plus the extra click to get into the writeable field, plus any extra misclicks because the writeable field shifts a few pixels.

Or as op is suggesting, click once, then type in 1,0,1,0 in a smooth line

This is just a tiny plugin not meant to replace the suggestion, but helpful in the meantime

This is only desirable if you want to change every value in the UDim2. If I only want to change 2, that’s four clicks opposed to 3 (number of commas) + however many digits the values you’re not changing are (minimum one each) of unnecessary key presses, so at minimum, you’re going to type 5 unnecessary keys instead of 4 clicks.

It would be so much nicer if it behaved like four cells from a spreadsheet. I could select one box, not have to double click, start typing, and bam done. If I want to edit another value in the UDim2, I can just tab over to the value instead of moving my mouse.

1 Like

Don’t forget the efficiency gained by using separate hands for the mouse and numbers. There really is no performance difference. If anything you’d lose speed because then you have to move your hand from the mouse to the comma.

Of course that’s no reason to not have it.

Tabbing would work excellently.
Some other ideas, which could apply to other similar values:

", 1, " would only set value 3
“1 0 1 0” could be the same as “1, 0, 1, 0”

I can imagine there’s problems with both of these options. Having it click-and-tab sounds like it would work the best. It solves the original problem and only requires one hand, which makes it even easier.

1 Like

If you expand the UDim2 value out as I mentioned earlier, you can tab through the values. Works great.

2 Likes

It’s still a pain to do when your screen is only so big…