EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Any ideas how the Pack... properties work? (https://www.eq2interface.com/forums/showthread.php?t=321)

Imadruid 11-14-2004 06:20 PM

Any ideas how the Pack... properties work?
 
I undertsand the concepts of PACKing UI objects from Java. I'm just having a hard time wrapping my brain around things like:

PackLocationProp="-027/0001,-001/0001"
PackSize="absolute,absolute"
PackSizeProp="-013/0001,-003/0001"

I can't seem to make sense of those numbers and size values. Most of my modding seems to be working without me ever touching these values.

Does anyone know what they are referring too? Please give me some indication if you are guessing or 100% sure. Thanks.

BTW, is there a manual somewhere (accessible) that lists what all these parameters are? I have searched their site and the install directories, and I haven't come arosss anything that resembles a developer manual.

Rainheart 01-01-2005 02:08 PM

I don't understand the modifications for these parameters yet..but here's a quote from the manual (which I don't understand either)

------------
8.7.2 PackLocation
Type:UIString
The PackLocation determines how a widget is re-positioned when it's parent changes size. The locations are represented as simple relationships between a widget edge, and a parent edge. The Child edge goes first, followed by the relationship, then finally the Parent edge. The two relationships are:

· Fixed - maintain a fixed number of pixels between the 2 edge
· Proportional - maintain the proportion between the edge distances and the parent widget size

The edges that may be referred to are:

· Near - Left for horizontal, Top for vertical
· Far - Right for horizontal, Bottom for vertical
· Center - The center point x value for horizontal, y value for vertical

Syntax example:

NFN,CPF

Horizontal: Child Near Edge - Fixed - Parent Near Edge
Vertical: Child Center - Proportional - Parent Far Edge

Horizontally, the near edge of the widget is kept a fixed distance from the near edge of the parent. Vertically, the center of the widget is kept a proportional distance from the far edge of the parent. Some combinations, obviously, are more useful than others.



8.7.3 PackSize
Type: UIString
PackSize indicates how the widget is re-sized when its parent changes size. The relationships are:

· Fixed - keep the size constant
· Proportional - keep the proportion between the widget's size and parent's size constant
· Absolute - keep the difference between the widget's size and parent's size constant

Syntax example:

A,F

Horizontal: Maintain a constant distance between Child and Parent Edges
Vertical: Keep the Child size constant

This example would work for stretching the menu on the map when it is resized to full screen.

Keep the widget a fixed size horizontally, but expand/contract vertically to maintain a fixed difference between the widget's height and parent's height.
----------------

In other words...it's all about how the resizing of the parent window affects it's sub-windows.
The manual for the UIBuilder is in the UIBuilder's root Directory btw ;)

Deathbane27 01-02-2005 04:44 AM

RainHeart pretty much summed up PackLocation and PackSize. (On a side note, thanks for that image. Was that in the doc file? Wordpad didn't show that.)

PackLocationProp and PackSizeProp don't do anything, they're simply there for reference (helps making sure things are just up against the right edge, for example) and alter themselves if you move things around.

Talyns 01-02-2005 04:47 AM

Doc Viewer:
http://www.microsoft.com/downloads/d...displaylang=EN


All times are GMT -5. The time now is 10:03 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI