Quantcast LoTROInterface - View Single Post - New UI Positioning Problem(s) - Exp Bar...
View Single Post
  #5  
Unread 06-20-2007, 06:04 PM
D.H1cks's Avatar
D.H1cks D.H1cks is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2007
Posts: 162
Quote:
Originally Posted by AncientWolf
Code:


Code:
<Element ID="ToolbarField" X="300" Y="100" Width="420" Height="200" Detach="1">
  <Element ID="ToolbarFieldMain" X="0" Y="0" Width="1" Height="1"></Element>


  <Element ID="LevelMeter" X="0" Y="125" Width="200" Height="30">
    <Element ID="LevelMeterFill" X="5" Y="137" Width="200" Height="6">
      <Element ID="LevelMeter_BonusMeter" X="0" Y="125" Width="200" Height="6"></Element>
    </Element>
    <Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="0" Y="135" Width="200" Height="10"></Element>
    <Element ID="ToolbarButton_Experience_TutorialHighlight" X="0" Y="135" Width="200" Height="10"></Element>
    <Element ID="LevelMeterText" X="3" Y="135" Width="200" Height="10"></Element>
  </Element>
Watch out how your 'Y' positions are stacking. You set the whole height to 200, and the level meter to 125(red). Next, LevelMeterFill is 137 (green)below that(notice where the </Element> is located for LevelMeter (yellow). That would put it 137 down from the top of the LevelMeter, and 262 units from the top of the whole Toolbar.

The 'Y' value is always in relation to the element it is nested in(hope that makes sense).

You will have to change the rest of your 'Y' values. Took me a while to figure that out too.

Edit: I even messed up the stacking when I tried to explain it.

Last edited by D.H1cks : 06-20-2007 at 06:13 PM.
Reply With Quote