项目

一般

简介

Dlg imgButton » 历史记录 » 修订 2

修订 1 (machenhe, 2022-04-29 13:02) → 修订 2/4 (yangdefeng, 2022-05-07 23:50)

_*{color:green}imgButton*_ 
 支持配置文字的图片按钮 

 标签:命令定义|dlg_imgButton 

 *格式* 
 |命令名     | 参数1    |参数2|参数3|参数4     |参数5| 
 |imgButton|图片名称|X偏移|Y偏移|按钮文字|跳转 | 

 *说明* 
 * 参数1: 图片资源名称,参见[[资源编辑器]] 

 * 参数2: X偏移,在自定义对话框中的X偏移 

 * 参数3: Y偏移,在自定义对话框中的Y偏移 

 * 参数4: 按钮文字及字色 
 格式: 按钮文字{字色} 
 示例 
 按钮文字{autoColor=250,251,252,253,254} 
 按钮文字{fColor=251} 

 * 参数5: 跳转标签 


 - 
 - 

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

 *使用前提1* 
 请开启配置开关\"isUseCustomOKPanel\" 
 |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |配置文件|...\\Mir200\\Tejieconfig\\Tejieconfig.txt 	 | 
 |配置节点|[tjconfig] 					 | 
 |配置项    |isUseCustomOkPanel=1 				 | 


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

 - 
 - 

 bq. [<notextile>@</notextile>main] 
 #act 
 [[openMerchantBigDlg]] ok_di 0 0 0 1 0 0 
 #say 
 <notextile><</notextile>*{color:green}imgButton*:lc_shijieliaotian_xuanzhong:50:50:点击按钮{AUTOCOLOR=250,251,252,253,254}/<notextile>@</notextile>跳转标签> 
 &nbsp; 
 [<notextile>@</notextile>跳转标签] 
 #act 
 [[close]] 
 [[messageBox]] 欢迎使用特戒引擎