Can I get the complete code. I want to have a look and it might help me in my projectThis plugin is freakin' awesome man.
Made a skin that requires absolutely no input from the user.
It supports up to 10 drives and i might add a few more.
Made 10 different ini files, and whenever a drive is disconnected or reconnected the skin adapts.
And because the @include function cannot be dynamic i had to get creative with some measures.
A week later i think i finally landed on a solution. The skin auto switches between the ini files like this:I hope this helps someone.Code:
[Variables] NumberOfDrives=7[TotalDrives1] Measure=Plugin Plugin=DriveList.dll NumberType=Count DynamicVariables=1[TotalDrives2] Measure=calc Formula=TotalDrives1 Substitute="0":"#NumberOfDrives#" DynamicVariables=1 OnChangeAction=[!SetVariable NumberOfDrives [TotalDrives2]][!WriteKeyValue Variables NumberOfDrives "([TotalDrives2])"][!UpdateMeter *][!Redraw][NumberOfDrives] Measure=calc Formula=#NumberOfDrives# DynamicVariables=1 OnChangeAction=[!Refresh] @include1=#SKINSPATH#SKINNAME\HDDs\Configurations\#NumberOfDrives#.ini
Statistics: Posted by mrbnikhil — Yesterday, 8:34 pm