项目

一般

简介

SetMsgBtn » 历史记录 » 修订 2

修订 1 (machenhe, 2022-04-28 17:12) → 修订 2/3 (yangdefeng, 2022-06-01 15:20)

h4. _*%{color:green}setMsgBtn%*_ 

 
 主界面添加或删除一个消息提示按钮 

 标签:命令定义|setMsgBtn 

 *格式* 
 |_.命令名 	 |_.参数1 	 |_.参数2 	 |_.参数3 	 |_.参数4 	 | 
 |setMsgBtn 	 |消息按钮id 	 |添加删除标识 	 |按钮图片 	 |@跳转标签 	 | 

 *说明* 
 * 参数1: 消息按钮id(1,2,3,最多3个) 

 * 参数2: 添加删除标识 
 ** 1 添加按钮 
 ** 0 删除按钮 

 * 参数3: 添加按钮的图片资源 
 参见资源管理器 

 * 参数4: @跳转标签 

 - 
 - 

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

 以下示例请配置补丁资源\"lc\" 
 即,找到以下配置项,加入 %{color:deeppink}lc% 
 |配置文件|...\\Mir200\\Tejieconfig\\Tejieconfig.txt| 
 |配置节点|[tjconfig]| 
 |配置项    |patch=aa,cc,lc| 


 bq. [<notextile>@</notextile>main] 
 #act 
 setMsgBtn 1 1 lc_shuoming <notextile>@</notextile>跳转标签1 
 setMsgBtn 2 1 lc_shuoming <notextile>@</notextile>跳转标签2 
 setMsgBtn 3 1 lc_shuoming <notextile>@</notextile>跳转标签3 
 &nbsp; 
 [<notextile>@</notextile>跳转标签1] 
 #say 
 <text:你点击了1号消息按钮/<notextile>@</notextile>关闭消息1提示> 
 &nbsp; 
 [<notextile>@</notextile>跳转标签2] 
 #say 
 <text:你点击了2号消息按钮/<notextile>@</notextile>关闭消息2提示> 
 &nbsp; 
 [<notextile>@</notextile>跳转标签3] 
 #say 
 <text:你点击了3号消息按钮/<notextile>@</notextile>关闭消息3提示> 
 &nbsp; 
 [<notextile>@</notextile>关闭消息1提示] 
 #act 
 setMsgBtn 1 0 
 close 
 &nbsp; 
 [<notextile>@</notextile>关闭消息2提示] 
 #act 
 setMsgBtn 2 0 
 close 
 &nbsp; 
 [<notextile>@</notextile>关闭消息3提示] 
 #act 
 setMsgBtn 3 0 
 close