UDim resizing

Use this forum for:
- Discussion regarding unofficial CEGUI related tools, scripts and utilities.
- User to user help for the obsoleted CELayoutEditor and CEImagesetEditor tools.

Moderators: CEGUI MVP, CEGUI Team

User avatar
gcarlton
Just can't stay away
Just can't stay away
Posts: 149
Joined: Wed Jan 12, 2005 12:06

UDim resizing

Postby gcarlton » Wed Dec 13, 2006 04:12

I've done a small change which I think is beneficial for the editor when making layouts that aren't pure-scale. Rather than the resizing always changing the scale, or always the offset, an "auto" method is possible. This means:
- If the offset is 0, change the scale
- Otherwise, change the offset

This means that pure-scale buttons drag around as currently. However, if a button is already setup relative to the screen edge with a UDim of (0.0 + 50px), then dragging keeps the scale at 0.0 and shifts the UDim around. This means that once you've "latched" the edge to one side, it keeps latched there. It is easier to see if you see where it is "latched" from using a green line from the +0 offset position.

I have done this change and have a patch available. Here is a screenshot:

Image.

You can see that the left, top, and right is latched with a suitable offset (green line). The bottom is pure scale.

The patch is here:
http://www.hotboxgames.com/downloads/wx280-udim.patch

So the patch has two features: green line that shows offsets, and auto-moving the appropriate dimension. There is one last feature that would really help but I haven't done it: Converting the UDims from one form to another.

If my button's left edge is (0.10+0px), it would be good to right click the edge, and then "latch" it to the left (0.0+60px) or the right (1.0-540px), or back to pure scale (0.10+0px).

User avatar
Pet
Just popping in
Just popping in
Posts: 1
Joined: Mon Feb 05, 2007 00:43

Postby Pet » Mon Feb 05, 2007 01:31

This patch is awesome! Thank you :D

User avatar
Evak
Not too shy to talk
Not too shy to talk
Posts: 32
Joined: Mon Apr 17, 2006 05:29
Contact:

Postby Evak » Sun Apr 15, 2007 20:19

this sounds perfect for me since I always want to work in actual screen pixels. Any chance of having binary version? (I'm an artist with no compiling tools) Will be happy to host it for this thread.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Apr 16, 2007 07:46

I'll have a look. I remember that i only partly added this patch to the binary but cannot remember why. I'll keep you updated on this :)


Return to “Unofficial CEGUI-Related Tools”

Who is online

Users browsing this forum: No registered users and 8 guests