Specifying alignment when positioning

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
jed
Just popping in
Just popping in
Posts: 14
Joined: Fri May 20, 2005 14:51

Specifying alignment when positioning

Postby jed » Fri May 20, 2005 22:26

When using absolute positioning is there a way to specify that you mean relative to the top or bottom? For example I want "bar" to always be at the bottom of the screen but I don't know what resolution they are running at. What I'm doing below will only work if they happen to be running at the right resolution.
With ogre I could just go: vert_align bottom


<Window Type="DefaultGUISheet" Name="root">
<Window Type="DefaultGUISheet" Name="bar">
<Property Name="Position" Value="x:0 y:.8" />
<Property Name="Size" Value="w:1 h:.2" />
<Window Type="TaharezLook/StaticImage" Name="bar/background">
<Property Name="MetricsMode" Value="Absolute" />
<Property Name="Position" Value="x:0 y:0" />
<Property Name="Size" Value="w:600 h:68" />
<Property Name="Image" Value="set:MainScreen image:bar" />
<Property Name="FrameEnabled" Value="false" />
</Window>
</Window>
</Window>

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 13 guests