SetCheckBox » 历史记录 » 版本 1
machenhe, 2022-04-22 14:54
1 | 1 | machenhe | _*%{color:green}setCheckBox%*_ |
---|---|---|---|
2 | 脚本设置checkBox选中状态 |
||
3 | |||
4 | 标签:命令定义|setCheckBox |
||
5 | |||
6 | *格式* |
||
7 | |_.命令名 |_.参数1 |_.参数2 | |
||
8 | |setCheckBox |指定checkBox |0不选,1勾选 | |
||
9 | |||
10 | *说明* |
||
11 | * 参数1 |
||
12 | 指定checkBox |
||
13 | 举例 |
||
14 | checkBox0 |
||
15 | checkBox1 |
||
16 | ...... |
||
17 | |||
18 | * 参数2 |
||
19 | 是否勾选 |
||
20 | ** 0不选 |
||
21 | ** 1勾选 |
||
22 | |||
23 | * 参考 |
||
24 | 对话框相关命令的用法 |
||
25 | [[dlg_checkBox |<checkBox:]] |
||
26 | - |
||
27 | - |
||
28 | |||
29 | *%{color:deepskyblue}脚本示例:%* |
||
30 | |||
31 | bq. [<notextile>@</notextile>main] |
||
32 | #if |
||
33 | not checkLevelEx > 59 |
||
34 | #act |
||
35 | mov n$勾选0 0 |
||
36 | |
||
37 | #if |
||
38 | #say |
||
39 | <checkbox:0:settings_markbg:settings_mark:<$str(n$勾选0)>:50:50/<notextile>@</notextile>勾选0> |
||
40 | <text:勾选框:120:50> |
||
41 | |
||
42 | |
||
43 | [<notextile>@</notextile>勾选0] |
||
44 | #if |
||
45 | equal <$str(n$勾选0)> 0 |
||
46 | checkLevelEx > 59 |
||
47 | #act |
||
48 | mov n$勾选0 1 |
||
49 | setCheckBox checkBox0 <$str(n$勾选0)> |
||
50 | sendTipsMsg 特戒提示:角色等级小于60就不能勾选了/sColor=150 |
||
51 | goto <notextile>@</notextile>main |
||
52 | break |
||
53 | |
||
54 | #if |
||
55 | equal <$str(n$勾选0)> 1 |
||
56 | checkLevelEx > 59 |
||
57 | #act |
||
58 | mov n$勾选0 0 |
||
59 | setCheckBox checkBox0 <$str(n$勾选0)> |
||
60 | sendTipsMsg 特戒提示:角色等级小于60就不能勾选了/sColor=150 |
||
61 | goto <notextile>@</notextile>main |
||
62 | break |
||
63 | |
||
64 | #if |
||
65 | not checkLevelEx > 59 |
||
66 | #act |
||
67 | mov n$勾选0 0 |
||
68 | setCheckBox checkBox0 <$str(n$勾选0)> |
||
69 | sendTipsMsg 特戒提示:角色等级请达到60/sColor=150 |
||
70 | goto <notextile>@</notextile>main |
||
71 | break |