LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Tutorials & Other Helpful Information (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=21)
-   -   Vitals black transparent background box xml code fixes. (https://www.lotrointerface.com/forums/showthread.php?t=1061)

Brygard2007 09-19-2010 02:06 PM

Vitals black transparent background box xml code fixes.
 
This code is only fixes two things.

First:
The black transparent background box,there no skin for it as far I can tell.

The code will shrink the background box to the morale and power bar exact location.

This helpful for people who want to create a minimal skin art for the char and opponents vital bars and don't have to be restricted to that transparent box size anymore.

Second:
Fixes the miss align power bar with the morale bar.

The power bar is moved 1 pixel further to the right side leaving 1 pixel gap hole on the left side,this is now fixed for both vitals.

Pic:


Here's the code to add to the skindefinition file,I removed all excessive codes and only left the codes that deals specifically to the power bar and the black transparent bar nothing more nothing less then that.
Code:

                        <!--Player Vitals I only put the code to deal with the black transparent box on the vitals and power bar-->

 <PanelFile ID="ID_UISkin_AvatarPanel">
 <Element ID="AvatarPanel" X="0" Y="0" Width="284" Height="300">
 <Element ID="VitalsParent" X="0" Y="20" Width="300" Height="300">
 <Element ID="VitalsBg" X="96" Y="46" Width="164" Height="20"> </Element>
 <Element ID="VitalsField" X="96" Y="34" Width="168" Height="42">
 <Element ID="PowerField" X="0" Y="17" Width="164" Height="23">
 <Element ID="CurrentPowerMeter" X="0" Y="6" Width="164" Height="9">
  </Element> </Element> </Element> </Element> </Element>
 </PanelFile>

                        <!--Oponents vitals mainly to deal with black transparent box background and power bar-->

 <PanelFile ID="ID_UISkin_OpponentPanel">
 <Element ID="OpponentPanel" X="278" Y="1" Width="284" Height="300">
 <Element ID="VitalsParent" X="0" Y="20" Width="284" Height="300">
 <Element ID="OpponentDisplayParent" X="0" Y="0" Width="281" Height="300">
 <Element ID="Opponent_SelectionField" X="7" Y="0" Width="272" Height="120">
 <Element ID="OpponentsVitals_BG" X="10" Y="46" Width="164" Height="20"> </Element>
 <Element ID="OpponentVitalsField" X="10" Y="34" Width="168" Height="42">
 <Element ID="OpponentPowerField" X="0" Y="19" Width="164" Height="23"> 
  </Element> </Element> </Element> </Element> </Element> </Element>
 </PanelFile>


Uthboth 09-19-2010 04:46 PM

Well done, well done indeed. This has been a problem plaguing authors for a long time. It's nice to see it resolved in this way.

Brygard2007 09-19-2010 06:30 PM

Thanks.:)

Yeah I was annoyed about this,currently working on my vitals and thought might as well share it with all to use.


All times are GMT -5. The time now is 11:25 AM.

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