Get number of visible quickbars

Discussions about modding and mod development.
Here you can get help, if you have questions about how to program mod, discuss your ideas with other modders, cooperate with others, suggest your ideas.
Post Reply
PFQNiet
Fast Inserter
Fast Inserter
Posts: 124
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: 425
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 vanilla tweaks
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 Discussions”

Who is online

Users browsing this forum: No registered users