Roundline meter ラウンドラインメーター

Meter=Roundline displays a line or solid fill that rotates in a circle around a point, based on a measure value.Meter=Roundline メジャー値に基づいて、ポイントを中心に円を描くように回転する線または実線の塗りつぶしを表示します。

The values for StartAngle and RotationAngle are defined in RadiansStartAngleおよびRotationAngleの値はラジアンで定義されています

Optionsオプション

General meter options一般メーターオプション

All general meter options are valid.一般的なメーターオプションはすべて有効です。

MeasureName

Name of the measure whose percentual value controls the amount of rotation. The measure must be able to return percentual values.パーセント値で回転量を制御するメジャーの名前。数値データはパーセント値を返すことができなければなりません。

Note: If MeasureName is not specified, then the value is in effect always 100%, which can be used for instance to draw a circle or other curved solid.注: MeasureNameが指定されていない場合、値は常に100%になります。これは、たとえば円またはその他の曲線のソリッドを描画するために使用できます。

StartAngle

The starting angle in radians for the line. This defines the starting point on the circle that will be treated as zero percent. The zero angle is to the right of the center.ラインのラジアン単位の開始角度。これは、ゼロパーセントとして扱われる円の始点を定義します。ゼロ角度は中心の右側です。

RotationAngle

The size of the rotation angle in radians for the line. This defines the distance in radians from StartAngle that the meter will travel around the circle when the measure value is 100%. Use a negative value for counter-clockwise rotation.ラインの回転角度のサイズ(ラジアン)。これは、StartAngle測定値が100%のときにメーターが円周上を移動する距離をラジアンで定義します。反時計回りに負の値を使用してください。

LineStart

Defines the distance in pixels from the center of rotation at which the line starts.ラインが始まる回転の中心からの距離をピクセル単位で定義します。

LineLength

Length in pixels of the line. The length is always measured from the center of rotation, regardless of the LineStart option.線の長さ(ピクセル単位)。LineStartオプションに関係なく、長さは常に回転の中心から測定されます。

LineWidth Default: 1LineWidth デフォルト: 1

Width in pixels of the line when Solid is 0.Solidが0のときの線の幅(ピクセル単位)。

LineColor Default: 255,255,255,255LineColor デフォルト: 255,255,255,255

The Color of the line.線のです。

Solid Default: 0Solid デフォルト: 0

If set to 1, meter will fill the meter with LineColor from StartAngle to the current MeasureName percentage value. LineWidth is ignored.1に設定した場合、meterはLineColorfrom StartAngleから現在のMeasureNameパーセント値までをメーターに入力します。LineWidth無視されます。

ControlAngle Default: 1ControlAngle デフォルト: 1

If ControlAngle is 1 (default), then the percentage value of the measure that is bound to the meter controls the angle of the line (or the fill rotation if Solid=1) starting at StartAngle for RotationAngle radians.ControlAngleが1(既定値)の場合、メーターにバインドされている数値データのパーセント値によって、ラジアン単位で始まる直線の角度(Solid = 1の場合は塗りつぶしの回転)が制御さStartAngleRotationAngleます。

If ControlAngle is set to 0, then the measure does not control the angle of the line, which will be static at the value in StartAngle. RotationAngle is ignored.ControlAngleが0に設定されている場合、メジャーは線の角度を制御しません。これは、の値では静的になりますStartAngleRotationAngle無視されます。

ControlStart, StartShift Default: 0ControlStart, StartShift デフォルト: 0

If ControlStart is set to 1, then the percentage value of the measure that is bound to the meter controls the starting position of the line. This is defined by StartShift, and will range from LineStart to (LineStart + StartShift) pixels from the center of rotation.ControlStartが1に設定されている場合は、メーターにバインドされている小節のパーセント値が線の開始位置を制御します。これは回転中心によって定義されStartShift、回転中心から1 LineStartから(LineStart+ StartShift)ピクセルの範囲になります。

ControlLength, LengthShift Default: 0ControlLength, LengthShift デフォルト: 0

If ControlLength is set to 1, then the percentage value of the measure that is bound to the meter controls the length of the line. This is defined by LengthShift, and will range from LineLength to (LineLength + LengthShift) pixels from the center of rotation.ControlLengthが1に設定されている場合は、メーターにバインドされている数値データのパーセント値によって線の長さが制御されます。これは回転中心によって定義されLengthShift、回転中心から1 LineLengthから(LineLength+ LengthShift)ピクセルの範囲になります。

ValueRemainder

Use a remainder instead of the actual measured value.実測値の代わりに余りを使用してください。

This is primarily used to draw an analog clock. When used with the value of a Time measure in MeasureName the meter will internally use the % modulo mathematical operator, and calculate the meter based on the remainder when the number of seconds in the Time measure is divided by the following values:これは主にアナログ時計を描くのに使われます。MeasureNameTimeメジャーの値と共に使用すると、メーターは内部でモジュロ数学演算子を使用し、Timeメジャーの秒数を次の値で割ったときの余りに基づいてメーターを計算します。%

  • Hours Hand: ValueRemainder=43200 Seconds in a 12-hour analog clock face.ValueRemainder=43200時針:12時間表示のアナログ時計の文字盤の秒。
  • Minutes Hand: ValueRemainder=3600 Seconds in an hour.分針:ValueRemainder=36001時間に1秒。
  • Seconds Hand: ValueRemainder=60 Seconds in a minute.秒針:ValueRemainder=601分で秒。

See the Rotator meter for an example.例として回転計を参照してください。

Note: If the width and height are not defined, the center point is at the X and Y position of the meter and any part of the meter that intersects with the edges of the skin window will be cut off. If width and height are specified, the center point will be in the middle of the bounding box and the skin window will include the meter.注:幅と高さが定義されていない場合、中心点はメーターのXとYの位置にあり、スキンウィンドウの端と交差するメーターの部分は切り取られます。幅と高さが指定されている場合、中心点はバウンディングボックスの中央になり、スキンウィンドウにメーターが表示されます。

Example

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1

[Metadata]
Name=ExampleMeterRoundline
Author=The Rainmeter Team
Information=Example of the Roundline meter
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1.0

[Variables]
TotalColor=173,230,224,255
FreeColor=75,171,161,255
UsedColor=255,205,112,255

[MeasureTotalDisk]
Measure=FreeDiskSpace
Drive=C:
Total=1

[MeasureUsedDisk]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1

[MeasureFreeDisk]
Measure=FreeDiskSpace
Drive=C:

[MeterTotalDisk]
Meter=Roundline
MeasureName=MeasureTotalDisk
X=10
Y=0
W=120
H=120
StartAngle=4.712
RotationAngle=6.283
LineLength=60
LineColor=#TotalColor#
Solid=1
AntiAlias=1

[MeterUsedDisk]
Meter=Roundline
MeasureName=MeasureUsedDisk
X=10
Y=0
W=120
H=120
StartAngle=4.712
RotationAngle=6.283
LineLength=52
LineColor=#UsedColor#
Solid=1
AntiAlias=1

[MeterFreeDisk]
Meter=Roundline
MeasureName=MeasureFreeDisk
X=10
Y=0
W=120
H=120
StartAngle=4.712
RotationAngle=-6.283
LineLength=52
LineColor=#FreeColor#
Solid=1
AntiAlias=1

[MeterTotalText]
Meter=String
MeasureName=MeasureTotalDisk
X=70
Y=130
FontSize=11
FontColor=#TotalColor#
StringAlign=Center
AntiAlias=1
AutoScale=1
Text=Total Disk: %1B

[MeterUsedText]
Meter=String
MeasureName=MeasureUsedDisk
X=70
Y=6R
FontSize=11
FontColor=#UsedColor#
StringAlign=Center
AntiAlias=1
AutoScale=1
Text=Used Disk: %1B

[MeterFreeText]
Meter=String
MeasureName=MeasureFreeDisk
X=70
Y=6R
FontSize=11
FontColor=#FreeColor#
StringAlign=Center
AntiAlias=1
AutoScale=1
Text=Free Disk: %1B

An example skin demonstrating a Roundline meter.Roundlineメーターを示すスキンの例。

関連記事

スポンサーリンク

BETWEEN演算子 範囲におさまっている場合に真を返す

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る