It is currently May 1st, 2024, 2:35 am

Question about Clock Skin with Backgrond Changes

Get help with creating, editing & fixing problems with skins
iambc
Posts: 3
Joined: August 31st, 2012, 1:46 pm

Question about Clock Skin with Backgrond Changes

Post by iambc »

Hey dudes, I've made a simple clock skin as follows. Now I have 4 background pics (0.png, 1.png, 2.png, 3.png). One is for quarter, one is for half, one is for 3 quarters and one is for full. That means I want to change the background pictures in turn once the hourshand arrive quarters.

Can anyone tell how to achieve that? Do I need lua script or array? Simple is better, thank you very much~! 8-)

p.s. skin is downloadable :twisted: thanks for @jsmorley 's suggestion~

Code: Select all

[Rainmeter]
Update=1000

[MeasureTime]
Measure=Time

[MeterBackground]
Meter=Image
ImageName=0.png
W=378
H=378

[MeterHoursHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=378
H=378
ImageName=P00.png
OffsetX=0
OffsetY=18
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=43200

[MeterMinutesHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=378
H=378
ImageName=P00.png
OffsetX=0
OffsetY=18
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=3600

[MeterSecondsHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=378
H=378
ImageName=P00.png
OffsetX=0
OffsetY=18
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=60
You do not have the required permissions to view the files attached to this post.
Last edited by iambc on August 31st, 2012, 3:42 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Question about Clock Skin with Backgrond Changes

Post by jsmorley »

If you can zip up your skin and attach the .zip here so we can have the images, it will make it easier for us to help.
iambc
Posts: 3
Joined: August 31st, 2012, 1:46 pm

Re: Question about Clock Skin with Backgrond Changes

Post by iambc »

jsmorley wrote:If you can zip up your skin and attach the .zip here so we can have the images, it will make it easier for us to help.
Thank you~ skin is available for download now :)
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Question about Clock Skin with Backgrond Changes

Post by jsmorley »

Something like this should work:

Code: Select all

[MeasureTime]
Measure=Time

[MeasureMinutes]
Measure=Time
Format=%#M

[MeasureQuarters]
Measure=Calc
Formula=[MeasureMinutes] < 15 ? 0 : (([MeasureMinutes] < 30 ) ? 1 : (([MeasureMinutes] < 45 ) ? 2 : 3))

[MeterBackground]
Meter=Image
ImageName=[MeasureQuarters].png
W=200
H=200
DynamicVariables=1
iambc
Posts: 3
Joined: August 31st, 2012, 1:46 pm

Re: Question about Clock Skin with Backgrond Changes

Post by iambc »

jsmorley wrote:Something like this should work:
I'd really appreciate it :) :thumbup: