Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Lifting Hovertext (lowering prefered)

Dragger Lok
(loading ...)
Join date: 10 Sep 2006
Posts: 228
05-03-2007 15:24
want to lift the hovertext (lowering it would be prefered) and know "\n" lifts it but can't get all three lines lifted- either lift a couple of lines or get a syntax error...




CODE

// Build and set hover text

string hoverText = "Item " + (string)(currentItem + 1) + " of "
+ (string)(itemCount +
1) + "\n" + llList2String(items, currentItem) + "\n \n$" + (string)
llList2String(prices, currentItem);
llSetText(hoverText, textColor, 1.0);


Shishiou Hian
Registered User
Join date: 2 May 2007
Posts: 7
05-04-2007 01:18
did you try:

CODE

// Build and set hover text

string hoverText = "Item " + (string)(currentItem + 1) + " of "
+ (string)(itemCount +
1) + "\n" + llList2String(items, currentItem) + "\n"+"\n$" + (string)
llList2String(prices, currentItem);
llSetText(hoverText, textColor, 1.0);


in this way it should work i think, to lower the text it cant be done in the normal way, to position a text lower than the normal text starting point you have to use another prim and using a linkedmessage to update the text over it, so you can position the text where you need it
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
05-04-2007 12:58
To decrease the height of hover text, decrease the Z scale of the prim. Regardless of the prim's orientation, the Z scale determines how much vertical offset is applied to the text above the prim's pivot point.