项目

一般

简介

MessageBox » 历史记录 » 版本 3

tejie, 2026-03-20 12:02

1 3 tejie
h4. _*%{color:green}messageBox%*_
2
3 1 machenhe
弹出文字信息对话框
4
5 3 tejie
标签:命令^messageBox
6 1 machenhe
7
*格式*
8
|_.命令		|_.参数1	|_.参数2	|_.参数3	|
9
|messageBox	|文字信息	|跳转标签	|对齐方式	|
10
11
*说明*
12 3 tejie
|^.参数1|支持变量形式的字符串
13
可使用"\"换行|
14
|^.参数2|空格分隔的跳转标签
15 1 machenhe
最多支持4个
16 3 tejie
对话框底部居中分布|
17
|^.参数3|文字对话方式
18
 /*0 居中对齐
19
 /*1 左对齐
20
 /*2 右对齐
21
 缺省时默认居中对齐|
22 1 machenhe
23
24 3 tejie
h4 *%{color:deepskyblue}特戒引擎脚本示例%*
25 1 machenhe
26
bq. [@main]
27
#act
28 3 tejie
messagebox 所在地图:%m\角色:<$userName>\其它信息 <notextile>@1 @2 @3 @4</notextile> /*1
29 1 machenhe
%{color:lightGrey};点击按钮1跳转%
30
<notextile>[@1]</notextile>
31
#act
32
sendMsg 6 点击了按钮1
33
%{color:lightGrey};点击按钮2跳转%
34
<notextile>[@2]</notextile>
35
#act
36
sendMsg 6 点击了按钮2
37
%{color:lightGrey};点击按钮3跳转%
38
<notextile>[@3]</notextile>
39
#act
40
sendMsg 6 点击了按钮3
41
%{color:lightGrey};点击按钮4跳转%
42
<notextile>[@4]</notextile>
43
#act
44
sendMsg 6 点击了按钮4