- UID
- 62201
- 主题
- 注册时间
- 2011-1-18
- 在线时间
- 小时
- 最后登录
- 1970-1-1
签到天数: 1 天 [LV.1]初来乍到
|
发表于 2020-5-26 09:22:34
|
显示全部楼层
[RainMeter]
Author=MorusLeaf
Update=50
[Metadata]
Description=环状时钟
Version=Beta
[Variables]
TopX=100
TopY=150
Start=-1.5708
Angle1=0.02
Angle2=-1
HideTip=0
AdjustMode=0
SecondLineColor=255,255,255,255
SecondRadius=105
SecondWidth=15
SecondHeight=0
SecondRotate1=0
SecondGap=0
SecondRotate2=(6.2832-#SecondRotate1#-#SecondGap#)
SecondTimeTotal=Ceil((#SecondRotate1#+#SecondGap#)*60/6.2832)
SecondRotateFormula=[m11];[m21];[m12];[m22];[m13Second];[m23Second]
MinuteLineColor=255,255,255,255
MinuteRadius=60
MinuteWidth=15
MinuteHeight=70
MinuteRotate1=0
MinuteGap=0
MinuteRotate2=(6.2832-#MinuteRotate1#-#MinuteGap#)
MinuteTimeTotal=Ceil((#MinuteRotate1#+#MinuteGap#)*60/6.2832)
MinuteRotateFormula=[m11];[m21];[m12];[m22];[m13Minute];[m23Minute]
HourLineColor=255,255,255,255
HourRadius=80
HourWidth=15
HourHeight=150
HourRotate1=1.4
HourGap=0.8
HourRotate2=(6.2832-#HourRotate1#-#HourGap#)
HourTimeTotal=Ceil((#HourRotate1#+#HourGap#)*12/6.2832)
HourRotateFormula=[m11];[m21];[m12];[m22];[m13Hour];[m23Hour]
Ex1LineColor=255,255,255,150
Ex1Radius=125
Ex1Width=5
Ex1Height=0
Ex1Rotate=1.75
Ex1Gap=0.19
Ex1RotateFormula=[m11];[m21];[m12];[m22];[m13Ex1];[m23Ex1]
Ex1Hidden=0
Ex2LineColor=255,255,255,150
Ex2Radius=95
Ex2Width=5
Ex2Height=0
Ex2Rotate=1.75
Ex2Gap=0.21
Ex2RotateFormula=[m11];[m21];[m12];[m22];[m13Ex2];[m23Ex2]
Ex2Hidden=0
Ex3LineColor=255,255,255,150
Ex3Radius=40
Ex3Width=15
Ex3Height=150
Ex3Rotate=1.3
Ex3Gap=1.27
Ex3RotateFormula=[m11];[m21];[m12];[m22];[m13Ex3];[m23Ex3]
Ex3Hidden=0
Ex4LineColor=255,255,255,150
Ex4Radius=115
Ex4Width=15
Ex4Height=150
Ex4Rotate=1.5
Ex4Gap=0.5
Ex4RotateFormula=[m11];[m21];[m12];[m22];[m13Ex4];[m23Ex4]
Ex4Hidden=0
LabelHeight=150
LabelSize=20
LabelColor=225,225,225,250
Labeldx=0
Labeldy=0
LabelRotateFormula=[m11];[m21];[m12];[m22];[m13Label];[m23Label]
LabelHidden=0
BKW=400
BKH=300
;---------------------------------------------
;-----Background--------------------------
[ImageBK]
Meter=Image
X=0
Y=0
W=#BKW#
H=#BKH#
SolidColor=0,0,0,1
;---------------------------------------------
;-----Label---------------------------------
[StyleLabel]
StringAlign=Left
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#LabelColor#
FontFace=Pixel LCD7
FontSize=#LabelSize#
AntiAlias=1
[TextLabelTime]
Meter=String
MeterStyle=StyleLabel
Text=[MeasureRealHour]:[MeasureRealMinute]:[MeasureRealSecond]
DynamicVariables=1
TransformationMatrix=#LabelRotateFormula#
Hidden=#LabelHidden#
;---------------------------------------------
[m11]
Measure=Calc
Formula=Cos(#Angle2#)
DynamicVariables=1
[m21]
Measure=Calc
Formula=0
DynamicVariables=1
[m12]
Measure=Calc
Formula=-Sin(#Angle1#)*Sin(#Angle2#)
DynamicVariables=1
[m22]
Measure=Calc
Formula=Cos(#Angle1#)
DynamicVariables=1
[m13Second]
Measure=Calc
Formula=(#TopX#-#SecondHeight#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Second]
Measure=Calc
Formula=(#TopY#-#SecondHeight#*Sin(#Angle1#))
DynamicVariables=1
[m13Minute]
Measure=Calc
Formula=(#TopX#-#MinuteHeight#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Minute]
Measure=Calc
Formula=(#TopY#-#MinuteHeight#*Sin(#Angle1#))
DynamicVariables=1
[m13Hour]
Measure=Calc
Formula=(#TopX#-#HourHeight#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Hour]
Measure=Calc
Formula=(#TopY#-#HourHeight#*Sin(#Angle1#))
DynamicVariables=1
[m13Ex1]
Measure=Calc
Formula=(#TopX#-#Ex1Height#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Ex1]
Measure=Calc
Formula=(#TopY#-#Ex1Height#*Sin(#Angle1#))
DynamicVariables=1
[m13Ex2]
Measure=Calc
Formula=(#TopX#-#Ex2Height#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Ex2]
Measure=Calc
Formula=(#TopY#-#Ex2Height#*Sin(#Angle1#))
DynamicVariables=1
[m13Ex3]
Measure=Calc
Formula=(#TopX#-#Ex3Height#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Ex3]
Measure=Calc
Formula=(#TopY#-#Ex3Height#*Sin(#Angle1#))
DynamicVariables=1
[m13Ex4]
Measure=Calc
Formula=(#TopX#-#Ex4Height#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Ex4]
Measure=Calc
Formula=(#TopY#-#Ex4Height#*Sin(#Angle1#))
DynamicVariables=1
[m13Label]
Measure=Calc
Formula=(#TopX#+#Labeldx#-#LabelHeight#*Cos(#Angle1#)*Sin(#Angle2#))
DynamicVariables=1
[m23Label]
Measure=Calc
Formula=(#TopY#+#Labeldy#-#LabelHeight#*Sin(#Angle1#))
DynamicVariables=1
;----------------------------------------------
;-----Adjust---------------------------------
[AdjustLock]
Meter=Image
SolidColor=0,0,0,1
X=0
Y=0
W=130
H=130
DynamicVariables=1
MouseOverAction=[!ToggleMeterGroup Adjust][!SetVariable AdjustMode 1]
MouseLeaveAction=[!ToggleMeterGroup Adjust][!SetVariable AdjustMode 0]
[AdjustTip]
Meter=Image
SolidColor=0,0,0,255
X=0
Y=0
W=30
H=30
DynamicVariables=1
LeftMouseUpAction=!SetVariable HideTip (1-#HideTip#)
ToolTipText=左键开关提示
Hidden=1
Group=Adjust
[AdjustLeft]
Meter=Image
SolidColor=0,0,0,255
X=0
Y=40
W=30
H=30
LeftMouseUpAction=[!SetVariable Angle2 ((#Angle2#+0.1)%6.2832)][!WriteKeyValue Variables Angle2 ((#Angle2#+0.1)%6.2832)]
RightMouseUpAction=[!SetVariable Angle2 ((#Angle2#+0.5)%6.2832)][!WriteKeyValue Variables Angle2 ((#Angle2#+0.5)%6.2832)]
DynamicVariables=1
Hidden=1
ToolTipText=左键Angle2+0.1#Crlf#右键Angle2+0.5
ToolTipHidden=#HideTip#
Group=Adjust
[AdjustRight]
Meter=Image
SolidColor=0,0,0,255
X=80
Y=40
W=30
H=30
LeftMouseUpAction=[!SetVariable Angle2 ((#Angle2#-0.1)%6.2832)][!WriteKeyValue Variables Angle2 ((#Angle2#-0.1)%6.2832)]
RightMouseUpAction=[!SetVariable Angle2 ((#Angle2#-0.5)%6.2832)][!WriteKeyValue Variables Angle2 ((#Angle2#-0.5)%6.2832)]
DynamicVariables=1
Hidden=1
ToolTipText=左键Angle2-0.1#Crlf#右键Angle2-0.5
ToolTipHidden=#HideTip#
Group=Adjust
[AdjustUp]
Meter=Image
SolidColor=0,0,0,255
X=40
Y=0
W=30
H=30
LeftMouseUpAction=[!SetVariable Angle1 ((#Angle1#+0.1)%6.2832)][!WriteKeyValue Variables Angle1 ((#Angle1#+0.1)%6.2832)]
RightMouseUpAction=[!SetVariable Angle1 ((#Angle1#+0.5)%6.2832)][!WriteKeyValue Variables Angle1 ((#Angle1#+0.5)%6.2832)]
DynamicVariables=1
Hidden=1
ToolTipText=左键Angle1+0.1#Crlf#右键Angle1+0.5
ToolTipHidden=#HideTip#
Group=Adjust
[AdjustDown]
Meter=Image
SolidColor=0,0,0,255
X=40
Y=80
W=30
H=30
LeftMouseUpAction=[!SetVariable Angle1 ((#Angle1#-0.1)%6.2832)][!WriteKeyValue Variables Angle1 ((#Angle1#-0.1)%6.2832)]
RightMouseUpAction=[!SetVariable Angle1 ((#Angle1#-0.5)%6.2832)][!WriteKeyValue Variables Angle1 ((#Angle1#-0.5)%6.2832)]
DynamicVariables=1
Hidden=1
ToolTipText=左键Angle1-0.1#Crlf#右键Angle1-0.5
ToolTipHidden=#HideTip#
Group=Adjust
[AdjustReset]
Meter=Image
SolidColor=0,0,0,255
X=40
Y=40
W=30
H=30
LeftMouseUpAction=[!SetVariable Angle1 0][!WriteKeyValue Variables Angle1 0][!SetVariable Angle2 0][!WriteKeyValue Variables Angle2 0]
DynamicVariables=1
Hidden=1
ToolTipText=左键恢复Angle1与Angle2
ToolTipHidden=#HideTip#
Group=Adjust
;----------------------------------------------
@Include=Circles.inc |
|