概要
このデザインでは、1 行のテキストを作成することができます。Text は、サイズがテキスト自体の関数である Rectangle のようなものです。
標準
Name |
[タイプ] |
説明 |
text
|
文字列
|
表示する文字列です。 |
ルール
Name |
[タイプ] |
説明 |
幅
|
数値
|
文字列の合計幅です。Rectangle の width パラメータをオーバーライドします。 |
height
|
数値
|
文字列の合計高さです。Rectangle の height パラメータをオーバーライドします。 |
グループ ルール
例 1
名前: |
text_Ex01
|
Design: |
BasePart
|
子の名前: |
myText
|
子のデザイン: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
[文字]
|
文字列
|
"Lorem"
|
例 2
名前: |
text_Ex02
|
Design: |
BasePart
|
子の名前: |
myRectangle
|
子のデザイン: |
:Rectangle
|
[名前]
|
[タイプ]
|
指定値
|
height
|
数値
|
1 |
幅
|
数値
|
3 |
color
|
文字列
|
"blue"
|
linePattern |
文字列
|
"Dotted"
|
子の名前: |
txtLabel
|
子のデザイン: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
[文字]
|
文字列
|
makeString(myRectangle.DesignName) |
charHeight |
数値
|
0.25 |
例 3
名前: |
text_Ex03
|
Design: |
BasePart
|
子の名前: |
myRectangle
|
子のデザイン: |
:Rectangle
|
[名前]
|
[タイプ]
|
指定値
|
height
|
数値
|
5 |
幅
|
数値
|
3 |
color
|
文字列
|
"jungle green"
|
linePattern |
文字列
|
"Dotted"
|
子の名前: |
txtWidth
|
子のデザイン: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
[文字]
|
文字列
|
format("width %d", myRectangle.width)
|
eBottom |
点
|
myRectangle.eTop + Me.unitY * 0.3
|
charHeight |
数値
|
0.5 |
子の名前: |
txtHeight
|
子のデザイン: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
[文字]
|
文字列
|
format("width %d", myRectangle.height)
|
eBottom |
点
|
myRectangle.eLeft + unitX * 0.3
|
charHeight |
数値
|
0.5 |
xDirection |
ベクトル
|
Me.unitY |
yDirection |
ベクトル
|
-Me.unitX |
例 4
名前: |
text_Ex04
|
Design: |
BasePart
|
子の名前: |
myText
|
子のデザイン: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
text
|
文字列
|
"Lorem"
|
textFont |
文字列
|
"ariali.ttf"
|
例 5
名前: |
text_Ex05
|
Design: |
BasePart
|
子の名前: |
myText
|
子のデザイン: |
:Text
|
[名前]
|
[タイプ]
|
指定値
|
text
|
文字列
|
"~u21222" |
textFont |
文字列
|
"ariali.ttf" |