Author Topic: Will you implement EZAlignment feature from EZ GUI ?  (Read 2998 times)

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Will you implement EZAlignment feature from EZ GUI ?
« on: May 03, 2012, 12:07:46 PM »
Core tool for placing UI elements on screen  is EZAlignment (available from Main Menu -> Components -> EZ GUI -> EZLayout -> Alignment). UI root contains EZAlignment control that detects viewport size and sets it extents to appropriate values. Root aligner works automatically and ignores user defined size and margins.

Child UI elements can align themselves relative to parent elements also by using Alignement, but with custom margins, size and alignment mode. Sizes in UI are defined in pixels, most of the time one pixel is mapped to one world unit. Margins and sizes can be also defined in percentage from parent size, instead of pixels. That is achieved by setting appropriate value type from PIXELS to PARENT_SIZE_PERCENTS.

Following horizontal alignment modes are available in aligner:

LEFT – child aligns its left edge to the parents’ left edge, left margin is taken into account.
RIGHT – child aligns its right edge to the parents’ right edge, right margin is taken into account.
CENTER – child aligns its center to the parents’ center, both left and right margins are taken into account.
STRETCH – child takes all parents’ width, both left and right margins are taken into account.

http://tools.artofbytes.com/ezdata/documentation

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Will you implement EZAlignment feature from EZ GUI ?
« Reply #1 on: May 03, 2012, 12:14:53 PM »
How is it different from UIAnchor? Aligning to parent instead of the screen? Someone already coded this a week or two ago.
« Last Edit: May 03, 2012, 12:16:26 PM by ArenMook »

yuewah

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 180
    • View Profile
Re: Will you implement EZAlignment feature from EZ GUI ?
« Reply #2 on: May 03, 2012, 12:36:05 PM »
yes, aligning to parent. Let me search for the forum. Or, can you make it official.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile