To open variants in the [sIcon] section, use !ActivateConfig with just the ConfigName parameter:{clip}
I then managed to get this code to work, not quite how I want it to, as it would be better if you could click skin1 to load it, then click skin2, a variant, and unload skin1 at the same time you load skin2. My code also has an issue with opening the folder when hovering the path now that I removed "Skins\" from mPath using Substitute. But that was the only way I could get the path.
Please help!![]()
Thanks.
{code clipped}
RightMouseUpAction=[!ActivateConfig [mPath]]
instead of RightMouseUpAction={!ToggleConfig [mPath] "#File#"].
To unload the current variant, use a MiddleMouseUpAction and !DeactivateConfig with the current ConfigName:
MiddleMouseUpAction=[!DeactivateConfig [mPath]]
Note: You will need to remove, or comment out, the MiddleMouseUpAction in the [bg] section that refreshes in order for the added deactivate to work.
I did not experience the other issue of opening the folder on hover...
Modified [sIcon] code to load variants and deactivate:
Code:
[sIcon]AntiAlias=1ImageAlpha=65Hidden=1Group=IconDynamicVariables=1LeftMouseUpAction=[!CommandMeasure m#CURRENTSECTION# "FollowPath"][!UpdateMeasure mPath][!UpdateMeasureGroup Children][!SetOption Name Text "[mName]"][!UpdateMeter *][!Redraw]RightMouseUpAction=[!ActivateConfig [mPath]] ; "#File#"]MiddleMouseUpAction=[!DeactivateConfig [mPath]]MouseOverAction=[!SetOption #CURRENTSECTION# ImageAlpha "255"][!SetOption mR1 Index "#CURRENTSECTION#"][!UpdateMeasure mR1][!SetOption mName Index "#CURRENTSECTION#"][!UpdateMeasure mName][!SetVariable File "[mName].ini"][!SetOption Name Text "[mName]"][!ShowMeterGroup Name][!UpdateMeter Name][!UpdateMeter *][!Redraw]MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageAlpha ""][!SetOption mR1 Index ""][!UpdateMeasure mR1][!SetVariable File ""][!SetOption mName Index ""][!UpdateMeasure mName][!SetVariable File ""][!SetOption Name Text ""][!HideMeterGroup Name][!UpdateMeter Name][!UpdateMeter *][!Redraw]X=25rY=r
Statistics: Posted by eclectic-tech — Today, 1:52 pm