View Single Post
  #1  
Unread 09-19-2010, 02:06 PM
Brygard2007's Avatar
Brygard2007 Brygard2007 is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2007
Location: http://www.youtube.com/user/Brygard2009
Posts: 183
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>
Reply With Quote