I created a USB skin. It works fine and gets the job done. It starts from the drive letter "E:" up to "H:" and measures total, free and used disk space as a normal USB skin we see regularly. All drives appear in the same skin.
I tried to hide the meters that are not used, so when (for example) letter "F:" is not used, it is hidden from the skin.
Now... I used "Y=r" and "Y=R" method to make the next letter go up and no space is created in the skin.
A picture will explain the situation better: I think, the way I wrote the code it should behave like picture C) when I remove drive"F:", but picture B) is what happens and the next letter "G:" does not take the exact place of the unused letter "F:". I can not find what I am missing. In theory (as long as I understand) the next measure should take exactly the place of the previous one. If needed I will post the whole skin code.
TLDR: Look the picture and then the code. Thanx in advance
The code is exactly the same with the other letters E, G and H
Code: Select all
;DRIVE F==================================
[MeasureTotalF]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
IfBelowValue=1
IfEqualAction=!execute [!HideMeter MeterDriveLabelF] [!HideMeter MeterTotalFText][!HideMeter MeterTotalFBar][!HideMeter MeterUsedFBar] [!HideMeter MeterUsedFText] [!HideMeter MeterFreeFText][!Redraw]
IfAboveValue=1
IfAboveAction=!execute [!ShowMeter MeterDriveLabelF] [!ShowMeter MeterTotalFText][!ShowMeter MeterTotalFBar][!ShowMeter MeterUsedFBar] [!ShowMeter MeterUsedFText] [!ShowMeter MeterFreeFText][!Redraw]
[MeasureLabelF]
Measure=FreeDiskSpace
Drive=F:
Label=1
IgnoreRemovable=0
UpdateDivider=2
[MeasureFreeF]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
UpdateDivider=4
[MeasureUsedF]
Measure=FreeDiskSpace
Drive=F:
IgnoreRemovable=0
InvertMeasure=1
UpdateDivider=2
Substitute="1.0":"Removed"
;==================================
[MeterDriveLabelF]
Meter=STRING
MeasureName=MeasureLabelF
MeterStyle=StringStyle
StringStyle=bolditalic
StringAlign=Center
X=115
Y=60r
Text="%1"
[MeterTotalFText]
MeasureName=MeasureTotalF
Meter=STRING
MeterStyle=StringStyle
StringAlign=RIGHT
X=308
Y=r
Text="F: %1"
AutoScale=1
[MeterTotalFBar]
Meter=Image
SolidColor=255, 255,255,50
X=12
Y=-5R
W=295
H=20
LeftMouseUpAction=!execute ["F:"]
DynamicVariables = 1
[MeterUsedFBar]
MeasureName=MeasureUsedF
Meter=BAR
BarColor=0, 125,255,200
X=12
Y=r
W=295
H=20
BarOrientation=HORIZONTAL
[MeterUsedFText]
MeasureName=MeasureUsedF
Meter=STRING
MeterStyle=StringStyle
X=12
Y=-5r
Text="%1"
AutoScale=1
[MeterFreeFText]
MeasureName=MeasureFreeF
Meter=STRING
MeterStyle=StringStyle
StringAlign=RIGHT
X=308
Y=r
Text="%1"
AutoScale=1