EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 01-11-2006, 11:09 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default Cartesian Addition (Right/Bottom Aligning Windows)

Just wondering if anyone has attempted to do math on coordinate pairs to achieve right-aligning of windows.

Currently, I'm working on my maintained spells window to make a right-side of the screen version, which requires two windows to share the same top-right corner.

I'm having some luck with:

Code:
MathIsHard.Size=Parent.MaintainedCompact.Size
MathIsHard.RightBarbie.Size=Location
MathIsHard.RightBarbie.PackSize=A,A
MathIsHard.Size=Size
Which basically takes the location of the maintained window, adds it's size and then subtracts the size of the small maintained window. (The result ends up in MathIsHard.RightBarbie.Size. The calculation isn't instant.) Currently, I'm using an effector to read the value back an instant later but am open for other ideas.

Was just wondering if anyone had tried something similar in the past and had any warnings/tips...

Or, if no one had tried it before, perhaps it'll work as inspiration to some of the geniuses writing interfaces...
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote
 



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
Forum Jump


All times are GMT -5. The time now is 07:37 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI