Page 1 of 1

picture_box/drawing_box revival

Posted: Fri Jan 31, 2025 11:15 am
by Quezler
In 2.0.7 the drawing box (internally referred to as the picture box) was replaced by drawing_box_vertical_extension.

This was likely done to make the data stage of the vanilla mods cleaner, simply being able to increase the height instead of mentally mapping the entire box and extending both corners.

However it does lead to some limitations in terms of modding, it is not uncommon to create entities made up of several selectable parts, for example a recent mod i am working on has a bounding box for the entire area, but a smaller selection box so that near the edges you can select another "layer" of the machine:
Screenshot 2025-01-31 at 12.06.20.png
Screenshot 2025-01-31 at 12.06.20.png (29.5 KiB) Viewed 258 times
The problem is that the full entity is not in frame, we can remedy this slightly with the drawing_box_vertical_extension:
Screenshot 2025-01-31 at 12.05.53.png
Screenshot 2025-01-31 at 12.05.53.png (26.36 KiB) Viewed 258 times
However the bottom is still out of the frame, it would be nice if we got some finer grained control returned to us, possibly in the form of:
a) being able to define a box again, and that box being used as the base for the drawing_box_vertical_extension instead of the selection box
b) a "drawing_box_south_extention" of somekind, in which case being able to add a negative value to either in order to "zoom in" would be nice

Additionally, being able to set the center of the drawing, either via a center offset or an offset picturebox would be nice in cases where the texture extends further in one direction than another:
Screenshot_2025-01-10_at_20.44.11.png
Screenshot_2025-01-10_at_20.44.11.png (326.78 KiB) Viewed 258 times
Whilst i understand that modded entities consisting of multiple parts isn't technically supported or intended, giving us some tools to use would be awesome.

Re: picture_box/drawing_box revival

Posted: Tue Feb 04, 2025 5:11 pm
by protocol_1903
+1, i haven't ran into this issue specifically (i use smaller entities) but it's an issue nonetheless