View Single Post
  #2  
Unread 10-19-2010, 06:23 PM
daimon's Avatar
daimon daimon is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Aug 2007
Location: Finland
Posts: 466
All you have to do is to add this

Code:
<PanelFile ID="ID_UISkin_Toolbar">
  <Element ID="ToolbarField" X="2000" Y="2000" Width="1024" Height="200"> </Element>
</PanelFile>
and that should do it.

ToolbarField is the tag you need to tweak
X=0 moves the bar to the left
X=2000 moves the bar to the right
Y=0 moves the bar to the top
Y=2000 moves the bar to the bottom
If you want to center the bar:
  • screen_resolution/2 - Width/2
    • width=mainbar width
Why value 2000 ? The Lotro UI doesn't allow overlapping even if you use overly large numbers. It will just move the bar as far as it can go inside the users screen resolution without going over the screen borders.

Note. As soon as you edit the mainbar and add ID_UISkin_Toolbar PanelFile into your skin there are a few set backs:
  • You will lose multiresolution support if the mainbar is suppose to be centered. In that case you need to make a different skindef for every resolution your users might want to/are using. This doesn't matter though if your custom mainbar is not supposed to be centered (like the example you were asking).
  • If you switch between fullscreen mode and windowed mode the UI will "break" and you need to relog to fix the issue.
In PanelFile ID="ID_UISkin_Toolbar" you can find all kinds of stuff you can do for the mainbar, for example make the xp bar wider or narrow (you can't modify xp bar's height though).


If your mainbar isn't standard sized (x1024 y90) you will need to modify the Width/Height values of ToolbarField and ToolbarFieldMain accordingly:
  • ToolbarField
    • Width=your mainbar width
    • Height=200
      • if your mainbar is over 200 then use then set height same as your mainbar height
  • ToolbarFieldMain
    • Width=your mainbar width
    • Height=your mainbar height
    • Y=200-your mainbar height
      • if your mainbar height is over 200 then set to Y=0
If your mainbar isn't standard size that will obviously affect pretty much everything else on the ID_UISkin_Toolbar as well.

XP bar is controlled by the following element ID's:
LevelMeter, LevelMeterFill, LevelMeter_BonusMeter, LevelMeterText
If you're planning to modify xp bar's width you should use the same width value in all of the above tags
__________________
~·~ DaimonUI ~·~
avatar by Humon

Last edited by daimon : 10-19-2010 at 06:59 PM.
Reply With Quote