Page 1 of 1

[0.18.30] drawing_box does not work for small entities

Posted: Tue Jun 09, 2020 4:04 pm
by lovely_santa
Hi,

When specifying the drawing box of an entity that is larger than the selection box, it correctly "zooms out" the entity preview to make the whole entity visible in the entity preview box.

Now I have a very small entity, so I've set my drawing box very small as well, but it doesn't seem to "zoom in" the entity preview, hence why the entity looks rather small in the preview. I do know that the colors do not justify it in this case.

To reproduce, I've attached the mod, go into the crafting menu, craft a smart cable, place it and hover over it, the preview is not zoomed in.
entity_preview.PNG
entity_preview.PNG (1.28 MiB) Viewed 1136 times

Re: [0.18.30] drawing_box does not work for small entities

Posted: Tue Jun 09, 2020 4:42 pm
by Rseding91
Thanks for the report however I believe that's intended. The logic doesn't scale up things - only scale down if drawing_box won't fit.

Re: [0.18.30] drawing_box does not work for small entities

Posted: Tue Jun 09, 2020 11:13 pm
by lovely_santa
So it doesn't take into account that the entity picture/animation could already be downscaled as well, (scale has been set to <1).

Could it be possible to add a setting to upscale the preview so at least it upscales to the size of a single tile entity (for example transport belt). It's still small compared to large entities, but at least it's somewhat visible?

I do recall some questions about being able to draw over the entity preview to preview something else, but that was too complicated to implement. Could an upscale work? Seems doable to me as the entity has higher scales visible when you zoom into the entity (zooming in all the way appears that the actual entity is alot bigger than the entity preview itself

Re: [0.18.30] drawing_box does not work for small entities

Posted: Mon Jul 13, 2020 11:10 am
by Klonan
You can make a modding interface request