Image
Only a minor issue, but has been bugging me for a whileOr maybe the issue is that it IS shifted, but shifted outside of the box...
Sprite data
This worked perfectly, almost, seems the sprite is too big for the box areakovarex wrote:This is solvable by setting the drawing_box of the entity.
It is defined in similar way as selection_box or bounding_box, it just specifies the area that should be taken for this preview.
Always happy to helpkovarex wrote:But you reminded me, that I need to fix this value for several vanila objects.
Klonan wrote:EDIT: As aside note, the drawing_box isn't mentions in the LuaEntityPrototype doc in the new documentation
It is not listed in doc-html/LuaEntityPrototype.html, the new folder that has been added with 0.12.18.kovarex wrote:It is here:
https://forums.factorio.com/wiki/inde ... rawing_box
Yes, but LuaEntityPrototype and prototype definition are two different things (although related).daniel34 wrote:Klonan wrote:EDIT: As aside note, the drawing_box isn't mentions in the LuaEntityPrototype doc in the new documentationIt is not listed in Factorio/doc-html/LuaEntityPrototype.html, the new folder that has been added with 0.12.18.kovarex wrote:It is here:
https://forums.factorio.com/wiki/inde ... rawing_box
Ahh right, for some reason it seemed like it wasn't working when i tried that, but i just set it again and its working properly now, thankskovarex wrote:
If the top part is out of the picture, just decrease the first y1 in {{x1, y1}, {x2, y2}}
Now we just need some system that exports all prototype properties from every prototype definition (single and multiple inheritance included)kovarex wrote:Yes, but LuaEntityPrototype and prototype definition are two different things (although related).daniel34 wrote:Klonan wrote:EDIT: As aside note, the drawing_box isn't mentions in the LuaEntityPrototype doc in the new documentationIt is not listed in Factorio/doc-html/LuaEntityPrototype.html, the new folder that has been added with 0.12.18.kovarex wrote:It is here:
https://forums.factorio.com/wiki/inde ... rawing_box
The LuaEntityPrototype is in-game read only interface to get info about the prototype from the script.
The EntityPrototypeDefinition is the specification of the entity, of how should it be created in the mod/vanilla lua data files.