项目

一般

简介

主界面自定义功能按钮 » 历史记录 » 修订 2

修订 1 (yangdefeng, 2023-04-07 21:20) → 修订 2/3 (tejie, 2025-01-07 10:29)

{{toc}} 

 h3. 主界面自定义功能按钮 

 标签:自定义按钮| 

 - 
 - 

 h3. 按钮位置示意 
 !clipboard-202105261000-klgsy.png! 

 h3. 按钮创建 

 相关命令 

 _*{color:green}addButton*_ 

 *格式:* 
 |_.命令名 |_.参数1|_.参数2       |_.参数3 |_.参数4           |_.参数5       |_.参数6         | 
 |addButton|图片     |脚本触发序号|按钮位置|按钮上显示的文字|按钮存在时间|是否显示倒计时| 

 *说明:* 
 * 参数1: 按钮的美术资源,参见资源编辑器 

 * 参数2: 脚本触发序号,触发[[QFunction触发器|QFunction]]里面的[@ButtonClickX]X即为触发序号 

 * 参数3: 界面上的位置 

 * 参数4: 按钮上显示的文,支持:文字颜色|文字 

 * 参数5: 按钮存在时长,单位分钟,超时关闭按钮 

 * 参数6: 是否显示倒计时(1显示,0不显示),倒计时格式:时:分:秒 

 * 参数5、6可以缺省 

 bq. 用例: 
 %{color:lightGrey};..\Mir200\Envir\MapQuest_Def\QManage.txt登录部分定义% 
 [@login] 
 #act 
 addButton    0000164 1 1 89|新人导航 
 addButton    0000017 2 2 89|商城 
 addButton    0000025 3 3 89|修炼秘境 
 addButton    0000009 4 4 89|综合服务 
 addButton    0000005 6 6 89|回馈礼包 
 addButton    0000023 7 7 89|充值 
 addButton    0000028 8 8 89|装备回收 
 addButton    0000158 9 9 89|仙台境界 

 

 h3. 按钮触发 

 *%{color:firebrick}触发文件路径%* 
 ..\Mir200\Envir\Market_Def\QFunction-0.txt 

 *%{color:firebrick}对应的触发器%* 
 [@buttonClickX] 
 X表示对应的按钮序号 

 - 
 - 

 h4. *%{color:deepskyblue}特戒引擎脚本示例:%* *%{color:deepskyblue}脚本示例:%* 

 bq. %{color:lightGrey};..\Mir200\Envir\Market_Def\QFunction-0.txt% 
 %{color:lightGrey};1号按钮触发% 
 [<notextile>@</notextile>buttonClick1] 
 #call [\功能脚本\新人导航\新人导航.txt] <notextile>@</notextile>新人导航开始 
 %{color:lightGrey};2号按钮触发% 
 [<notextile>@</notextile>buttonClick2] 
 #act 
 openShoppingMall 
 %{color:lightGrey};3号按钮触发% 
 [<notextile>@</notextile>buttonClick3] 
 #call [\功能脚本\狂暴之力\修炼秘境.txt] <notextile>@</notextile>修炼秘境开始 
 %{color:lightGrey};4号按钮触发% 
 [<notextile>@</notextile>buttonClick4] 
 #act 
 #call [\功能脚本\综合服务\综合服务.txt] <notextile>@</notextile>综合服务开始 
 %{color:lightGrey};5号按钮触发% 
 [<notextile>@</notextile>buttonClick5] 
 #act 
 #call [\功能脚本\Q群礼包\Q群礼包.txt] <notextile>@</notextile>Q群礼包开始 
 %{color:lightGrey};6号按钮触发% 
 [<notextile>@</notextile>buttonClick6] 
 #act 
 #call [\功能脚本\回馈礼包\回馈礼包.txt] <notextile>@</notextile>回馈礼包开始 
 %{color:lightGrey};7号按钮触发% 
 [<notextile>@</notextile>buttonClick7] 
 #act 
 openCharge 
 %{color:lightGrey};8号按钮触发% 
 [<notextile>@</notextile>buttonClick8] 
 #act 
 #call [\功能脚本\在线回收\开始回收.txt] <notextile>@</notextile>回收开始了 
 %{color:lightGrey};9号按钮触发% 
 [<notextile>@</notextile>buttonClick9] 
 #call [\功能脚本\仙台境界\仙台境界.txt] <notextile>@</notextile>仙台境界开始