Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-25-10, 03:46 AM   #1
n00blet
A Deviate Faerie Dragon
 
n00blet's Avatar
Join Date: Jul 2010
Posts: 11
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.
  Reply With Quote
 

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » how to refer to subframe dimensions?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off