It is currently May 21st, 2024, 1:13 pm

[SOLVED] Right Justified Cutoff Text

Get help with creating, editing & fixing problems with skins
ftfylol
Posts: 3
Joined: September 8th, 2012, 11:13 pm

[SOLVED] Right Justified Cutoff Text

Post by ftfylol »

Im attempting to edit the Aria skin to make it right justified. This is my first time doing Rainmeter editing.

I can't seem to get it to stop cutting off the text in my Track field. I read somewhere about using a marquee but I would rather have the Track field use as much space as it needs instead. I added the "DynamicWindowSize=1" option but that didn't fix my problem.

Here's a picture to show what I'm talking about. It should read "Only A Few Things Feat Zoe Johnston"

Image

Here is my config file. There are lines commented out, all things I didn't want from the original

Code: Select all

[Rainmeter]
DynamicWindowSize=1
Update=1000
Author=onestopshopper2
AppVersion=1.0

[Metadata]
Name=Aria
Version=1.0.0

[O]
Meter=IMAGE
X=-50
Y=-15
ImageName=Background.png

[Shadow]
Meter=IMAGE
ImageName=Shadow.png
X=313
Y=0

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=CAD
PlayerType=TITLE
PlayerPath=
DisableLeadingZero=0
Return value is 1 on error
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter ErrorMessage][!RainmeterRedraw]

[mArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
Substitute="":""

[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=COVER
Substitute="":"Default.png"

[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=POSITION

[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=DURATION

[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS

[mStateButton]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
Substitute="0":"Play.png","1":"Pause.png","2":"Play.png"

[Cover]
Meter=IMAGE
MeasureName=mCover
X=320
Y=8
W=126
H=126
SolidColor=FFFFFF10

; =======================================
; INFORMATION

[Track]
Meter=STRING
MeasureName=mPlayer
X=310
Y=10
W=300
H=40
StringAlign=RightTop
FontFace=Calibri
FontColor=ffffff90
FontSize=20
AntiAlias=1
;ClipString=1
;Text="%1"
;StringEffect=SHADOW
FontEffectColor=0,0,0,150

[Artist]
Meter=STRING
MeasureName=mArtist
X=310
Y=40
W=300
H=40
StringAlign=RightTop
FontFace=Calibri
FontColor=ffffff90
FontSize=20
AntiAlias=1
;ClipString=1
Text="%1"
;StringEffect=SHADOW
FontEffectColor=0,0,0,150

[Progress]
Meter=STRING
MeasureName=mProgress
X=100
Y=100
W=50
H=16
StringAlign=LEFT
FontFace=Trebuchet MS
FontColor=FFFFFF00
AntiAlias=1
ClipString=1


[ProgressBar]
Meter=BAR
MeasureName=mProgress
BarImage=Bar.png
X=168
Y=82
BarOrientation=HORIZONTAL



; =======================================
; TRACK ACTIONS

[Previous]
Meter=BUTTON
ButtonImage=Previous.png
X=239
Y=97
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Previous"]

[Play]
Meter=BUTTON
ButtonImage=[mStateButton]
X=263
Y=97
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer PlayPause"]
DynamicVariables=1

[Next]
Meter=BUTTON
ButtonImage=Next.png
X=283
Y=97
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mPlayer Next"]


;[Glare]
;Meter=IMAGE
;ImageName=Glare.png
;X=7
;Y=8

Last edited by ftfylol on September 9th, 2012, 12:08 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22634
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Right Justified Cutoff Text

Post by jsmorley »

You just need to increase the W= on your string meters to be wide enough to hold the strings.
ftfylol
Posts: 3
Joined: September 8th, 2012, 11:13 pm

Re: Right Justified Cutoff Text

Post by ftfylol »

jsmorley wrote:You just need to increase the W= on your string meters to be wide enough to hold the strings.
Thank you for the insanely quick reply. I increased the number from 300 to 800 and there was no change :\

Edit: Tried numbers as high as 5000 and still no change
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Right Justified Cutoff Text

Post by smurfier »

You will also need to increase the X values of all your meters to match the new width.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
ftfylol
Posts: 3
Joined: September 8th, 2012, 11:13 pm

Re: Right Justified Cutoff Text

Post by ftfylol »

smurfier wrote:You will also need to increase the X values of all your meters to match the new width.
Thanks for the now obvious advice. What got me was I also needed to change the X values of the cover art, progress bar, and media controls.

Now it takes even my longest track titles :)

Do I need to mark this thread as solved or anything like that?

Edit: Marking it as solved anyway