LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   XML modification help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=23)
-   -   Bottom Left UI Code (https://www.lotrointerface.com/forums/showthread.php?t=607)

Cleitanious 04-25-2008 09:09 AM

Bottom Left UI Code
 
Could someone please help me wit this.

Im trying to make a block of code that can be copied to the beginning of any UI skin (That uses normal sized letterbox) and will be correctly aligned to the bottom left corner of my screen. Like this: http://www.lotrointerface.com/downloads/full309.jpg

Im using the Book 13 Art Package as a base, since any UI that uses the same dimesnions as this one will work. But I dont know XML at all and dont have a clue how to make it work. So far the code I have is this:

Code:

        <PanelFile ID="toolbar">
    <Element ID="ToolbarField" X="0" Y="1355" Width="1024" Height="85" Detach="1">

        <Element ID="ToolbarFieldMain" X="0" Y="0" Width="1024" Height="80"></Element>

        <Element ID="LevelMeter" X="0" Y="55" Width="1024" Height="30">
            <Element ID="LevelMeterFill" X="0" Y="24" Width="1024" Height="6">
                <Element ID="LevelMeter_BonusMeter" X="0" Y="0" Width="1024" Height="6"></Element>
            </Element>
            <Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="1" Y="10" Width="1024" Height="10"></Element>
            <Element ID="ToolbarButton_Experience_TutorialHighlight" X="1" Y="10" Width="1024" Height="10"></Element>
            <Element ID="LevelMeterText" X="1" Y="20" Width="1024" Height="10"></Element>
        </Element>

        <Element ID="AutoAttackIndicatorButton" X="5" Y="18" Width="64" Height="64"></Element>
        <Element ID="ViolentModeIndicator" X="1" Y="18" Width="64" Height="64"></Element>
        <Element ID="ToolbarButton_AutoAttack_TutorialHighlight" X="1" Y="18" Width="40" Height="30"></Element>
        <Element ID="GamePlay_FervorPipDisplay" X="-9" Y="-6" Width="90" Height="42"></Element>
        <Element ID="GamePlay_AimPipDisplay" X="-9" Y="-6" Width="90" Height="42"></Element>

        <Element ID="ToolBarButton_MainMenu" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Crafting" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Social" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Accomplishment" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Quest" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Journal" X="0" Y="0" Width="1" Height="1"></Element>

        <Element ID="ToolbarButton_Inventory" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory2" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory3" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory4" X="0" Y="0" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory5" X="0" Y="0" Width="1" Height="1"></Element>

        <Element ID="Toolbar_Quickslot" X="70" Y="40" Width="420" Height="35"></Element>
    </Element>
        </PanelFile>

Which goes right under the <SkinName Name="Default UI (Left-Side)"></SkinName> line and it works - except the experience bar and fervour bars arnt ligned up right at all.

Brygard2007 04-25-2008 01:50 PM

Do you want the experience bar stretch across the screen at the bottom?
How do you want the fervor bar at?
Almost on top of the attack button?

Cleitanious 04-26-2008 10:55 AM

Right now Im borrowing the code form the Antonica UI and its working great. So Ill use that for my base from here on out. I pasted this at the beginning of the XML for the new book 13 skin pack and all is well (As long as copying over the new fervour bar graphics which are a different size.. Here is the code:

Code:

<!-- Toolbar -->
        <Mapping ArtAssetID="LetterBoxBottom" FileName="letterbox_bottom.tga"></Mapping>

        <PanelFile ID="toolbar">
                <Element ID="ToolbarField" X="0" Y="900" Width="1024" Height="90" Detach="1">

<!-- You can change the line above for other resolutions:                -->
<!-- for 1024x768:                <Element ID="ToolbarField" X="0" Y="678" Width="1024" Height="90" Detach="1">      -->
<!-- for 1280x1024:                <Element ID="ToolbarField" X="128" Y="934" Width="1024" Height="90" Detach="1">  -->
<!-- for 1440x990:                <Element ID="ToolbarField" X="208" Y="900" Width="1024" Height="90" Detach="1">  -->
<!-- for 1680x1050:                <Element ID="ToolbarField" X="328" Y="960" Width="1024" Height="90" Detach="1">  -->

        <Element ID="ToolbarFieldMain" X="0" Y="0" Width="1024" Height="90"></Element>

                        <Element ID="LevelMeter" X="107" Y="76" Width="732" Height="11">
                                <Element ID="LevelMeterFill" X="0" Y="0" Width="732" Height="11">
                                <Element ID="LevelMeter_BonusMeter" X="0" Y="0" Width="732" Height="11">
                        </Element>
        </Element>
               
    <Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="1" Y="1" Width="1" Height="1"></Element>
    <Element ID="ToolbarButton_Experience_TutorialHighlight" X="0" Y="1" Width="1" Height="1"></Element>
    <Element ID="LevelMeterText" X="0" Y="0" Width="1" Height="1"></Element>
    </Element>

    <Element ID="AutoAttackIndicatorButton" X="1" Y="1" Width="1" Height="63"></Element>
    <Element ID="ViolentModeIndicator" X="1" Y="1" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_AutoAttack_TutorialHighlight" X="1" Y="1" Width="1" Height="1"></Element>
        <Element ID="GamePlay_FervorPipDisplay" X="2" Y="77" Width="100" Height="10"></Element>
        <Element ID="GamePlay_AimPipDisplay" X="2" Y="77" Width="100" Height="10"></Element>
       
        <Element ID="ToolBarButton_MainMenu" X="88" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Crafting" X="158" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Social" X="228" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Accomplishment" X="298" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Quest" X="368" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Journal" X="438" Y="44" Width="1" Height="1"></Element>
       
        <Element ID="ToolbarButton_Inventory" X="311" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory2" X="281" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory3" X="251" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory4" X="221" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory5" X="191" Y="41" Width="1" Height="1"></Element>
       
        <Element ID="Toolbar_Quickslot" X="1" Y="37" Width="420" Height="35"></Element>
    </Element>
</PanelFile>

I made the experience bar twice as fat (2x) height, but the texture is more like 2 exp bars, which is fine. I guess the xp bar isnt skinable yet? I'd like for it to go across the whole screen at 1440x990 resolution, but I cant make it work right myself if I try to make it longer. Right now its about 1/3 as long as my screen.

The Fervour bar is actually to the left of the exp bar and is little bubbles (you can see their size defined in the code) instead of the normal half circle type dealio.

The attack button doesnt exist, It's worthless to me since I know when I am attacking.

I guess the only thing I need help with at this point is making the exp bar go the rest of the way across the screen and not being all wonky, if thats even possible.

Brygard2007 04-26-2008 01:33 PM

Only thing I modify is for the xp bar to stretch for your resolution.
The width have to be changed from 732 to your resolution 1440.
Dont know why the level meter text was set to one,but I changed it.
That should make the xp letters at middle of the screen of the xp bar.

<Element ID="LevelMeter" X="107" Y="76" Width="1440" Height="11">
<Element ID="LevelMeterFill" X="0" Y="0" Width="1440" Height="11">
<Element ID="LevelMeter_BonusMeter" X="0" Y="0" Width="1440" Height="11"></Element>
</Element>
And this:
<Element ID="LevelMeterText" X="0" Y="0" Width="1440" Height="1"></Element>
</Element>

The code for this,are you using on your skin?
Is the screenshot the skin your using the code for?
Or a different skin?
Cause I baseing the code on the screenshot UI.

Code:

                  <!-- Toolbar -->
                                 
  <Mapping ArtAssetID="LetterBoxBottom" FileName="letterbox_bottom.tga"></Mapping>
 
 <!-- You can change the line above for other resolutions:                -->
 <!-- for 1024x768:                <Element ID="ToolbarField" X="0" Y="678" Width="1024" Height="90" Detach="1">      -->
 <!-- for 1280x1024:                <Element ID="ToolbarField" X="128" Y="934" Width="1024" Height="90" Detach="1">  -->
 <!-- for 1440x990:                <Element ID="ToolbarField" X="208" Y="900" Width="1024" Height="90" Detach="1">  -->
 <!-- for 1680x1050:                <Element ID="ToolbarField" X="328" Y="960" Width="1024" Height="90" Detach="1">  -->
 
  <PanelFile ID="toolbar">
  <Element ID="ToolbarField" X="0" Y="900" Width="1024" Height="90" Detach="1">
  <Element ID="ToolbarFieldMain" X="0" Y="0" Width="1024" Height="90"></Element>
  <Element ID="LevelMeter" X="107" Y="76" Width="1440" Height="11">
  <Element ID="LevelMeterFill" X="0" Y="0" Width="140" Height="11">
  <Element ID="LevelMeter_BonusMeter" X="0" Y="0" Width="1440" Height="11"></Element>
  </Element>
  <Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="1" Y="1" Width="1" Height="1"></Element>
  <Element ID="ToolbarButton_Experience_TutorialHighlight" X="0" Y="1" Width="1" Height="1"></Element>
  <Element ID="LevelMeterText" X="0" Y="0" Width="1440" Height="1"></Element>
  </Element>
  <Element ID="AutoAttackIndicatorButton" X="1" Y="1" Width="1" Height="63"></Element>
  <Element ID="ViolentModeIndicator" X="1" Y="1" Width="1" Height="1"></Element>
  <Element ID="ToolbarButton_AutoAttack_TutorialHighlight" X="1" Y="1" Width="1" Height="1"></Element>
  <Element ID="GamePlay_FervorPipDisplay" X="2" Y="77" Width="100" Height="10"></Element>
  <Element ID="GamePlay_AimPipDisplay" X="2" Y="77" Width="100" Height="10"></Element>
       
  <Element ID="ToolBarButton_MainMenu" X="88" Y="44" Width="1" Height="1"></Element>
  <Element ID="ToolbarButton_Crafting" X="158" Y="44" Width="1" Height="1"></Element>
  <Element ID="ToolbarButton_Social" X="228" Y="44" Width="1" Height="1"></Element>
  <Element ID="ToolbarButton_Accomplishment" X="298" Y="44" Width="1" Height="1"></Element>
  <Element ID="ToolBarButton_Quest" X="368" Y="44" Width="1" Height="1"></Element>
  <Element ID="ToolbarButton_Journal" X="438" Y="44" Width="1" Height="1"></Element>
       
  <Element ID="ToolbarButton_Inventory" X="311" Y="41" Width="1" Height="1"></Element>
  <Element ID="ToolBarButton_Inventory2" X="281" Y="41" Width="1" Height="1"></Element>
  <Element ID="ToolBarButton_Inventory3" X="251" Y="41" Width="1" Height="1"></Element>
  <Element ID="ToolBarButton_Inventory4" X="221" Y="41" Width="1" Height="1"></Element>
  <Element ID="ToolBarButton_Inventory5" X="191" Y="41" Width="1" Height="1"></Element>
       
  <Element ID="Toolbar_Quickslot" X="1" Y="37" Width="420" Height="35"></Element>
  </Element>
  </PanelFile>


Brygard2007 04-26-2008 01:39 PM

Also the width should be changed to your resolution if you wanted stretched across the screen correctly from 1024 to 1440.

<Element ID="ToolbarField" X="0" Y="900" Width="1024" Height="90" Detach="1">
<Element ID="ToolbarFieldMain" X="0" Y="0" Width="1024" Height="90"></Element>

Cleitanious 04-29-2008 07:14 AM

I pasted this at the bottom of the newest LM Earlingas ui skin before the </opt>, along with the appropriate images (duh) and after playing with it for 20 minutes I still cannot even get the skin to be an option in-game. :(

Code:

<!-- Images -->
  <Mapping ArtAssetID="LetterBoxBottom" FileName="letterbox_bottom.tga"></Mapping>

  <Mapping ArtAssetID="fervor_12_Pips_10pips" FileName="fervor_12_Pips_10pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_11pips" FileName="fervor_12_Pips_11pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_12pips" FileName="fervor_12_Pips_12pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_1pips" FileName="fervor_12_Pips_1pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_2pips" FileName="fervor_12_Pips_2pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_3pips" FileName="fervor_12_Pips_3pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_4pips" FileName="fervor_12_Pips_4pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_5pips" FileName="fervor_12_Pips_5pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_6pips" FileName="fervor_12_Pips_6pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_7pips" FileName="fervor_12_Pips_7pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_8pips" FileName="fervor_12_Pips_8pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_9pips" FileName="fervor_12_Pips_9pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_12_Pips_empty" FileName="fervor_12_Pips_empty.tga"></Mapping>

  <Mapping ArtAssetID="fervor_5_Pips_1pips" FileName="fervor_5_Pips_1pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_5_Pips_2pips" FileName="fervor_5_Pips_2pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_5_Pips_3pips" FileName="fervor_5_Pips_3pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_5_Pips_4pips" FileName="fervor_5_Pips_4pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_5_Pips_5pips" FileName="fervor_5_Pips_5pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_5_Pips_empty" FileName="fervor_5_Pips_empty.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_1pips" FileName="fervor_9_Pips_1pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_2pips" FileName="fervor_9_Pips_2pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_3pips" FileName="fervor_9_Pips_3pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_4pips" FileName="fervor_9_Pips_4pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_5pips" FileName="fervor_9_Pips_5pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_6pips" FileName="fervor_9_Pips_6pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_7pips" FileName="fervor_9_Pips_7pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_8pips" FileName="fervor_9_Pips_8pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_9pips" FileName="fervor_9_Pips_9pips.tga"></Mapping>
  <Mapping ArtAssetID="fervor_9_Pips_empty" FileName="fervor_9_Pips_empty.tga"></Mapping>


        <PanelFile ID="toolbar">
                <Element ID="ToolbarField" X="0" Y="900" Width="1024" Height="90" Detach="1">

<!-- You can change the line above for other resolutions:                -->
<!-- for 1024x768:                <Element ID="ToolbarField" X="0" Y="678" Width="1024" Height="90" Detach="1">      -->
<!-- for 1280x1024:                <Element ID="ToolbarField" X="128" Y="934" Width="1024" Height="90" Detach="1">  -->
<!-- for 1440x990:                <Element ID="ToolbarField" X="208" Y="900" Width="1024" Height="90" Detach="1">  -->
<!-- for 1680x1050:                <Element ID="ToolbarField" X="328" Y="960" Width="1024" Height="90" Detach="1">  -->

        <Element ID="ToolbarFieldMain" X="0" Y="0" Width="1024" Height="90"></Element>

                        <Element ID="LevelMeter" X="107" Y="76" Width="732" Height="11">
                                <Element ID="LevelMeterFill" X="0" Y="0" Width="732" Height="11">
                                <Element ID="LevelMeter_BonusMeter" X="0" Y="0" Width="732" Height="11">
                        </Element>
        </Element>
               
    <Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="1" Y="1" Width="1" Height="1"></Element>
    <Element ID="ToolbarButton_Experience_TutorialHighlight" X="0" Y="1" Width="1" Height="1"></Element>
    <Element ID="LevelMeterText" X="0" Y="0" Width="1" Height="1"></Element>
    </Element>

      <Element ID="AutoAttackIndicatorButton" X="1" Y="1" Width="1" Height="63"></Element>
      <Element ID="ViolentModeIndicator" X="1" Y="1" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_AutoAttack_TutorialHighlight" X="1" Y="1" Width="1" Height="1"></Element>
        <Element ID="GamePlay_FervorPipDisplay" X="2" Y="77" Width="100" Height="10"></Element>
        <Element ID="GamePlay_AimPipDisplay" X="2" Y="77" Width="100" Height="10"></Element>
       
        <Element ID="ToolBarButton_MainMenu" X="88" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Crafting" X="158" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Social" X="228" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Accomplishment" X="298" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Quest" X="368" Y="44" Width="1" Height="1"></Element>
        <Element ID="ToolbarButton_Journal" X="438" Y="44" Width="1" Height="1"></Element>
       
        <Element ID="ToolbarButton_Inventory" X="311" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory2" X="281" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory3" X="251" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory4" X="221" Y="41" Width="1" Height="1"></Element>
        <Element ID="ToolBarButton_Inventory5" X="191" Y="41" Width="1" Height="1"></Element>
       
        <Element ID="Toolbar_Quickslot" X="1" Y="37" Width="420" Height="35"></Element>
    </Element>
</PanelFile>

It should use everything from the LM Earlingas UI skin, but a different letterbox and fervor bar.

Enfield 04-29-2008 02:36 PM

If it's not showing up in-game, it probably means there a syntax error in your XML file. Try opening it up in Firefox/Internet Explorer and see if it tells you where the error is.

Cleitanious 04-29-2008 08:11 PM

Quote:

Originally Posted by Enfield (Post 2801)
If it's not showing up in-game, it probably means there a syntax error in your XML file. Try opening it up in Firefox/Internet Explorer and see if it tells you where the error is.

Strange, it found this...
Code:

        <Mapping ArtAssetID="bag4_pressed"                                                FileName="minibuttons\lm_mini_butto
with a square where the n should be, but this error is present in the original file - and it still works in-game unless I add my changes to it. In fact even after I corrected it, it finds these little squares all over the XML file, where different characters should be, like randomly all over the file. o.O

Cleitanious 04-30-2008 05:47 AM

It was wordpad, opening and saving the XML files in word-pad causes these errors.


All times are GMT -5. The time now is 04:50 PM.

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