Nesting MeterStyles?
Posted: May 14th, 2018, 2:49 pm
Would it be possible to add support for nesting MeterStyles? Here's an example of why I would like this:
I recently discovered the #CURRENTSECTION# variable, and I am working on standardizing all meters that have button hover effects (changing the text/image to a light red color) to use this single MeterStyle so the effects can be changed in bulk if I decide to in the future. However, it is still a pain to add this new MeterStyle to every meter that has a hover effect.
There are hundreds of meters in my suite that all use the same MeterStyle (e.g. toggle buttons in my settings skins). If I want to add hover effects to the toggle buttons, I either have to copy the text hover effect MeterStyle into the toggle button MeterStyle (which goes against the point of making that MeterStyle in the first place), or I have to go add it to each button's MeterStyle option individually (completely possible, but extremely tedious).
It would be great if I could "nest" meterstyles so I could add the hover effect style to the toggle button style and have done with it.
Something like this:
I recently discovered the #CURRENTSECTION# variable, and I am working on standardizing all meters that have button hover effects (changing the text/image to a light red color) to use this single MeterStyle so the effects can be changed in bulk if I decide to in the future. However, it is still a pain to add this new MeterStyle to every meter that has a hover effect.
There are hundreds of meters in my suite that all use the same MeterStyle (e.g. toggle buttons in my settings skins). If I want to add hover effects to the toggle buttons, I either have to copy the text hover effect MeterStyle into the toggle button MeterStyle (which goes against the point of making that MeterStyle in the first place), or I have to go add it to each button's MeterStyle option individually (completely possible, but extremely tedious).
It would be great if I could "nest" meterstyles so I could add the hover effect style to the toggle button style and have done with it.
Something like this:
Code: Select all
[StyleStringButtonHover]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#colorButtonPress#"][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""][!UpdateMeter #CURRENTSECTION#][!Redraw]
[StyleToggleButton]
MeterStyle=StyleStringButtonHover
FontFace=ElegantIcons
FontColor=#colorAccent#
FontSize=12
X=#contentMargin#
Y=5R