Get number of visible quickbars

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Get number of visible quickbars

Post by PFQNiet »

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!

User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 768
Joined: Sun May 07, 2017 10:16 am
Contact:

Re: Get number of visible quickbars

Post by ickputzdirwech »

@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. :D
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

Post Reply

Return to “Modding interface requests”