Picture positioning
Posted: Tue Mar 03, 2015 9:55 pm
Hello there,
I am trying to create a website on which you can edit saved blueprints. But currently I am stucked at displaying the blueprint. I use the information from data/base/prototypes/entity/demo-entities.lua etc. namly entity.selection_box, entitiy.drawing_box, entity.pictures.filename, entity.pictures.width and entity.pictures.height. I already found out that the base unit for the pictures is 32 pixels. But currently the pictures are not shiftet by entity.pictures.shift, because every variation on how to use these values does not result in a correct preview.
Can anybody help me with entity.picture.shift?
To give you an idea of what I am doing: https://ght.io/factorio/blueprint/
In this example especially the accumulators and the radar is misplaced.
Legal Question: Is it allowed to use the graphics and scripts in raw or preprocessed way on a third party website?
Thanks,
Gerhard
(Example copied from https://forums.factorio.com/forum/vie ... 168#p39903)
I am trying to create a website on which you can edit saved blueprints. But currently I am stucked at displaying the blueprint. I use the information from data/base/prototypes/entity/demo-entities.lua etc. namly entity.selection_box, entitiy.drawing_box, entity.pictures.filename, entity.pictures.width and entity.pictures.height. I already found out that the base unit for the pictures is 32 pixels. But currently the pictures are not shiftet by entity.pictures.shift, because every variation on how to use these values does not result in a correct preview.
Can anybody help me with entity.picture.shift?
To give you an idea of what I am doing: https://ght.io/factorio/blueprint/
In this example especially the accumulators and the radar is misplaced.
Legal Question: Is it allowed to use the graphics and scripts in raw or preprocessed way on a third party website?
Thanks,
Gerhard
(Example copied from https://forums.factorio.com/forum/vie ... 168#p39903)