Container 容器
Define a meter to be used as a "container" for the "content" of this meter.このメーターの「内容」の「コンテナー」として使用されるメーターを定義します。
The intent of this is two-fold:その意図は2つあります。
- A meter that has a Container option will in effect be put "inside" the container meter. It will be positioned relative to the container, and will be visibly constrained by it. Only the part of the content that is "inside" the container will be drawn.
Think sliding content, a menu or launcher for instance, into view without needing to start outside the entire skin.コンテナオプションを持つメーターは、実際にはコンテナメーターの「内側」に配置されます。それはコンテナに対して相対的に配置され、それによって視覚的に制約されます。コンテナーの「内側」にあるコンテンツの部分だけが描画されます。
メニュー全体やランチャーなどのコンテンツをスライドさせて、スキン全体の外側から開始する必要はありません。 - The content will be "masked" into any solid pixels in the container meter. So only the part of the content that is masked into a solid pixel in the container will be drawn.
Think masking an image into a String meter, or an image into a Shape meter.内容はコンテナメーター内の任意の塗りつぶされたピクセルに「マスク」されます。そのため、コンテナー内で塗りつぶされたピクセルにマスクされているコンテンツの部分だけが描画されます。
画像を文字列メーターに、または画像を形状メーターにマスキングすることを検討してください。
- Container
Any meter name
容器Any meter name
-
Name of a meter, of any type, to be used as a container for the content of this meterこのメーターのコンテンツのコンテナーとして使用される、任意のタイプのメーターの名前
Example:
Container=SomeOtherMeter
例:Container=SomeOtherMeter
- Content is only drawn within the rectangular W and H boundaries of the container meter.
Content outside the container is truncated, and in effect doesn't exist.コンテンツはコンテナメーターの長方形のWとHの境界内にのみ描画されます。
コンテナーの外側のコンテンツは切り捨てられ、事実上存在しません。 - Content is only drawn on solid pixels of the container.
The container meter itself is not drawn, just the content.コンテンツはコンテナの実線のピクセル上にのみ描画されます。
コンテナーメーター自体は描かれておらず、内容だけが描かれています。 - Any transparency of both the container and the content is cumulative.コンテナーとコンテンツの両方の透明度は累積的です。
- The first content meter in a container is automatically relative to the top left of the container.
"r" is assumed and "R" is ignored.コンテナー内の最初のコンテンツメーターは、自動的にコンテナーの左上からの相対位置になります。
"r"が想定され、 "R"は無視されます。 - Subsequent content meters in a container are relative to each other.
"r" and "R" function normally.コンテナー内の後続のコンテントメーターは互いに相対的です。
"r"と "R"は正常に機能します。 - Meters that are not content are relative to the immediately preceding meter that is not content.内容ではないメーターは、内容ではない直前のメーターに対する相対値です。
- Any meter type can be a container and any meter type can be content.任意のメータータイプをコンテナーにすることができ、任意のメータータイプをコンテンツにすることができます。
- Containers may not be "nested".コンテナは「入れ子」にすることはできません。
Usage Notes使用上の注意
VisibilityExamples例
While the example code here is for two simple skins that demonstrate using Container
, you can download a suite of skins demonstrating several ways to use the funtionality.ここのコード例はContainer
使い方を説明する2つの単純なスキン用ですが、機能を使用するためのいくつかの方法を示す一連のスキンをダウンロードできます。
Download the .rmskin..rmskinをダウンロードしてください。
Sliding a "content" meter in and out of a "container" meter.「コンテナー」メーターとの間で「コンテント」メーターをスライドさせます。
[Rainmeter] |
Masking an image "content" meter into a string "container" meter.画像の「コンテンツ」メーターを文字列の「コンテナー」メーターにマスキングします。
[Rainmeter] |
関連記事
スポンサーリンク