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:
The problem is that the full entity is not in frame, we can remedy this slightly with the drawing_box_vertical_extension:
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:
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.
picture_box/drawing_box revival
-
- Filter Inserter
- Posts: 278
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: picture_box/drawing_box revival
+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.
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.