SetMsgBtn » 历史记录 » 版本 1
machenhe, 2022-04-28 17:12
1 | 1 | machenhe | _*%{color:green}setMsgBtn%*_ |
---|---|---|---|
2 | 主界面添加或删除一个消息提示按钮 |
||
3 | |||
4 | 标签:命令定义|setMsgBtn |
||
5 | |||
6 | *格式* |
||
7 | |_.命令名 |_.参数1 |_.参数2 |_.参数3 |_.参数4 | |
||
8 | |setMsgBtn |消息按钮id |添加删除标识 |按钮图片 |@跳转标签 | |
||
9 | |||
10 | *说明* |
||
11 | * 参数1: 消息按钮id(1,2,3,最多3个) |
||
12 | |||
13 | * 参数2: 添加删除标识 |
||
14 | ** 1 添加按钮 |
||
15 | ** 0 删除按钮 |
||
16 | |||
17 | * 参数3: 添加按钮的图片资源 |
||
18 | 参见资源管理器 |
||
19 | |||
20 | * 参数4: @跳转标签 |
||
21 | |||
22 | - |
||
23 | - |
||
24 | |||
25 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
26 | |||
27 | 以下示例请配置补丁资源\"lc\" |
||
28 | 即,找到以下配置项,加入 %{color:deeppink}lc% |
||
29 | |配置文件|...\\Mir200\\Tejieconfig\\Tejieconfig.txt| |
||
30 | |配置节点|[tjconfig]| |
||
31 | |配置项 |patch=aa,cc,lc| |
||
32 | |||
33 | |||
34 | bq. [<notextile>@</notextile>main] |
||
35 | #act |
||
36 | setMsgBtn 1 1 lc_shuoming <notextile>@</notextile>跳转标签1 |
||
37 | setMsgBtn 2 1 lc_shuoming <notextile>@</notextile>跳转标签2 |
||
38 | setMsgBtn 3 1 lc_shuoming <notextile>@</notextile>跳转标签3 |
||
39 | |
||
40 | [<notextile>@</notextile>跳转标签1] |
||
41 | #say |
||
42 | <text:你点击了1号消息按钮/<notextile>@</notextile>关闭消息1提示> |
||
43 | |
||
44 | [<notextile>@</notextile>跳转标签2] |
||
45 | #say |
||
46 | <text:你点击了2号消息按钮/<notextile>@</notextile>关闭消息2提示> |
||
47 | |
||
48 | [<notextile>@</notextile>跳转标签3] |
||
49 | #say |
||
50 | <text:你点击了3号消息按钮/<notextile>@</notextile>关闭消息3提示> |
||
51 | |
||
52 | [<notextile>@</notextile>关闭消息1提示] |
||
53 | #act |
||
54 | setMsgBtn 1 0 |
||
55 | close |
||
56 | |
||
57 | [<notextile>@</notextile>关闭消息2提示] |
||
58 | #act |
||
59 | setMsgBtn 2 0 |
||
60 | close |
||
61 | |
||
62 | [<notextile>@</notextile>关闭消息3提示] |
||
63 | #act |
||
64 | setMsgBtn 3 0 |
||
65 | close |