It is currently April 27th, 2024, 12:22 am
Digits separator
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Digits separator
I'm not opposed to MeasureStyle in principle, but I wonder if there are enough measure options that would be a candidate for repeating like that to make it worthwhile. I think not actually. 90% of skins just don't have nearly as many measures as they do meters. The exception might be an AudioLevel skin perhaps.
-
- Posts: 134
- Joined: June 30th, 2014, 8:44 am
Re: Digits separator
I just think MeterStyle should just be Style and it should just work on any section instead of just meters cause I don't see the point in restricting it from working on measures.jsmorley wrote: ↑November 27th, 2019, 11:30 pm I'm not opposed to MeasureStyle in principle, but I wonder if there are enough measure options that would be a candidate for repeating like that to make it worthwhile. I think not actually. 90% of skins just don't have nearly as many measures as they do meters. The exception might be an AudioLevel skin perhaps.
I use the following in a lot of my measures and it'd be nice to be able to just do Style = NoUpdate instead. I use this to keep measures with an OnUpdateAction from updating in the first update cycle when a skin loads. At the bottom of the skin is a measure that enables the NoUpdate measuregroup.
Code: Select all
Group = NoUpdate
Disabled = 1
DynamicVariables = 1
-
- Posts: 332
- Joined: September 3rd, 2018, 11:18 am
Re: Digits separator
jsmorley wrote: ↑November 27th, 2019, 11:30 pm I'm not opposed to MeasureStyle in principle, but I wonder if there are enough measure options that would be a candidate for repeating like that to make it worthwhile. I think not actually. 90% of skins just don't have nearly as many measures as they do meters. The exception might be an AudioLevel skin perhaps.
Code: Select all
[CoolAssMeasureStyle]
PlayerType=#CURRENTSECTION#
UpdateDevider=-1
Substitute="":"N\A"
[Artist]
Measure=NowPlaying
MeasureStyle=CoolAssMeasureStyle
[Album]
Measure=NowPlaying
MeasureStyle=CoolAssMeasureStyle
[Title]
Measure=NowPlaying
MeasureStyle=CoolAssMeasureStyle
Code: Select all
[AnotherCoolMeasureStyle]
;for loops cause i hate using actiontimer to make animations even though that could be the better option for individual stuff
StartValue=0
LoopCount=1
Paused=0
IfCondition=(#CURRENTSECTION# < 1) || (#CURRENTSECTION# > 99)
IfTrueAction=!PauseMeasure
IfFalseAction=!UnPauseMeasure
[Loop1]
Measure=Loop
MeasureStyle=AnotherCoolMeasureStyle
[Loop2]
Measure=Loop
MeasureStyle=AnotherCoolMeasureStyle
[Loop3]
Measure=Loop
MeasureStyle=AnotherCoolMeasureStyle
Code: Select all
[BlaclistedWords]
Substitute="Swear1|Swear2":"****",".{#LineWidth#}()":"\0#CRLF#"
RegExpSubstitute=1
[String1WhichIsProbablyAlongExcerptForLikeABookSkin]
Measure=String
MeasureStyle=BlacklistedWords
String=Lorem ipsum words words words
Code: Select all
[MeasureForADVDThingThatChangesColors]
Formula = Random
Group = Color
HighBound = 255
UpdateRandom = 1
UpdateDivider = -1
[RandomR]
Measure = Calc
MeasureStyle=MeasureForADVDThingThatChangesColors
[RandomG]
Measure = Calc
MeasureStyle=MeasureForADVDThingThatChangesColors
[RandomB]
Measure = Calc
MeasureStyle=MeasureForADVDThingThatChangesColors
Code: Select all
[Variables]
XMinus =!SetOption X Formula "X-#UpDog#"
XPlus =!SetOption X Formula "X+#UpDog#"
YMinus =!SetOption Y Formula "Y-#UpDog#"
YPlus =!SetOption Y Formula "Y+#UpDog#"
X=WIDTH
Y=HEIGHT
UC =!UpdateMeasureGroup Color
Taskbar0=SCREEN
Taskbar1=WORK
[ThisOneIsJustToMakeTheCalcSmaller]
Formula =(([#P[#Taskbar[#Taskbar]]AREA[#CURRENTSECTION]]/2)-([Logo:H]/2))
IfAboveValue = ([#P[#Taskbar[#Taskbar]]AREA[#CURRENTSECTION]]-[Logo:H])
IfAboveAction = [#[#CURRENTSECTION]Minus][#UC#]
IfBelowValue = 0
IfBelowAction = [#[#CURRENTSECTION]Plus] [#UC#]
[Y]
Measure = Calc
MeasureName=ThisOneIsJustToMakeTheCalcSmaller
[X]
Measure = Calc
MeasureName=ThisOneIsJustToMakeTheCalcSmaller
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: Digits separator
Hi jsmorley and Yamajac
I have tested all "digits separator methods" provided, and decided to use jsmorley's Lua script from now on. The reason is... the Lua method seems to me more relevant and smart, no exclusive reason.
Thanks a lot for input from both of you.
I have tested all "digits separator methods" provided, and decided to use jsmorley's Lua script from now on. The reason is... the Lua method seems to me more relevant and smart, no exclusive reason.
Thanks a lot for input from both of you.