LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   General Authoring Discussion (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=22)
-   -   Skinning: Right-side toolbar/mainbar/letterbox (https://www.lotrointerface.com/forums/showthread.php?t=1164)

Travisimo 10-19-2010 05:47 PM

Skinning: Right-side toolbar/mainbar/letterbox
 
(Wasn't sure where to put this (forum-wise) so feel free to move it anywhere...)

I am attempting to move the toolbar/mainbar/letterbox to the right-side of the screen, though staying at the bottom. By default, the toolbar/mainbar/letterbox is positioned in the middle, so can anyone supply the code needed to move the toolbar/mainbar/letterbox to the right side, so the LotRO Store can be found at the bottom-right corner?

My resolution is 1024x768, if that is needed.

PS: (If its possible, can you include the experience bar moved to the right as well?)

daimon 10-19-2010 06:23 PM

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


All times are GMT -5. The time now is 06:19 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI