Home Forum Downloads My Favorites Register FAQ

Go Back   EQInterface Forums > Developer Discussion > XML modification help.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 10-13-2008, 07:55 PM   #76
Thong3320
A Snow Cougar
 
Join Date: Aug 2002
Posts: 45
Interface Author - Click to view interfaces
Default difficulty wrapping my mind around this

Having some trouble wrapping my head around these. I was able to copy and modify Enok's 5-color gauge code to fix my own target window. However, I don't know what the parts are and how they work.


<Gauge item="PW_Gauge1A"> ----what is this and how does it behave?
<Size>
<CX>8000</CX>
<CY>10</CY>
</Size>

<Screen item="PW_Gauge1A_X"> ---- I assume this is the container.

<Gauge item="PW_Gauge1B"> ----what is this and how does it behave?
<Size>
<CX>80</CX>
<CY>10</CY>
</Size>

TIA. thong3320
Thong3320 is offline   Reply With Quote
Old 10-13-2008, 11:38 PM   #77
Halelen
Lord Doljonijiarnimorinar
 
Join Date: Jan 2003
Server: Povar
Posts: 1,047
Interface Author - Click to view interfaces
Default

<Gauge item="PW_Gauge1A"> this is the cover part that covers the rest of the gauge
<Size>
<CX>8000</CX>
<CY>10</CY>
</Size>

<Screen item="PW_Gauge1A_X"> this is the container that cuts the above gauge to the correct size

<Gauge item="PW_Gauge1B"> ---this is the actual part of the gauge that moves
<Size>
<CX>80</CX>
<CY>10</CY>
</Size>
Halelen is offline   Reply With Quote
Old 10-14-2008, 10:33 PM   #78
Thong3320
A Snow Cougar
 
Join Date: Aug 2002
Posts: 45
Interface Author - Click to view interfaces
Default

Thanks...still having trouble getting my overlay to work. I've attached my files, if you could take a look at them.

Trying to get red from 0-20 (ok), yellow from 20-50 and green from 50-100.
gauge is 250x15 and uses custom gauge fill and background (in zip)
thanks in advance

thong3320
Attached Files
File Type: zip thong3320target.zip (16.8 KB, 2 views)
Thong3320 is offline   Reply With Quote
Old 10-14-2008, 10:42 PM   #79
Halelen
Lord Doljonijiarnimorinar
 
Join Date: Jan 2003
Server: Povar
Posts: 1,047
Interface Author - Click to view interfaces
Default

Quote:
Originally Posted by Thong3320
Thanks...still having trouble getting my overlay to work. I've attached my files, if you could take a look at them.

Trying to get red from 0-20 (ok), yellow from 20-50 and green from 50-100.
gauge is 250x15 and uses custom gauge fill and background (in zip)
thanks in advance

thong3320


ok are you sure your math is correct ...looks like ya just used the math from the ones on board and that is for a bar that is 100 pixels...you need to redo your percentages for your 250 bar.
Halelen is offline   Reply With Quote
Old 10-14-2008, 10:51 PM   #80
Halelen
Lord Doljonijiarnimorinar
 
Join Date: Jan 2003
Server: Povar
Posts: 1,047
Interface Author - Click to view interfaces
Default

Ok sorry its late I see what ya mean all is good except green overlay isnt working correctly....its late if ya dont have it fixed tonight ill take a better look at it tomorrow nm i did it tonight. ok man i was right your math is off for 4a your size needs to be 5000 and -5000 offset

<Gauge item = "Target_HP_Gauge4A">
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>2000</CX><---------change this to 5000
<CY>8</CY>
</Size>
<GaugeOffsetX>-8000</GaugeOffsetX><------change this to -5000
<GaugeOffsetY>0</GaugeOffsetY>
<Text></Text>
<TextOffsetY>8000</TextOffsetY>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<FillTint>
<R>0</R>
<G>240</G>
<B>0</B>
</FillTint>
<LinesFillTint>
<R>0</R>
<G>0</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>6</EQType>
<GaugeDrawTemplate>
<Fill>A_GaugeFill4_TW</Fill>
</GaugeDrawTemplate>
</Gauge>
Hal

Last edited by Halelen : 10-14-2008 at 11:20 PM.
Halelen is offline   Reply With Quote
Old 10-15-2008, 12:21 AM   #81
Thong3320
A Snow Cougar
 
Join Date: Aug 2002
Posts: 45
Interface Author - Click to view interfaces
Default

thought I made these changes before and it didn't work

<Ui2DAnimation item="TW_GaugeFill4">
<Cycle>true</Cycle>
<Frames>
<Texture>ovalbar.tga</Texture>
<Location>
<X>-12500</X> --------changed from -5000
<Y>15</Y>
</Location>
<Size>
<CX>25000</CX> ----------changed from 10000
<CY>15</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>

At 51% (which should be all green) I was getting green from 0 to 40%, yellow from 41-50% and one pixel of green and the end of the gauge. weird.

edit: got it figured it out....I was using 10000 (100x) for the texture...changed it to 25000 to match my 250pixel gauge....duh!!! Also changed the fill1.

Last edited by Thong3320 : 10-15-2008 at 12:38 AM. Reason: figured it out
Thong3320 is offline   Reply With Quote
Old 10-15-2008, 10:39 AM   #82
Halelen
Lord Doljonijiarnimorinar
 
Join Date: Jan 2003
Server: Povar
Posts: 1,047
Interface Author - Click to view interfaces
Default

yeah I didnt try it after I changed the gauge offset but told ya it was a math deal..once ya get the graphics good its just simple math adjustments to get it perfect...looks good now.



Hal
Halelen is offline   Reply With Quote
Old 10-22-2008, 04:28 AM   #83
Shadoh
A Ghoul
 
Join Date: Nov 2002
Posts: 10
Default

Could I get a copy of a working group window? Im trying to get my group window working again based off of the player window posted above and its a no go.

Im on the test server but I doubt that is whats holding me back. I had full color change HP bars before a couple patches ago.

Thank

Edit: Oh, the player window posted above will not work either.

Last edited by Shadoh : 10-22-2008 at 04:37 AM.
Shadoh is offline   Reply With Quote
Old 10-22-2008, 09:35 AM   #84
myxiplx
A Weathered Clockwork
 
Join Date: Aug 2006
Posts: 313
Interface Author - Click to view interfaces
Default

Mine's being uploaded right now, so if you wanted to grab the code out of it you should be able to download it as soon as it's approved on the site. It looks like this:
http://i154.photobucket.com/albums/...groupwindow.jpg

Each player's gauges are in a self contained screen so it would be really easy to change the layout, or copy the gauges to your own UI.
myxiplx is offline   Reply With Quote
Old 10-22-2008, 02:04 PM   #85
Shadoh
A Ghoul
 
Join Date: Nov 2002
Posts: 10
Default

That would be great thanks. I have 5 colors in mine but it shouldnt be to hard as long as I can see some working code.

Where will I look for that and how long before its on the site?

Thanks
Shadoh is offline   Reply With Quote
Old 10-22-2008, 02:13 PM   #86
myxiplx
A Weathered Clockwork
 
Join Date: Aug 2006
Posts: 313
Interface Author - Click to view interfaces
Default

It's been accepted now, you can find it here:
http://www.eqinterface.com/download...nfo.php?id=5745
myxiplx is offline   Reply With Quote
Old 10-26-2008, 05:21 PM   #87
Shadoh
A Ghoul
 
Join Date: Nov 2002
Posts: 10
Default

Maybe its something on the test server. Your window loads ok but the color change isnt working correctly. It starts out orange and turns red for like the last 20%.
Shadoh is offline   Reply With Quote
Old 10-27-2008, 03:57 AM   #88
myxiplx
A Weathered Clockwork
 
Join Date: Aug 2006
Posts: 313
Interface Author - Click to view interfaces
Default

Hmm, works ok on live. I might be able to have a look at test in a couple of days to see if I can work out what's wrong.

Does anybody know if there are any more changes being planned to the gauges that might be causing this?
myxiplx is offline   Reply With Quote
Old 12-14-2008, 12:18 AM   #89
justborn
A Gray Wolf
 
Join Date: Feb 2007
Posts: 6
Default Lost and confused

Was wondering if it was at all posible to get a new write up on the pocess of this color changing. I was in the process of working this out to make sure that i understood what was happening...and i was almost sure that i did. But seeing how as things have changed up i can't seem to work this out without knowing what has to do with what. I feel that i understand the Ui2DAnimation part of things. Just lost on the gauges. The above file is not helping much.

Last edited by justborn : 12-14-2008 at 01:01 AM.
justborn is offline   Reply With Quote
Old 12-14-2008, 04:22 AM   #90
myxiplx
A Weathered Clockwork
 
Join Date: Aug 2006
Posts: 313
Interface Author - Click to view interfaces
Default

It's hard to explain without pictures, but as I haven't the time to create a full write up right now, this will have to do.

The first step is to split your gauge into as many pieces as you want colour changes. In my group window I have three colours, so I have one red gauge that covers 0-30%, an orange one for 31-70%, and a green one for 71-100%.

What I do is this:
- Create your gauge, get it in the right place and at the right size.
- Now create two more identical copies of it, and set their colours.

Now you need to 'resize' the gauges so they only last for their appropriate sections. To do this you need to place the gauges in a screen item, and hide the bits you don't want.

So for the 0-30% gauges:
- Create a screen item with the same location as your gauge, but only 30% of the width. Put your first gauge in here.

For the 31-70% gauge:
- Create a screen item that starts where the previous one ended. Size it to 40% of the width of your gauge.
- Now, put your second gauge in here, but bear in mind that this is going to push the gauge to the right. To make it line up properly, you need to move the gauge left.
ie: If your screen piece has <X>45</X>, the gauge needs <X>-45</X>

And repeat the for the 71-100% gauge.

You should now have what looks like a single gauge made up of three colours. Get this working and I'll explain the next part.
myxiplx is offline   Reply With Quote
Reply




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 02:18 PM.


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