It is currently April 27th, 2024, 12:22 am

Digits separator

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Digits separator

Post by jsmorley »

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.
User avatar
Yamajac
Posts: 134
Joined: June 30th, 2014, 8:44 am

Re: Digits separator

Post by Yamajac »

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 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.


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
Visualizers, file browsers, calendars, etc would benefit from this a lot as well, for meters I just name the meters 0, 1, 2, 3, and then use #CURRENTSECTION# in the meterstyle to reference indexes or parent measures or whatever. So to be able to do the same thing in the related measures as well would be very nice. WebParsers that grab the index and all that just with a style.
User avatar
Jeff
Posts: 332
Joined: September 3rd, 2018, 11:18 am

Re: Digits separator

Post by Jeff »

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
What I'm trying to say is that MeasureStyle would be really welcomed, and most of the examples here are totally not copy pasted from my skins where the measures are giant because of repetition on stuff that could be smaller using MeasureStyles
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Digits separator

Post by mak_kawa »

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.