EQInterface Forums

EQInterface Forums (http://www.eqinterface.com/forums/index.php)
-   General authoring help / discussion (http://www.eqinterface.com/forums/forumdisplay.php?f=12)
-   -   Question about Percent for HP-Bars (http://www.eqinterface.com/forums/showthread.php?t=13612)

Timrum 04-29-2004 04:24 PM

Question about Percent for HP-Bars
 
First Hi all :)

i got this gui-mod (Player window)

http://www.eqinterface.com/sdownloa...e.php?s=&id=986

its from fang and i real like it.

i only want to chance two things

- i use it for my warrior, so i dont need the mana bar and i want the %-display for my hp bar.

- i want the hp-bar as big as the mana bar. Mana Bar is always at 0 so there is enough place.

i post the xml -maybe anyone can give me some hints ;)

Thx a lot for your help

greetings
Timrum


edit: -> i got the hp bar as big as the mana bar so this problem solved :)


-------
Code:
<?xml version="1.0" ?> - <XML ID="EQInterfaceDefinitionLanguage"> <Schema xmlns="EverQuestData" xmlns:dt="EverQuestDataTypes" /> - <TextureInfo item="AttackIndicator.tga"> - <Size> <CX>128</CX> <CY>32</CY> </Size> </TextureInfo> - <Ui2DAnimation item="A_AttackIndicator"> <Cycle>false</Cycle> - <Frames> <Texture>AttackIndicator.tga</Texture> - <Location> <X>6</X> <Y>2</Y> </Location> - <Size> <CX>118</CX> <CY>69</CY> </Size> </Frames> </Ui2DAnimation> - <StaticAnimation item="A_AttackIndicatorAnim"> <ScreenID>A_AttackIndicatorAnim</ScreenID> <Animation>A_AttackIndicator</Animation> </StaticAnimation> - <Label item="LabelHP"> <ScreenID>HPLabel</ScreenID> <Font>2</Font> <RelativePosition>true</RelativePosition> - <Location> <X>5</X> <Y>-1</Y> </Location> - <Size> <CX>72</CX> <CY>14</CY> </Size> <Text>HP</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> </Label> - <Label item="HPNumberCur"> <Font>2</Font> <ScreenID>HPNumberLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>25</X> <Y>-1</Y> </Location> - <Size> <CX>25</CX> <CY>14</CY> </Size> <Text>10000</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <EQType>17</EQType> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> </Label> - <Label item="HPSlash"> <Font>2</Font> <ScreenID>HPSlash</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>54</X> <Y>-1</Y> </Location> - <Size> <CX>10</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>false</AlignRight> <AlignLeft>true</AlignLeft> </Label> - <Label item="HPNumberMax"> <Font>2</Font> <ScreenID>HPNumberLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>61</X> <Y>-1</Y> </Location> - <Size> <CX>30</CX> <CY>14</CY> </Size> <Text>9999/9999</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <EQType>18</EQType> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> <AlignLeft>true</AlignLeft> </Label> - <Label item="L"> <Font>2</Font> <ScreenID>L</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>95</X> <Y>-1</Y> </Location> - <Size> <CX>10</CX> <CY>14</CY> </Size> <Text>L</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> <AlignLeft>true</AlignLeft> </Label> - <Label item="Player_Level"> <Font>2</Font> <ScreenID>LevelClassLabel</ScreenID> <EQType>2</EQType> - <!-- <Font>3</Font> --> <RelativePosition>true</RelativePosition> - <Location> <X>102</X> <Y>-1</Y> </Location> - <Size> <CX>20</CX> <CY>14</CY> </Size> <Text>65</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> </Label> - <Gauge item="Player_HP"> <ScreenID>PlayerHP</ScreenID> - <!-- <Font>3</Font> --> <RelativePosition>true</RelativePosition> - <Location> <X>3</X> <Y>15</Y> </Location> - <Size> <CX>108</CX> <CY>3</CY> </Size> <GaugeOffsetY>0</GaugeOffsetY> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> - <!-- <TooltipReference/> --> - <FillTint> <R>220</R> <G>0</G> <B>0</B> </FillTint> - <LinesFillTint> <R>0</R> <G>220</G> <B>0</B> </LinesFillTint> <DrawLinesFill>false</DrawLinesFill> <EQType>1</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> - <Gauge item="Player_Mana"> <ScreenID>PlayerMana</ScreenID> - <!-- <Font>3</Font> --> <RelativePosition>true</RelativePosition> - <Location> <X>3</X> <Y>21</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>true</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> - <Label item="Player_ManaPercent"> <Font>2</Font> <ScreenID>Player_ManaPercent</ScreenID> <EQType>20</EQType> <RelativePosition>true</RelativePosition> - <Location> <X>27</X> <Y>17</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>0</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Label item="Player_ManaPercentLabel"> <Font>2</Font> <RelativePosition>true</RelativePosition> - <Location> <X>37</X> <Y>17</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>%</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Gauge item="Player_Fatigue"> <ScreenID>PlayerFatigue</ScreenID> - <!-- <Font>3</Font> --> <RelativePosition>true</RelativePosition> - <Location> <X>3</X> <Y>30</Y> </Location> - <Size> <CX>108</CX> <CY>3</CY> </Size> <GaugeOffsetY>-3</GaugeOffsetY> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> - <!-- <TooltipReference/> --> - <FillTint> <R>240</R> <G>240</G> <B>0</B> </FillTint> - <LinesFillTint> <R>0</R> <G>220</G> <B>0</B> </LinesFillTint> <DrawLinesFill>false</DrawLinesFill> <EQType>3</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> - <Gauge item="Pet_HP"> <ScreenID>PetHP</ScreenID> - <!-- <Font>3</Font> --> - <TextColor> <R>0</R> <G>0</G> <B>0</B> </TextColor> <RelativePosition>true</RelativePosition> - <Location> <X>7</X> <Y>39</Y> </Location> - <Size> <CX>108</CX> <CY>2</CY> </Size> <TextOffsetY>-50</TextOffsetY> <GaugeOffsetY>-2</GaugeOffsetY> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> - <!-- <TooltipReference/> --> - <FillTint> <R>51</R> <G>192</G> <B>51</B> </FillTint> - <LinesFillTint> <R>0</R> <G>0</G> <B>0</B> </LinesFillTint> <DrawLinesFill>false</DrawLinesFill> <EQType>16</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> - <Label item="LabelAC"> <Font>2</Font> <ScreenID>ACLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>4</X> <Y>35</Y> </Location> - <Size> <CX>45</CX> <CY>14</CY> </Size> <Text>AC</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> </Label> - <Label item="PlayerAC"> <Font>2</Font> <ScreenID>ACNumberLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>6</X> <Y>35</Y> </Location> - <Size> <CX>45</CX> <CY>14</CY> </Size> <Text>0</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <EQType>22</EQType> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> </Label> - <Label item="LabelATK"> <Font>2</Font> <ScreenID>ATKLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>4</X> <Y>49</Y> </Location> - <Size> <CX>53</CX> <CY>14</CY> </Size> <Text>ATK</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> </Label> - <Label item="PlayerAtk"> <Font>2</Font> <ScreenID>ATKNumberLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>-2</X> <Y>49</Y> </Location> - <Size> <CX>53</CX> <CY>14</CY> </Size> <Text>0</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <EQType>23</EQType> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> </Label> - <Label item="Player_EXPLabel"> <Font>2</Font> <ScreenID>Player_EXPLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>56</X> <Y>35</Y> </Location> - <Size> <CX>72</CX> <CY>14</CY> </Size> <Text>XP</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> </Label> - <Label item="Player_EXPPercent"> <Font>2</Font> <ScreenID>Player_EXPPercent</ScreenID> <EQType>26</EQType> <RelativePosition>true</RelativePosition> - <Location> <X>53</X> <Y>35</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>0</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Label item="Player_EXPPercentLabel"> <Font>2</Font> <RelativePosition>true</RelativePosition> - <Location> <X>63</X> <Y>35</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>%</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Label item="Player_AAEXPLabel"> <Font>2</Font> <ScreenID>Player_AAEXPLabel</ScreenID> <RelativePosition>true</RelativePosition> - <Location> <X>56</X> <Y>49</Y> </Location> - <Size> <CX>72</CX> <CY>14</CY> </Size> <Text>AA</Text> - <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> <AlignLeft>true</AlignLeft> </Label> - <Label item="Player_AAAvailable"> <Font>2</Font> <ScreenID>Player_AAAvailable</ScreenID> <EQType>71</EQType> <RelativePosition>true</RelativePosition> - <Location> <X>79</X> <Y>49</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>0</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Label item="Player_AAPlus"> <Font>2</Font> <RelativePosition>true</RelativePosition> - <Location> <X>67</X> <Y>49</Y> </Location> - <Size> <CX>37</CX> <CY>14</CY> </Size> <Text>+</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Label item="Player_AAEXPPercent"> <Font>2</Font> <ScreenID>Player_AAEXPPercent</ScreenID> <EQType>27</EQType> <RelativePosition>true</RelativePosition> - <Location> <X>53</X> <Y>49</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>0</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Label item="Player_AAEXPPercentLabel"> <Font>2</Font> <RelativePosition>true</RelativePosition> - <Location> <X>63</X> <Y>49</Y> </Location> - <Size> <CX>35</CX> <CY>14</CY> </Size> <Text>%</Text> - <TextColor> <R>255</R> <G>255</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> <AlignLeft>false</AlignLeft> </Label> - <Screen item="PlayerWindow"> <Font>2</Font> - <!-- <ScreenID/> --> <RelativePosition>false</RelativePosition> - <Location> <X>516</X> <Y>0</Y> </Location> - <Size> <CX>124</CX> <CY>71</CY> </Size> <Text>Player</Text> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <TooltipReference>The Breath Meter</TooltipReference> <DrawTemplate>WDT_RoundedNoTitle</DrawTemplate> <Style_Titlebar>false</Style_Titlebar> <Style_Closebox>false</Style_Closebox> <Style_Minimizebox>false</Style_Minimizebox> <Style_Border>true</Style_Border> <Style_Sizable>false</Style_Sizable> <Pieces>Pet_HP</Pieces> <Pieces>LabelHP</Pieces> <Pieces>HPNumberCur</Pieces> <Pieces>HPSlash</Pieces> <Pieces>HPNumberMax</Pieces> <Pieces>Player_HP</Pieces> <Pieces>L</Pieces> <Pieces>Player_Level</Pieces> <Pieces>LabelAC</Pieces> <Pieces>PlayerAC</Pieces> <Pieces>LabelATK</Pieces> <Pieces>PlayerAtk</Pieces> <Pieces>Player_Mana</Pieces> <Pieces>Player_ManaPercent</Pieces> <Pieces>Player_ManaPercentLabel</Pieces> <Pieces>Player_Fatigue</Pieces> <Pieces>Player_EXPLabel</Pieces> <Pieces>Player_EXPPercent</Pieces> <Pieces>Player_EXPPercentLabel</Pieces> <Pieces>Player_AAAvailable</Pieces> - <!-- <Pieces>Player_AAPlus</Pieces> --> <Pieces>Player_AAEXPLabel</Pieces> <Pieces>Player_AAEXPPercent</Pieces> <Pieces>Player_AAEXPPercentLabel</Pieces> - <!-- <Pieces>A_AttackIndicatorAnim</Pieces> --> </Screen> </XML>

lordkylphor 05-04-2004 02:51 AM

Mmmmk...correct me if I'm wrong.

You've fixed the HP bar issue...but yer still wanting to add your HP percentage to it?

If that's the case, open up your UI in SIDL. Under your toolbox, click n drag a LABEL to the proper window you are putting it in, then click it once.

In the Text area, type 10000 as a placeholder. Next rename the label in both spots just below the text area. Use something like MY_HPpercent. Next go and do a preliminary resize...I usually use (X) 25 (Y) 12. Now change the EQType from 0 to 19 under the MISC section. You can now click on your new label on the left and drag it onto the center screen and put it anywhere ya want. Might be a good idea to resize it now..but only if ya want/need to.

Now drag a new label over to the screen same as before. Type in the text area a "%" because you'll want this after your numerical HP percentage. Rename the file to something else unique...maybe use MY_HPpercentsign. Resize this one too. Leave the EQType set to 0. Click n drag like before and position it behind your 10000 so it looks right. Once yer satisfied..save it and yer good to go.

Think that's it in a nutshell...hope it helps. :)


All times are GMT -5. The time now is 11:00 PM.

vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.