Dlg textEx » 历史记录 » 版本 7
yangdefeng, 2022-06-17 08:11
1 | 5 | yangdefeng | h4. _*%{color:green}<textEx:%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 3 | yangdefeng | 标签:命令定义|dlg_textEx: |
4 | 1 | machenhe | |
5 | *定义* |
||
6 | 自定义对话框中设置一段文本,支持多颜色 |
||
7 | 2 | yangdefeng | 参数之间以":"为分割符 |
8 | 1 | machenhe | |
9 | *使用前提* |
||
10 | 配置Tejieconfig.txt |
||
11 | 开启对应开关 |
||
12 | ** 文件位置 |
||
13 | 2 | yangdefeng | ..\Mir200\Tejieconfig\Tejieconfig.txt |
14 | 1 | machenhe | ** 对应开关 |
15 | [tjconfig] |
||
16 | 2 | yangdefeng | %{color:lightGrey};(=1时开启,=0时关闭,缺省时关闭)% |
17 | 1 | machenhe | isUseCustomOKPanel=1 |
18 | |||
19 | - |
||
20 | - |
||
21 | |||
22 | *格式* |
||
23 | 4 | yangdefeng | |命令名|参数1 |参数2 |参数3 |参数4 |参数5 |参数6| |
24 | |textEx|文本内容|文本颜色|坐标X,坐标Y|文本宽度,对齐方式 |行间距|字号 | |
||
25 | 1 | machenhe | |
26 | - |
||
27 | - |
||
28 | *说明* |
||
29 | 2 | yangdefeng | * 参数1: 文本内容,不同颜色字以","分隔 |
30 | 1 | machenhe | _%{color:lightGrey}举例 |
31 | 文字1,文字2,文字3%_ |
||
32 | |||
33 | 2 | yangdefeng | * 参数2: 文字颜色,多颜色以","分隔 |
34 | 1 | machenhe | _%{color:lightGrey}举例 |
35 | 颜色1,颜色2,颜色3%_ |
||
36 | |||
37 | 4 | yangdefeng | * 参数3: 文本块在自定义对话框中的x坐标,y坐标 |
38 | 1 | machenhe | |
39 | 4 | yangdefeng | * 参数4: 文本宽度,对齐方式 |
40 | 1 | machenhe | ** 文本块宽度,达到宽度时会自动换行 |
41 | ** 对齐方式 |
||
42 | 0 左对齐 |
||
43 | 1 居中对齐 |
||
44 | 2 右对齐 |
||
45 | 对齐方式缺省时,为左对齐 |
||
46 | |||
47 | 4 | yangdefeng | * 参数5: 文本块中文字的行间距 |
48 | 1 | machenhe | |
49 | 4 | yangdefeng | * 参数6: 文本块中文字字号 |
50 | 1 | machenhe | |
51 | - |
||
52 | - |
||
53 | |||
54 | 5 | yangdefeng | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
55 | 1 | machenhe | |
56 | bq. [@main] |
||
57 | #if |
||
58 | #act |
||
59 | 2 | yangdefeng | mov s$text "我是一号 我是一号我是一号我是一号我是一号我是一号我是一号我是一号,我是二号,我是三号" |
60 | 1 | machenhe | mov s$color 14,146,222 |
61 | |
||
62 | #if |
||
63 | #say |
||
64 | 5 | yangdefeng | <notextile><</notextile>*{color:green}textEx*:<$str(s$text)>:<$str(s$color)>:40,50:300:1.5:30> |
65 | 1 | machenhe | |
66 | - |
||
67 | - |
||
68 | |||
69 | bq. [@main] |
||
70 | #say |
||
71 | 7 | yangdefeng | <notextile><</notextile>*{color:green}textEx*:我是左对齐1,我是左对齐2:60,180:0,30:500,0:1:30> |
72 | 5 | yangdefeng | <notextile><</notextile>*{color:green}textEx*:我是居中对齐1,我是居中对齐2:160,90:0,130:500,1:1:30> |
73 | <notextile><</notextile>*{color:green}textEx*:我是右对齐2,我是右对齐2:20,240:0,230:500,2:1:30> |