This might be a bit of an XY-problem so here's what I'm "actually" trying to do:
I want to place a GUI element just above the player's hotbars. Basically, as far down as possible without overlapping them.
My idea is to get the number of quickbars, multiply by the height of a quickbar, and use that as a vertical offset. But if there's a better way, by all means let me know!
EDIT: Just noticed I posted this in the main modding forum instead of Modding Help, oops!
Get number of visible quickbars
- ickputzdirwech
- Filter Inserter
- Posts: 794
- Joined: Sun May 07, 2017 10:16 am
- Contact:
Re: Get number of visible quickbars
@Moderators you mind moving this to modding interface requests? I don’t want to admit how much it bugs me that this topic ended up in the middle of nowhere. 

Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write