I'm trying to get this countdown of X number of seconds to display using Roundline meter. Everything else in the skin works as intended except for that. How do I get a Roundline meter to display a countdown for the reducing number of seconds?
Here's the entirety of the skin except for the include:
Here's the entirety of the skin except for the include:
Code:
[Rainmeter]Update=1000BackgroundMode=2SolidColor=0,0,0,1AccurateText=1DynamicWindowSize=1---------------------------------------------------------------; VARIABLES---------------------------------------------------------------[Variables]@Include=#@#SmartChameleon.incSkinWidth=1440FontName=UnispaceFontSize=16IconSize=46Padding=5; Width and height for overall skin. In this case, we want both to be the same as we will be drawing circlesCircleWidth=240CircleHeight=#CircleWidth#; Defines the onscreen position of the circleCircleXPos=(#SkinWidth#/2)-(#CircleWidth#/2)CircleYPos=100; Defines thickness of the radial line. Inner and Outer radius of meters. Generally, you'd want the Outer radius to be half of the skin's width and the Inner radius to be the same but slightly shorter. The difference between Outer and Inner will define the thickness of the lineMeterOuter=(#CircleWidth#/2)MeterInner=(#CircleWidth#/2)-(5/100*#CircleWidth#); Settings for height of a text label, horizontal position (usually half of skin's width) and vertical position of the top label. To move the bottom label lower, increase the label heightLabelHeight=(#CircleHeight#/2)LabelX=(#CircleWidth#/2)LabelY=(#CircleHeight#/2)---------------------------------------------------------------; MEASURES---------------------------------------------------------------[MeasureCurrentTime]Measure=Time[MeasureDiablo4Timers]Measure=WebParserURL=https://helltides.com/api/scheduleRegExp=(?siU)"world_boss":\[\{"boss":"(.*)".*"timestamp":(.*)\}.*"legion":.*"timestamp":(.*)\}.*"helltide":\[\{"id":.*,"timestamp":(.*),]]; These 2 square brackets (]]) above are useless and should be left as is, it's just used to get the Notepad++ language formatting correct---------------------------------------------------------------; World Boss Measures---------------------------------------------------------------[MeasureWorldBossName]Measure=WebParserURL=[MeasureDiablo4Timers]StringIndex=1[MeasureWorldBossSpawnTime]Measure=WebParserURL=[MeasureDiablo4Timers]StringIndex=2[MeasureWorldBossUnixToWindowsTime]; Convert Unix time to Windows time; We add 11644473600 seconds as this is the number of seconds passed since midnight 1 Jan 1970; We add another 28800 seconds to account for GMT+8 timezone; This calculated value is also used in the countdown as wellMeasure=CalcFormula=[MeasureWorldBossSpawnTime]+11644473600+28800Update=-1DynamicVariables=1[MeasureWorldBossWindowsTime]; This is only to display the Windows time in a HH:MM:SS format; Not used to calculate countdownMeasure=TimeTimeStamp=[MeasureWorldBossUnixToWindowsTime]Update=-1Format=%I:%M %pDynamicVariables=1[MeasureWorldBossCountdown]Measure=UpTimeSecondsValue=([MeasureWorldBossUnixToWindowsTime:]-[MeasureCurrentTime:])IfCondition=([MeasureWorldBossUnixToWindowsTime:]-[MeasureCurrentTime:])<0IfTrueAction=[!SetOption MeterWorldBossTimer Text "%1 %2 (Started)"]IfFalseAction=[!SetOption MeterWorldBossTimer Text "%1 %2 (%3)"]; %4: Days; %3: Hours; %2: Minutes; %1: Seconds; !i!: Putting this after the format code shows the numbers with no leading zeros.; !02i!: Putting this after the format code shows the numbers with leading zeros.Format="%3!02i!:%2!02i!:%1!02i!"DynamicVariables=1[MeasureBossCountdownCircle]Measure=CalcFormula=[MeasureWorldBossCountdown:]DynamicVariables=1---------------------------------------------------------------; Legion Measures---------------------------------------------------------------[MeasureLegionStartTime]Measure=WebParserURL=[MeasureDiablo4Timers]StringIndex=3[MeasureLegionUnixToWindowsTime]Measure=CalcFormula=[MeasureLegionStartTime]+11644473600+28800Update=-1DynamicVariables=1[MeasureLegionWindowsTime]Measure=TimeTimeStamp=[MeasureLegionUnixToWindowsTime]Update=-1Format=%I:%M %pDynamicVariables=1[MeasureLegionCountdown]Measure=UpTimeSecondsValue=([MeasureLegionUnixToWindowsTime:]-[MeasureCurrentTime:])IfCondition=([MeasureLegionUnixToWindowsTime:]-[MeasureCurrentTime:])<0IfTrueAction=[!SetOption MeterLegionTimer Text "%1 (Started)"]IfFalseAction=[!SetOption MeterLegionTimer Text "%1 (%2)"]Format="%3!02i!:%2!02i!:%1!02i!"DynamicVariables=1---------------------------------------------------------------; Helltide Measures---------------------------------------------------------------[MeasureHelltideStartTime]Measure=WebParserURL=[MeasureDiablo4Timers]StringIndex=4[MeasureHelltideUnixToWindowsTime]Measure=CalcFormula=[MeasureHelltideStartTime]+11644473600+28800Update=-1DynamicVariables=1[MeasureHelltideWindowsTime]Measure=TimeTimeStamp=[MeasureHelltideUnixToWindowsTime]Update=-1Format=%I:%M %pDynamicVariables=1[MeasureHelltideCountdown]Measure=UpTimeSecondsValue=([MeasureHelltideUnixToWindowsTime:]-[MeasureCurrentTime:])IfCondition=([MeasureHelltideUnixToWindowsTime:]-[MeasureCurrentTime:])<0IfTrueAction=[!SetOption MeterHelltideTimer Text "%1 (Started)"]IfFalseAction=[!SetOption MeterHelltideTimer Text "%1 (%2)"]Format="%3!02i!:%2!02i!:%1!02i!"DynamicVariables=1---------------------------------------------------------------; World Boss Clock Measures---------------------------------------------------------------[MeasureMain]Measure=UpTimeSecondsValue=([MeasureWorldBossUnixToWindowsTime:]-[MeasureCurrentTime:])DynamicVariables=1---------------------------------------------------------------; METER STYLE---------------------------------------------------------------[MeterIconStyle]W=#IconSize#Y=0[MeterTimerStyle]FontFace=#FontName#FontColor=[ChamFG1]FontSize=15AntiAlias=1DynamicVariables=1---------------------------------------------------------------; METERS---------------------------------------------------------------[MeterBackground]Meter=ImageImageName=""W=#SkinWidth#[MeterWorldBossIcon]Meter=ImageMeterStyle=MeterIconStyleX=0ImageName=#@#WorldBoss.png[MeterWorldBossTimer]Meter=StringMeterStyle=MeterTimerStyleMeasureName=MeasureWorldBossNameMeasureName2=MeasureWorldBossWindowsTimeMeasureName3=MeasureWorldBossCountdownStringAlign=LeftCenterX=#Padding#RY=(#IconSize#/2)rText="%1 %2 (%3)"[MeterLegionTimer]Meter=StringMeterStyle=MeterTimerStyleMeasureName=MeasureLegionWindowsTimeMeasureName2=MeasureLegionCountdownStringAlign=CenterCenterX=(#SkinWidth#/2)Y=rText="Legion %1 (%2)"[MeterLegionIcon]Meter=ImageMeterStyle=MeterIconStyleX=((#SkinWidth#/2)-([MeterLegionTimer:W]/2)-#IconSize#)ImageName=#@#Legion.pngDynamicVariables=1[MeterHelltideTimer]Meter=StringMeterStyle=MeterTimerStyleMeasureName=MeasureHelltideWindowsTimeMeasureName2=MeasureHelltideCountdownStringAlign=RightCenterX=#SkinWidth#Y=(#IconSize#/2)Text="Helltide %1 (%2)"[MeterHelltideIcon]Meter=ImageMeterStyle=MeterIconStyleX=(#SkinWidth#-[MeterHelltideTimer:W]-#IconSize#)ImageName=#@#Helltide.pngDynamicVariables=1[MeterBackgroundRoundLine]Meter=RoundlineX=#CircleXPos#Y=#CircleYPos#W=#CircleWidth#H=#CircleHeight#LineStart=#MeterInner#LineLength=#MeterOuter#StartAngle=0RotationAngle=6.2831853LineColor=#FG2#Solid=1AntiAlias=1DynamicVariables=1[MeterValueRoundLine]Meter=RoundlineMeasureName=MeasureBossCountdownCircleX=#CircleXPos#Y=#CircleYPos#W=#CircleWidth#H=#CircleHeight#LineStart=#MeterInner#LineLength=#MeterOuter#StartAngle=4.7123889RotationAngle=6.2831853LineColor=#FG1#Solid=1AntiAlias=1DynamicVariables=1[MeterText]Meter=StringMeasureName=MeasureWorldBossCountdownX=(#CircleXPos#+#LabelX#)Y=(#CircleYPos#+#LabelY#)FontFace=#FontName#FontColor=#FG1#FontSize=(#FontSize#*1.5)StringAlign=CenterCenterNumOfDecimals=#Decimals#AntiAlias=1DynamicVariables=1Text="%1"
Statistics: Posted by ZipD — Yesterday, 3:00 pm — Replies 1 — Views 55