name colors for items

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

name colors for items

Post by dragon slayer »

Would like maybe see extension of a dfn tag.

NAME=my cool cap 0x53 << the color
or
NAMECOLOUR=0X53 << This would set the color of the name of the item/npc

and a js version of it.

Code: Select all

iUsed.name = "my cool cap", 0x53;
or

Code: Select all

iUsed.nameColour = 0x53;
Humility
UOX3 Neophyte
Posts: 28
Joined: Mon Nov 21, 2016 7:51 am
Has thanked: 4 times
Been thanked: 5 times

Post by Humility »

Found out yesterday you can just put the font info into the name of the item to get colored item names in tool tips.
<BASEFONT COLOR=#00CFFF>My blue magic Item</BASEFONT>
Although that makes it a little more tedious for items you need to concatenate the name because you'll have to strip the font info before doing so but just searching the string for > and THEN < and keeping what's between them should work for that.
Post Reply