Various UI Questions

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

EQWeasel
decaying skeleton
decaying skeleton
Posts: 6
Joined: Thu Dec 11, 2003 8:37 am

Various UI Questions

Post by EQWeasel » Thu Dec 11, 2003 9:49 am

Just a few quick questions for you MQ2 experts.

1. X/Y/Z coordinates are displayed normally xxx.xx (i.e. <TooltipReference>$char(x,y,z)</TooltipReference>). Is there any simple way to just display the coordinates in integer form, or a way to trim the decimal and all numbers to the right of it? Would like to do that to player speed also. After looking at some of the other UIs, it seems that this must be possible as some targetting xml files display distance to target in integer form.

2. <TooltipReference>$char(buff,1,mod)</TooltipReference> is displaying the mod for bard songs is what I understand. But what is the number actually mean? Chorus of Mar was showing a 2.4 I think, 2.4 what? Also does that "mod" have any value for spells or just bard songs?

3. Buff labels. Yes it seems some people dont want the text label, but I have gotten used to it. Any way you can trim or have custom text labels for buff text? So instead of seeing

"Kodiaks Endless Intellect 145:23 1"
"Blessing of Replenishment 23:22 2"

it can show

"KEI 145:23 1"
"Group Regen 23:22 2"

or at least abbreviations for the longer buffs

"Kodiaks Endless Int. 145:23 1"
"Blessing of Replensh. 23:22 2"

Thanks,
EQWeasel

jumpyfrog
Macro Author
Macro Author
Posts: 100
Joined: Thu Dec 11, 2003 5:42 am

hmmm

Post by jumpyfrog » Thu Dec 11, 2003 10:42 am

1.) not sure if XML supports this but stand truncation?

2.) I dont even use a bard window but from the way you described it it sounds like time remaining on that song? Is that possible? (that would be a 15 tickish song, is that possible?)

3.) Yea, im sure you could but you would need some "if" clauses in your XML to determine if the buff is one you want to shorten and if so what shortened name do you wish to have.....but that wouldnt be a macroquest thing if you did it that way. You could just do that in the XML.

Im not sure if all thats right but its some ideas to go on. If someone has better answers or can correct me it would help me learn a few things too :)
-Mark

EQWeasel
decaying skeleton
decaying skeleton
Posts: 6
Joined: Thu Dec 11, 2003 8:37 am

Post by EQWeasel » Thu Dec 11, 2003 10:58 am

Jumpyfrog:

Thanks for the thoughts.

As for #2, here is the code difference. Lax's code for buff and shortduration buff xml has both commands(mod and duration) for all 15 buffs and 6 bard songs. I removed the code for the duration from the bard songs, and the mod command for the normal buffs, but wanted to know if that "mod" actually means anything important.

This maybe something to do with the instrument bonus or skill? Chorus of Mar with a static 2.4 value for "mod", never went lower or counted down, so it was not bard song duration.

Buff Duration
<TooltipReference>$char(buff,1,durationsecs)</TooltipReference>

Buff Mod (for songs)
<TooltipReference>$char(buff,1,mod)</TooltipReference>

EQWeasel

jumpyfrog
Macro Author
Macro Author
Posts: 100
Joined: Thu Dec 11, 2003 5:42 am

dont know

Post by jumpyfrog » Thu Dec 11, 2003 11:21 am

dont know if this is the answer to your question but I found this...

/*0x02*/ CHAR Modifier; // bard song modifier, divide by 10 to get 2.8 etc

which leads me to believe it is a bard song modifier indeed. Ive done no testing or anything though to verify this so maybe someone who wrote the code can slap a reply on this post to clerify
-Mark

Doodman
a ghoul
a ghoul
Posts: 124
Joined: Thu Jan 02, 2003 12:07 pm

Post by Doodman » Fri Dec 12, 2003 11:05 am

I'm assume the song mod would be the mod of the instrument the bard used when playing that song.

Most parts of bard songs are affected by the mod on the instrument. Slow, haste and mana regen are examples of some that are *NOT* affected.

So, If saw Chorous of Replenishment 2.4 then I'm assuming the bard that was playing that had a stringed instrument that had a 2.4 mod on it.
Doodman
EQEmu Developer
www.eqemulator.net

wallace
decaying skeleton
decaying skeleton
Posts: 1
Joined: Wed Dec 31, 2003 3:06 am

Post by wallace » Wed Dec 31, 2003 3:31 am

To abreviate buffs:

"Kodiaks Endless Intellect 145:23 1"
"Blessing of Replenishment 23:22 2"

to show up like

"Kodiaks Endless Int. 145:23 1"
"Blessing of Replensh. 23:22 2"

try using $left(#,"string")
e.g.
<TooltipReference>$left(20,"$char(buff,1)")</TooltipReference>
I have tested and this works.

Also to truncate the decimal part of a number use the $int(value) command:
<TooltipReference>$int($target(x))</TooltipReference>
would yield xxx instead of xxx.xx
Or just check the readme file for many more uselful commands...
-Dave

Teh_ish
UI Guru
Posts: 168
Joined: Wed Nov 05, 2003 12:18 am

Post by Teh_ish » Wed Dec 31, 2003 2:09 pm

Well there's actually no need to add "$left" or anything... Just crimp down on the size of the box so the rest of it isn't visible. If possible, I try and avoid adding $ stuff just as a matter of reducing possible lag :D

For X,Y,Z... Try.. $int($char(x)), $int($char(y)), $int($char(z)).
OMGWTFBBQ