View Single Post
  #2  
Unread 01-01-2005, 02:08 PM
Rainheart's Avatar
Rainheart Rainheart is offline
A Young Mystail Rat
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Befallen
Posts: 7
Default

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
__________________
Amateur Modder
Talonis - Guardian - Befallen Server

"Better to remain silent and be thought a fool, than to speak and remove all doubt"
Reply With Quote