picture_box/drawing_box revival

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 234
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

picture_box/drawing_box revival

Post 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 257 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 257 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 257 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.
protocol_1903
Filter Inserter
Filter Inserter
Posts: 278
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: picture_box/drawing_box revival

Post by protocol_1903 »

+1, i haven't ran into this issue specifically (i use smaller entities) but it's an issue nonetheless
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Post Reply

Return to “Modding interface requests”