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