Button meter ボタンメーター

Meter=Button displays a button with normal, hover, and pressed states.Meter=Button 通常、ホバー、押された状態のボタンを表示します。

Optionsオプション

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

All general meter options are valid, except W and H.

を除いて、すべての一般的なメーターオプションが有効です。 WH

General image options一般的な画像オプション
All general image options are valid for ButtonImage, except ImageCrop, and ImageRotate.を除いて、すべての一般的な画像オプションが有効です。ButtonImage ImageCropImageRotate
ButtonImage
Path to the button image. The image should have 3 frames laid out either either horizontally or vertically (the orientation is determined by the width and height of the image). The first frame corresponds to the normal state, the second to the clicked state, and the third to the hover state.

See also: Button Imagesボタン画像へのパス。画像は、水平または垂直のいずれかにレイアウトされた3つのフレームを持つ必要があります(向きは、画像の幅と高さによって決まります)。最初のフレームは通常状態、2番目のフレームはクリック状態、3番目のフレームはホバー状態に対応します。ボタン画像

も参照してください。
ButtonCommand
Action to execute when the button is clicked.

Note: Similar to LeftMouseUpAction. The difference is that ButtonCommand ignores transparent pixels in the image at all times, where LeftMouseUpAction will only ignore clicks on transparent areas if there is not some other meter behind the image.ボタンがクリックされたときに実行するアクション

注:に似ていLeftMouseUpActionます。違いはButtonCommand、画像内の透明なピクセルを常にLeftMouseUpAction無視することです。画像の後ろに他のメーターがない場合は、透明な領域でクリックが無視されるだけです。

Example

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

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

[MeterPacman]
Meter=Button
ButtonImage=#@#Images\PacButton.png
ButtonCommand=["Notepad"]
MouseOverAction=[!SetOption MeterText Text "Mouse OVER state"][!UpdateMeter MeterText][!Redraw]
MouseLeaveAction=[!SetOption MeterText Text "Mouse OFF state"][!UpdateMeter MeterText][!Redraw]
LeftMouseDownAction=[!SetOption MeterText Text "Mouse DOWN state"][!UpdateMeter MeterText][!Redraw]

[MeterText]
Meter=String
FontSize=12
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Y=10R
Text=Move mouse over button

An example skin demonstrating a Button meter.ボタンメーターを示すサンプルスキン。

関連記事

スポンサーリンク

layout-grid グリッドに関する指定をまとめて行う

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

上に戻る