项目

一般

简介

AddDlg » 历史记录 » 修订 2

修订 1 (machenhe, 2022-04-28 17:13) → 修订 2/3 (yangdefeng, 2022-06-21 13:58)

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

 
 主界面左侧边栏添加自定义对话框内容 

 标签:命令定义|addDlg 

 *格式* 
 |_.命令名 	 |_.参数1 	 |_.参数2 	 |_.参数3 	 |_.参数4 	 |_.参数5 	 | 
 |addDlg 		 |侧边对话框编号 	 |展示内容 	 |平台类型 	 |标签页图片组 	 |创建或刷新 	 | 

 *说明* 
 * 参数1: 侧边对话框编号 
            
 支持多个左侧边栏自定义对话框 

 * 参数2: 展示内容,同一id的左侧边栏自定义对话框,支持两个独立标签页 
            格式如下: 
            dlg:上方标签页内容文本dlg:下方标签页内容文本 展示内容 
 一个id的左侧边栏自定义对话框,支持两个独立标签页 

 * 参数3: 平台类型 
 ** 1 手机 
 ** 2 PC 

 * 参数4: 标签页图片组,格式如下 
            
 标签页1按钮未选中图片,标签页1按钮选中图片,标签页2按钮未选中图片,标签页2按钮选中图片 

 * 参数5: 创建或刷新 
 ** 0 创建新的侧边栏对话框 
 ** 1 刷新已存在的侧边栏对话框 


 - 
 - 

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

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


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

 - 
 - 

 bq. [<notextile>@</notextile>main] 
 #act 
 [[mov]] s$dlgUpIni  
 [[inc]] s$dlgUpIni <[[dlg_text_|text]]:魔神个人页面{fcolor=251}:50:20> 
 [[inc]] s$dlgUpIni <[[dlg_img_|img]]:settings_jiantou_you:0:4:1:1> 
 [[inc]] s$dlgUpIni <[[dlg_img_|img]]:settings_jiantou_zuo:220:4:1:1> 
 [[inc]] s$dlgUpIni <[[dlg_text_|text]]:点击行会页签试试吧{fcolor=103}:12:175> 
 [[inc]] s$dlgUpIni <[[dlg_text_|text]]:特戒引擎持续更新中{fcolor=103}:12:275> 
 [[inc]] s$dlgUpIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/<notextile>@</notextile>行会魔神介绍> 
 [[inc]] s$dlgUpIni <[[dlg_text_|text]]:介绍{fcolor=103}:375:185:50:1:20> 
 [[inc]] s$dlgUpIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_changtai:360:220:1:1/<notextile>@</notextile>退出行会魔神> 
 [[inc]] s$dlgUpIni <[[dlg_text_|text]]:退出{fcolor=103}:375:275:50:1:20> 
 &nbsp; 
 [[mov]] s$dlgDownIni 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:魔神行会页面{fcolor=251}:50:20> 
 [[inc]] s$dlgDownIni <[[dlg_img_|img]]:settings_jiantou_you:0:4:1:1> 
 [[inc]] s$dlgDownIni <[[dlg_img_|img]]:settings_jiantou_zuo:220:4:1:1> 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:查看介绍时间刷新{fcolor=103}:40:90> 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:<notextile>~~~<$time>~~~</notextile>{fcolor=222}:20:130> 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:点击个人页签试试{fcolor=103}:40:175> 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:特戒引擎服务至上{fcolor=103}:40:275> 
 [[inc]] s$dlgDownIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/<notextile>@</notextile>行会魔神介绍> 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:介绍{fcolor=103}:375:185:50:1:20> 
 [[inc]] s$dlgDownIni <[[dlg_img_|img]]:lc_xiaofei_shuzi_changtai:360:220:1:1/<notextile>@</notextile>退出行会魔神> 
 [[inc]] s$dlgDownIni <[[dlg_text_|text]]:退出{fcolor=103}:375:275:50:1:20> 
 &nbsp; 
 mov s$setPic main_task_geren_02,main_task_geren_01,main_task_hanghui_02,main_task_hanghui_01 
 &nbsp; 
 %{color:lightGrey};--对话框id 对话框内容(以dlg:分割) 平台类型(1:手机 2:PC) 按钮图片组(未选中1,选中1,未选中2,选中2) 创建或刷新(0:创建 1:刷新)--% 
 *{color:green}addDlg* 1 dlg:<$str(s$dlgUpIni)>dlg:<$str(s$dlgDownIni)> 1 <$str(s$setPic)> 0 
 &nbsp; 
 &nbsp; 
 [<notextile>@</notextile>行会魔神介绍] 
 #say 
 <[[dlg_text_|text]]:行会魔神介绍:0:0> 
 <[[dlg_img_|img]]:lc_quxiaogenbiao:50:60:1:0.65> 
 &nbsp; 
 #act 
 [[mov]] s$dlgUpRefresh 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:魔神行会页面{fcolor=251}:50:20> 
 [[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:settings_jiantou_you:0:4:1:1> 
 [[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:settings_jiantou_zuo:220:4:1:1> 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:查看介绍时间刷新{fcolor=103}:40:90> 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:<notextile>~~~<$time>~~~</notextile>{fcolor=222}:20:130> 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:点击个人页签试试{fcolor=103}:40:175> 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:特戒引擎服务至上{fcolor=103}:40:275> 
 [[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:lc_xiaofei_shuzi_dadao:360:125:1:1:0.7/<notextile>@</notextile>行会魔神介绍> 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:介绍{fcolor=103}:375:185:50:1:20> 
 [[inc]] s$dlgUpRefresh <[[dlg_img_|img]]:lc_xiaofei_shuzi_changtai:360:220:1:1/<notextile>@</notextile>退出行会魔神> 
 [[inc]] s$dlgUpRefresh <[[dlg_text_|text]]:退出{fcolor=103}:375:275:50:1:20> 
 &nbsp; 
 *{color:green}addDlg* 1 dlg:<$str(s$dlgUpIni)>dlg:<$str(s$dlgUpRefresh)> 1 <$str(s$setPic)> 1 
 &nbsp; 
 [<notextile>@</notextile>退出行会魔神] 
 #act 
 [[delDlg]] 1