Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1486

Help: Rainmeter Skins • Re: How do I make text shake?

$
0
0
Thanks, basically ended up getting it working.

Code:

[Rainmeter]Update=1000                      ; Update once per secondDynamicWindowSize=1AccurateText=1BackgroundMode=2SolidColor=0,0,0,0               ; Transparent backgroundDraggable=1                      ; Allow the skin to be movedRightMouseUpAction=[!SkinCustomMenu]ContextTitle="Reset Timer"ContextAction=[!PauseMeasure MeasureTimer][!CommandMeasure MeasureTimer "Reset"][!CommandMeasure MeasureAlarmSequence "Stop 1"][!SetOption MeterTimerDisplay FontColor "255,255,255"][!SetVariable ShakeX 0][!SetVariable ShakeY 0][!UpdateMeter MeterTimerDisplay][!Redraw][Variables]; Timer settingsTimerDuration=2700              ; 45 minutes in seconds 2700TimerPaused=1                   ; Timer paused by defaultShakeX=0                        ; X offset for shakingShakeY=0                        ; Y offset for shaking; Sound file – place your alarm.wav in the @Resources folderSoundFile=#@#alarm.wav[MeasureTimer]Measure=LoopStartValue=#TimerDuration#EndValue=0Increment=-1LoopCount=0                     ; Endless loopPaused=1                        ; Start pausedDynamicVariables=1OnChangeAction=[!UpdateMeasure MeasureAlarm][MeasureAlarm]Measure=CalcFormula=([MeasureTimer]=0)?1:0DynamicVariables=1IfCondition=MeasureAlarm=1IfTrueAction=[Play "#SoundFile#"][!CommandMeasure MeasureAlarmSequence "Execute 1"]IfCondition2=MeasureAlarm=0IfTrueAction2=[!CommandMeasure MeasureAlarmSequence "Stop 1"][!SetOption MeterTimerDisplay FontColor "255,255,255"][!SetVariable ShakeX 0][!SetVariable ShakeY 0][!UpdateMeter MeterTimerDisplay][!Redraw]; Random measures for shake effect[MeasureRandX]Measure=CalcFormula=RandomLowBound=-5HighBound=5UpdateRandom=1[MeasureRandY]Measure=CalcFormula=RandomLowBound=-5HighBound=5UpdateRandom=1; Use ActionTimer plugin for flash and shake sequence[MeasureAlarmSequence]Measure=PluginPlugin=ActionTimerGroup=AlarmActionList1=Shake1 | Wait 300 | Shake2 | Wait 300 | Shake3 | Wait 300 | Shake4 | Wait 300 | Shake5 | Wait 300 | Shake6 | Wait 300 | ResetTimerShake1=[!UpdateMeasure MeasureRandX][!UpdateMeasure MeasureRandY][!SetVariable ShakeX [MeasureRandX]][!SetVariable ShakeY [MeasureRandY]][!SetOption MeterTimerDisplay FontColor "255,192,0"][!UpdateMeter MeterTimerDisplay][!Redraw]Shake2=[!UpdateMeasure MeasureRandX][!UpdateMeasure MeasureRandY][!SetVariable ShakeX [MeasureRandX]][!SetVariable ShakeY [MeasureRandY]][!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw]Shake3=[!UpdateMeasure MeasureRandX][!UpdateMeasure MeasureRandY][!SetVariable ShakeX [MeasureRandX]][!SetVariable ShakeY [MeasureRandY]][!SetOption MeterTimerDisplay FontColor "255,192,0"][!UpdateMeter MeterTimerDisplay][!Redraw]Shake4=[!UpdateMeasure MeasureRandX][!UpdateMeasure MeasureRandY][!SetVariable ShakeX [MeasureRandX]][!SetVariable ShakeY [MeasureRandY]][!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw]Shake5=[!UpdateMeasure MeasureRandX][!UpdateMeasure MeasureRandY][!SetVariable ShakeX [MeasureRandX]][!SetVariable ShakeY [MeasureRandY]][!SetOption MeterTimerDisplay FontColor "255,192,0"][!UpdateMeter MeterTimerDisplay][!Redraw]Shake6=[!UpdateMeasure MeasureRandX][!UpdateMeasure MeasureRandY][!SetVariable ShakeX [MeasureRandX]][!SetVariable ShakeY [MeasureRandY]][!SetOption MeterTimerDisplay FontColor "255,255,255"][!UpdateMeter MeterTimerDisplay][!Redraw]ResetTimer=[!CommandMeasure MeasureTimer "Reset"][!SetOption MeterTimerDisplay FontColor "255,255,255"][!SetVariable ShakeX 0][!SetVariable ShakeY 0][!UpdateMeter MeterTimerDisplay][!Redraw]DynamicVariables=1[MeasureTimerMinutes]Measure=CalcFormula=Floor([MeasureTimer] / 60)DynamicVariables=1[MeasureTimerSeconds]Measure=CalcFormula=[MeasureTimer] % 60DynamicVariables=1RegExpSubstitute=1Substitute="^(\d)$":"0\1"[MeterTimerDisplay]Meter=StringMeasureName=MeasureTimerMinutesMeasureName2=MeasureTimerSecondsX=(150+#ShakeX#)Y=(60+#ShakeY#)FontSize=50FontWeight=700                 ; Bold textFontColor=255,255,255StringAlign=CenterCenterText=%1:%2DynamicVariables=1AntiAlias=1SolidColor=0,0,0,0             ; Transparent backgroundLeftMouseUpAction=[!SetVariable TimerPaused (1-#TimerPaused#)][!WriteKeyValue Variables TimerPaused #TimerPaused#][!TogglePauseMeasure MeasureTimer]

Statistics: Posted by Tiffany — Today, 3:19 am



Viewing all articles
Browse latest Browse all 1486

Trending Articles