主界面自定义功能按钮 » 历史记录 » 版本 2
tejie, 2025-01-07 10:29
1 | 1 | yangdefeng | {{toc}} |
---|---|---|---|
2 | |||
3 | h3. 主界面自定义功能按钮 |
||
4 | |||
5 | 标签:自定义按钮| |
||
6 | |||
7 | - |
||
8 | - |
||
9 | |||
10 | h3. 按钮位置示意 |
||
11 | !clipboard-202105261000-klgsy.png! |
||
12 | |||
13 | h3. 按钮创建 |
||
14 | |||
15 | 相关命令 |
||
16 | |||
17 | _*{color:green}addButton*_ |
||
18 | |||
19 | *格式:* |
||
20 | |_.命令名 |_.参数1|_.参数2 |_.参数3 |_.参数4 |_.参数5 |_.参数6 | |
||
21 | |addButton|图片 |脚本触发序号|按钮位置|按钮上显示的文字|按钮存在时间|是否显示倒计时| |
||
22 | |||
23 | *说明:* |
||
24 | * 参数1: 按钮的美术资源,参见资源编辑器 |
||
25 | |||
26 | * 参数2: 脚本触发序号,触发[[QFunction触发器|QFunction]]里面的[@ButtonClickX]X即为触发序号 |
||
27 | |||
28 | * 参数3: 界面上的位置 |
||
29 | |||
30 | * 参数4: 按钮上显示的文,支持:文字颜色|文字 |
||
31 | |||
32 | * 参数5: 按钮存在时长,单位分钟,超时关闭按钮 |
||
33 | |||
34 | * 参数6: 是否显示倒计时(1显示,0不显示),倒计时格式:时:分:秒 |
||
35 | |||
36 | * 参数5、6可以缺省 |
||
37 | |||
38 | bq. 用例: |
||
39 | %{color:lightGrey};..\Mir200\Envir\MapQuest_Def\QManage.txt登录部分定义% |
||
40 | [@login] |
||
41 | #act |
||
42 | addButton 0000164 1 1 89|新人导航 |
||
43 | addButton 0000017 2 2 89|商城 |
||
44 | addButton 0000025 3 3 89|修炼秘境 |
||
45 | addButton 0000009 4 4 89|综合服务 |
||
46 | addButton 0000005 6 6 89|回馈礼包 |
||
47 | addButton 0000023 7 7 89|充值 |
||
48 | addButton 0000028 8 8 89|装备回收 |
||
49 | addButton 0000158 9 9 89|仙台境界 |
||
50 | |||
51 | h3. 按钮触发 |
||
52 | |||
53 | *%{color:firebrick}触发文件路径%* |
||
54 | ..\Mir200\Envir\Market_Def\QFunction-0.txt |
||
55 | |||
56 | *%{color:firebrick}对应的触发器%* |
||
57 | [@buttonClickX] |
||
58 | X表示对应的按钮序号 |
||
59 | |||
60 | - |
||
61 | - |
||
62 | |||
63 | 2 | tejie | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
64 | 1 | yangdefeng | |
65 | bq. %{color:lightGrey};..\Mir200\Envir\Market_Def\QFunction-0.txt% |
||
66 | %{color:lightGrey};1号按钮触发% |
||
67 | [<notextile>@</notextile>buttonClick1] |
||
68 | #call [\功能脚本\新人导航\新人导航.txt] <notextile>@</notextile>新人导航开始 |
||
69 | %{color:lightGrey};2号按钮触发% |
||
70 | [<notextile>@</notextile>buttonClick2] |
||
71 | #act |
||
72 | openShoppingMall |
||
73 | %{color:lightGrey};3号按钮触发% |
||
74 | [<notextile>@</notextile>buttonClick3] |
||
75 | #call [\功能脚本\狂暴之力\修炼秘境.txt] <notextile>@</notextile>修炼秘境开始 |
||
76 | %{color:lightGrey};4号按钮触发% |
||
77 | [<notextile>@</notextile>buttonClick4] |
||
78 | #act |
||
79 | #call [\功能脚本\综合服务\综合服务.txt] <notextile>@</notextile>综合服务开始 |
||
80 | %{color:lightGrey};5号按钮触发% |
||
81 | [<notextile>@</notextile>buttonClick5] |
||
82 | #act |
||
83 | #call [\功能脚本\Q群礼包\Q群礼包.txt] <notextile>@</notextile>Q群礼包开始 |
||
84 | %{color:lightGrey};6号按钮触发% |
||
85 | [<notextile>@</notextile>buttonClick6] |
||
86 | #act |
||
87 | #call [\功能脚本\回馈礼包\回馈礼包.txt] <notextile>@</notextile>回馈礼包开始 |
||
88 | %{color:lightGrey};7号按钮触发% |
||
89 | [<notextile>@</notextile>buttonClick7] |
||
90 | #act |
||
91 | openCharge |
||
92 | %{color:lightGrey};8号按钮触发% |
||
93 | [<notextile>@</notextile>buttonClick8] |
||
94 | #act |
||
95 | #call [\功能脚本\在线回收\开始回收.txt] <notextile>@</notextile>回收开始了 |
||
96 | %{color:lightGrey};9号按钮触发% |
||
97 | [<notextile>@</notextile>buttonClick9] |
||
98 | #call [\功能脚本\仙台境界\仙台境界.txt] <notextile>@</notextile>仙台境界开始 |