how to refer to subframe dimensions?
greetings, community.
before i found openRDX right here at wowinterface, i just never thought that addon with so great power and flexibility may really exist.
atm i'm extensively learning how to create own UI with OpenRDX and, at the same time, trying to introduce myself to lua scripting.
so here's the first question that i failed to find answer to on my own:
in unitframe/artframe editor, when setting width/height of subframes/statusbars/textures/etc, it is available to refer to BaseWidth and BaseHeight (can even set, for example, BaseWidth/2 or BaseHeight-10...) - and sometimes it is extremely useful to say the least.
BUT. is there any way to access other objects' dimensions (from the same unitframe/artframe of course)?
for example - to make HP (and hidden under it predicted HP) status bars always be the same size and shape as their owner subframe - no matter what dimensional changes i do to this subframe.
my aim is to avoid as much absolute dimensions in favor to relative ones as it's possible. frames will be much easier to reconfigure (if ever needed) that way.
|