EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-12-2007, 04:55 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default What are Composite objects good for?

I'm just looking at the new persona window and seeing the use of composite objects therein. I admit I have no idea what those are good for. From they behaviour the appear identical to a page? Anyone know what's up with them?
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #2  
Unread 11-12-2007, 05:09 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

From the user perspective they don't make any difference. From the designer perspective they arrange the children objects automatically. I prefer more exact control so I didn't use them in my persona window stats tab.

From the UIBuilder doc:
Composite
Parent : Page
Page that automatically spaces visible widgets

Orientation
Horizontal/Vertical

Spacing - gap size
integer

SpacingType
Fill - make the widgets take up all the space
Spread - spread the widgets equally
Constant - fixed spacing

Alignment
Front - left/top
Center - center
Back - right/bottom

Padding -
Internal - spacing between items
External - spacing on the outside
Both - spacing both between and on the outside
__________________

Visit Othesus World!
Reply With Quote
  #3  
Unread 11-12-2007, 05:13 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

What Othesus said plus allot of the overhead that a page has is not there. I use them to hold my user effect or any thing I want evenly spaced out.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #4  
Unread 11-12-2007, 05:32 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

One nice advantage you get with a Composite is that the spacing dynamically updates as objects are show/hidden. For example SOE has been using them with a nested page and auto-hiding scrollbar. When the scrollbar hides, the page expands to fill the empty space.

Back in the day, composites didn't work right so I didn't implement them on a wide scale, but have been slowly adding them where useful.
Reply With Quote
  #5  
Unread 11-12-2007, 05:38 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Note to self: RTFM. Thanks you all.

I had only looked at them in UIbuilder and no automatic spacing happens therein. Sounds like an interesting control then, basically like a volume page in just one direction.

Would be interesting to hear from Rothgar what is most efficient, automatic placement via PackLocation, via a Composite or via a VolumePage.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 11-13-2007, 10:55 AM
SOE-Rothgar SOE-Rothgar is offline
A Griffon
Yes this person is from Daybreak!
 
Join Date: Aug 2007
Server: Unrest
Posts: 208
Default

As far as performance goes, I'm not sure if there is a noticeable difference between the three methods to really worry about it. I really do like Composite objects though, because I'm a stickler for things being lined up properly and looking nice when pages are resized. And like Zonx mentioned, it works great for when a page hides a vertical scrollbar.
Reply With Quote
  #7  
Unread 11-13-2007, 11:07 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Thanks Rothgar. I agree they are nice. I'm using two vertical composites on my persona window as well now, in addition to the volume pages I always used there (I like correct spacing as well ).

And the scrollbar idea is good, I know a couple of windows I will update with that, getting rid of the OnShow code I currently have doing the same thing.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
Reply



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 03:05 PM.


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