Get number of visible quickbars
Posted: Thu Jan 14, 2021 9:50 am
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!
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!