View Single Post
Old 07-14-2004, 12:02 PM   #2
Remelio
Featured Designer
 
Join Date: Aug 2002
Server: Tarew Marr
Posts: 173
Interface Author - Click to view interfaces
Send a message via ICQ to Remelio Send a message via AIM to Remelio
Default Quick How-to on adding Mana numbers

Figured I'd add a quick message telling everyone who wants to how to add mana numbers to your UI:

First off find this bit (most likely in your player window, depending on the UI mod you use)

Code:
<Gauge item = "Player_Mana"> <ScreenID>PlayerMana</ScreenID> <!--<Font>3</Font>--> <RelativePosition>true</RelativePosition> <Location> <X>3</X> <Y>46</Y> </Location> <Size> <CX>108</CX> <CY>8</CY> </Size> <GaugeOffsetY>0</GaugeOffsetY> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <!--<TooltipReference/>--> <FillTint> <R>0</R> <G>0</G> <B>240</B> </FillTint> <LinesFillTint> <R>0</R> <G>220</G> <B>220</B> </LinesFillTint> <DrawLinesFill>false</DrawLinesFill> <EQType>2</EQType> <GaugeDrawTemplate> <Background>A_GaugeBackground</Background> <Fill>A_GaugeFill</Fill> <Lines>A_GaugeLines</Lines> <LinesFill>A_GaugeLinesFill</LinesFill> <EndCapLeft>A_GaugeEndCapLeft</EndCapLeft> <EndCapRight>A_GaugeEndCapRight</EndCapRight> </GaugeDrawTemplate> </Gauge>


The important bit from that is this:
Code:
<Location> <X>3</X> <Y>46</Y> </Location>

Keep those numbers handy cause we need to use them again here in a moment.

Now add in this:
Code:
<Label item ="PW_ManaNumbers"> <ScreenID>ManaNumberLabel</ScreenID> <EQType>128</EQType> <Font>2</Font> <RelativePosition>true</RelativePosition> <Location> <X>3</X> <Y>44</Y> </Location> <Size> <CX>108</CX> <CY>14</CY> </Size> <Text> </Text> <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label>

Ok now look at the same part on this one:
Code:
<Location> <X>3</X> <Y>44</Y> </Location>

Make sure the X value MATCHES the X value of your last part, and the Y value is TWO LESS than the Y value of your last part.

Now be sure to add this to the bottom where the rest of the Pieces are:
Code:
<Pieces>PW_ManaNumbers</Pieces>


This will display your current/max mana OVER your mana bar - with default colors it looks fine, but on some mods it might not, in which case you need to wait for a fix from your UI mod creator.

You can use the same method to display your endurance numbers, simply change the EQTYPES bit from the second set of code from 128 to 129, however the white text looks horrible over the yellow endurance bar, and I believe type 129 ignores the "textcolor" bits... you'd have to change the color of the endurance bar itself by using its "filltint" colors.

Hope this helps without being too technical Enjoy!
__________________
Remelio is offline