Page 1 of 1

LuaEntity: alt_info_shift property

Posted: Sun Aug 04, 2019 8:44 pm
by raiguard
Hello. I would like to request an addition to the LuaEntity prototype that allows one to offset the alt info display from the center of the entity. The reason is because I am making a complex multi-part entity, which needs an alt-info display, but the only entity that can display it properly is very off-center from what the player sees:
2019-08-04 14_37_53-Factorio 0.17.62.png
2019-08-04 14_37_53-Factorio 0.17.62.png (10.54 KiB) Viewed 1188 times
I would love to be able to move the alt info display back to the center of the visible entity to make it look right.

Thanks!

Re: LuaEntity: alt_info_shift property

Posted: Sun Aug 04, 2019 8:47 pm
by posila
Which entity type do you need it for? Crafting machines (assembling-machine, furnace, rocket-silo) and Lab have entity_info_icon_shift

Re: LuaEntity: alt_info_shift property

Posted: Sun Aug 04, 2019 8:48 pm
by raiguard
In this case, it's an infinity container.

Edit: I don't see entity_info_icon_shift anywhere in the prototype definition docs...

Re: LuaEntity: alt_info_shift property

Posted: Sun Aug 04, 2019 8:55 pm
by Bilka
Raiguard wrote:
Sun Aug 04, 2019 8:48 pm
Edit: I don't see entity_info_icon_shift anywhere in the prototype definition docs...
https://wiki.factorio.com/Prototype/Cra ... icon_shift ? The lab page isn't updated yet, change was on Friday...

Re: LuaEntity: alt_info_shift property

Posted: Sun Aug 04, 2019 9:01 pm
by raiguard
Bilka wrote:
Sun Aug 04, 2019 8:55 pm
Raiguard wrote:
Sun Aug 04, 2019 8:48 pm
Edit: I don't see entity_info_icon_shift anywhere in the prototype definition docs...
https://wiki.factorio.com/Prototype/Cra ... icon_shift ? The lab page isn't updated yet, change was on Friday...
Don't mind me, just being blind... :oops:

Re: LuaEntity: alt_info_shift property

Posted: Mon Aug 05, 2019 6:05 am
by raiguard
Hey, so it turns out I won't need this after all... I figured out that I can actually just place the chest right in the middle without any issues. It would probably be nice for this to be implemented for all entities, but I personally don't need it anymore (for now). Thanks! :D