It is currently April 20th, 2024, 4:51 am

What am I doing wrong?

Share and get help with Plugins and Addons
endevor100
Posts: 11
Joined: August 22nd, 2010, 3:39 am

Re: What am I doing wrong?

Post by endevor100 »

One last question, is there an easy way to make the text wrap around to the next line if it's bigger than the defined length of the skin?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: What am I doing wrong?

Post by jsmorley »

endevor100 wrote:One last question, is there an easy way to make the text wrap around to the next line if it's bigger than the defined length of the skin?
Yes.

[MeterQuote]
Meter=String
MeasureName=MeasureQuote
FontFace=Trebuchet MS
FontSize=14
X=0
Y=0
W=200
H=40
ClipString=1

What the combination of a defined width (W=) a height (H=) big enough to hold two lines of text, and ClipString=1 will do is cause the string to "wrap" more or less (it will break on the nearest whitespace) at the 200 pixel point and put the rest on the next line. You may have to play with H= a bit depending on the FontFace and FontSize, to be sure it is high enough to hold two lines without cutting off the bottoms or something, and not so high it overlaps meters causing problems with mouse actions.
endevor100
Posts: 11
Joined: August 22nd, 2010, 3:39 am

Re: What am I doing wrong?

Post by endevor100 »

Thanks you I should be pretty well set now