LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Interface Help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=3)
-   -   Help with toolbar items (https://www.lotrointerface.com/forums/showthread.php?t=1044)

Pam 09-16-2010 07:03 AM

Help with toolbar items
 
Hi everyone,

Can someone help me redo to default the LotR store button and the new level meter art boundaries with the yessh ui. They are positioned in the middle of the screen right now and when I try to modify it with the info from another thread, LotR wont recognize it or just crash. I didnt change anything before, the new update just placed the new icons above everyone else.


Code:

<PanelFile ID="ID_UISkin_Toolbar">
<Element ID="ToolbarField" X="0" Y="0" Width="1152" Height="864" Detach="1">
  <Element ID="ToolbarFieldMain" X="64" Y="776" Width="1024" Height="864" />
  <Element ID="LevelMeter" X="64" Y="855" Width="1024" Height="6">
  <Element ID="LevelMeterFill" X="3" Y="0" Width="1018" Height="4">
    <Element ID="LevelMeter_BonusMeter" X="3" Y="0" Width="1018" Height="4" />
  <Element ID="Toolbar_WebstoreButton" X="???" Y="???"  Width="1" Height="1">
  <Element ID="ToolbarFieldMain_LevelMeter_Left_Cap" X="1400" Y="10" Width="25" Height="25">
  <Element ID="ToolbarFieldMain_LevelMeter_Right_Cap" X="1400" Y="10" Width="25" Height="25">
  <Element ID="ToolbarButton_Restxp_TutorialHighlight" X="1400" Y="10" Width="25" Height="25">
  <Element ID="ToolbarFieldMain_LevelMeter_Mid_Left_Cap" X="1400" Y="10" Width="25" Height="25">
  <Element ID="ToolbarFieldMain_LevelMeter_Mid_Right_Cap" X="1400" Y="10" Width="25" Height="25">
  <Element ID="ToolbarFieldMain_LevelMeter_Glass_Overlay" X="1400" Y="10" Width="25" Height="25">
  <Element ID="LevelMeter_Overlay" X="1400" Y="10" Width="25" Height="25">

  </Element>
  <Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="0" Y="0" Width="1" Height="1" />
  <Element ID="ToolbarButton_Experience_TutorialHighlight" X="0" Y="0" Width="1" Height="1" />
  <Element ID="LevelMeterText" X="0" Y="0" Width="1" Height="1" />
  </Element>


grezgorz 09-19-2010 10:21 PM

If you just want them hidden, set their x,y to 0,0 and width/height to 1/1. This would be the simplest solution.
If you want to reposition them, you'll have to experiment with the x/y values until they're where you want them. Remember that because they are 'children' of the ToolbarField element, the position is calculated as an offset from the top left corner of the 'parent' element. The code you posted places them at x=1400, while the parent field is specified as only being 1152 pixels wide. I suspect what is happening is that they are reverting to their default offset, since the specified location is invalid. Hope that makes sense.

This is what I have to hide them:
Code:

       
<Element ID="Toolbar_WebstoreButton"  X="0" Y="0"  Width="1" Height="1" />
        <Element ID="ToolbarFieldMain_LevelMeter_Left_Cap" X="0" Y="0" Width="1" Height="1" />
        <Element ID="ToolbarFieldMain_LevelMeter_Right_Cap" X="0" Y="0" Width="1" Height="1" />
        <Element ID="ToolbarFieldMain_LevelMeter_Mid_Left_Cap" X="0" Y="0" Width="1" Height="1" />
        <Element ID="ToolbarFieldMain_LevelMeter_Mid_Right_Cap" X="0" Y="0" Width="1" Height="1" />



All times are GMT -5. The time now is 04:03 AM.

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