It is currently May 12th, 2024, 2:40 pm

need help with rotating things !

Get help with creating, editing & fixing problems with skins
zarrath
Posts: 7
Joined: October 3rd, 2010, 7:08 am

need help with rotating things !

Post by zarrath »

hi everybody, i need some help with modifying skin to create my new skin. this skin shows the winamp nowplaying tiles and etc. how ever i wanna modify this to add my new skin. i just wanna rotate the all texts and bars on the skin about 40 degrees. i can rotate the texts by adding Angle=40 parameter however when i do this just some of the text can be seen on the screen like it was cropped.

for example when i add angle=40 parameter to the title, the title is turn by 40 degrees but only the some of the text is shown (looks like it is cropped by upper and lower parts with a rectangular box)

here is the code:
[Rainmeter]
Update=100
DynamicWindowSize=1
backgroundmode=1

[Author]
Measure=Time
Format="rainskin"
Disabled=1

[Website]
Measure=Time
Format="http://rainskin.rakudesk.com"
Disabled=1

[Variables]
f.color=000000EE
c.color=00000099
b.color=000000FF

FontName=MS Sans Serif
FontSize=10
AntiAlias=1

;---------------------

[mWinamp]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
Substitute="[Paused]":""," - Winamp":"","[Stopped]":""

[mWinampDuration]
Measure=Calc
Formula=(mWinampCurr<=0)?0:(mWinampCurr/(mWinampFull*1000+1))

[mWinampCurr]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[mWinampFull]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 105

[mWinampCurrMin]
Measure=Calc
Formula=((mWinampCurr / 1000) - ((mWinampCurr / 1000) % 60)) /60

[mWinampCurrSec]
Measure=Calc
Formula=((mWinampCurr / 1000) % 60)/10
Substitute="-":"",".":"","60":"00"

[mWinampFullMin]
Measure=Calc
Formula=(mWinampFull - (mWinampFull % 60)) /60

[mWinampFullSec]
Measure=Calc
Formula=mWinampFull % 60

[mWinampFullZero]
Measure=Calc
Formula=(mWinampFull % 60) < 10 ? 0 : 1
Substitute="1":""

[WAPlaying]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualAction=!Execute [!RainmeterHideMeter MetPlay][!RainmeterRedraw] [!RainmeterShowMeter MetPause]
IfEqualValue=1

[WAPlayingP]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualAction=!Execute [!RainmeterHideMeter MetPause][!RainmeterShowMeter MetPlay]
IfEqualValue=3

[WAPlayingS]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualAction=!Execute [!RainmeterHideMeter MetPause][!RainmeterShowMeter MetPlay]
IfEqualValue=0

;-------------------

[title]
Meter=STRING
MeasureName=mWinamp
X=215
Y=0
StringStyle=NORMAL
StringAlign=center
FontColor=#f.color#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
solidcolor=00000001

[separate]
Meter=STRING
X=0r
Y=25r
StringAlign=center
FontColor=#f.color#
FontSize=#FontSize#
FontFace=Wingdings
Text="v"
AntiAlias=1
solidcolor=00000001

[TimeCurr]
Meter=STRING
MeasureName=mWinampCurrSec
X=-7r
Y=0r
FontFace=#FontName#
FontColor=#f.color#
FontSize=#FontSize#
StringAlign=right
AntiAlias=1
NumOfDecimals=1
solidcolor=00000001

[TimeCurr2]
Meter=STRING
MeasureName=mWinampCurrMin
X=-16r
Y=0r
StringAlign=right
FontColor=#f.color#
FontSize=#FontSize#
FontFace=#FontName#
Text="%1:"
AntiAlias=1
solidcolor=00000001

[TimeCurr3]
Meter=STRING
MeasureName=mWinampFullMin
MeasureName2=mWinampFullSec
MeasureName3=mWinampFullZero
X=30r
Y=0r
StringAlign=left
FontColor=#f.color#
FontSize=#FontSize#
FontFace=#FontName#
Text="%1:%3%2"
AntiAlias=1
solidcolor=00000001

[Cbar]
MeasureName=mWinampDuration
Meter=BAR
X=89
Y=24r
W=250
H=1

BarColor=#b.color#

[Tbar]
Meter=IMAGE
X=0r
Y=0r
W=250
H=1
SolidColor=00000055

;-------------------

[MetPlay]
Meter=STRING
X=125r
Y=7r
FontColor=#c.color#
StringStyle=BOLD
FontSize=14
StringAlign=center
FontFace=Webdings
AntiAlias=1
Text="4"
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWinamp SendMessage 273 40045 0"]
solidcolor=00000001


[MetPause]
Meter=STRING
X=0r
Y=0r
FontColor=#c.color#
StringStyle=Bold
FontSize=14
StringAlign=center
FontFace=Webdings
AntiAlias=1
Text=";"
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWinamp SendMessage 273 40046 0"]
solidcolor=00000001

[MetPrev]
Meter=STRING
X=-12r
Y=0r
FontColor=#c.color#
FontSize=14
StringStyle=BOLD
StringAlign=right
FontFace=Webdings
Text="7"
AntiAlias=1
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWinamp SendMessage 273 40044 0"]
solidcolor=00000001

[MetNext]
Meter=STRING
X=25r
Y=0r
FontColor=#c.color#
StringStyle=BOLD
FontSize=14
StringAlign=left
FontFace=Webdings
AntiAlias=1
Text="8"
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWinamp SendMessage 273 40048 0"]
solidcolor=00000001
User avatar
jsmorley
Developer
Posts: 22632
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: need help with rotating things !

Post by jsmorley »

zarrath
Posts: 7
Joined: October 3rd, 2010, 7:08 am

Re: need help with rotating things !

Post by zarrath »

my problem is the if the text is longer only the some part of the text is shown on the screen like it was cropped i cannot see the whole text
User avatar
jsmorley
Developer
Posts: 22632
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: need help with rotating things !

Post by jsmorley »

zarrath wrote:my problem is the if the text is longer only the some part of the text is shown on the screen like it was cropped i cannot see the whole text
First, you should put DynamicWindowSize=1 in the [Rainmeter] section of the skin. Then, you need to read that post I made carefully. You probably need to set the W and H and X and Y of your meter in such a way that it is big enough to hold the rotated text and position it so it doesn't run out of the meter when rotated. It is not easy to wrap your head around, and to be honest I hate how it works, but the size of the meter is defined by Rainmeter "before" the text is rotated, so unless you manually set it, and account for the change in position, you can get very ugly results.