So yesterday I decided I was too lazy to switch from workspace to workspace in order to skip a track while listening to Spotify at work. Wound up using the NowPlaying plugin in conjunction with the Spotify plugin written by someone here on the forums (SORRY, forgot who )
Everything works as I'd like it to, save for the artist / track display. See this example:
The long and short of it is that I would like for the track area to expand to fit longer track names. While the code that I have written seems to work, when the string is longer than the previously encountered "long track," the string clips. Refreshing the skin redraws the text, properly wrapping everything to a new line, so this leads me to believe my update is incorrect. That being said, I'm not certain what I would need to modify in order to achieve what I'm looking for. Would adding an Update to the track meter fix this? Seems to be related to redrawing and all...
I have included the relevant segments of code (IMO). At some point, the artist area will behave similarly, but for now, it appends ellipses at the end of the text. Quick, dirty, simple -- 'nuff said ;D
Code: Select all
[MeasureTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Update=#whatever#
Type=TrackName
Substitute="":"Please come back later!"
[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Update=#whatever#
Type=ArtistName
Substitute="":"Spotify is closed"
...
...
...
[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=80
Y=40r
W=150
H=18
FontFace=#fontName#
FontColor=#fontColor#
FontSize=12
StringCase=UPPER
StringAlign=Center
ClipString=1
AntiAlias=1
Text="%1"
SolidColor=0,0,0,1
ToolTipText="Show Player"
LeftMouseUpAction=#showSpotify#
[MeterTrack]
Meter=String
MeasureName=MeasureTrack
X=80
Y=20r
W=100
FontFace=#fontName#
FontColor=#fontColor#
FontSize=12
StringAlign=Center
Text="%1"
SolidColor=0,0,0,1
ToolTipText="Show Player"
LeftMouseUpAction=#showSpotify#
ClipString=2
Thanks again!