项目

一般

简介

Dlg childDlg » 历史记录 » 修订 2

修订 1 (machenhe, 2022-04-29 14:08) → 修订 2/4 (machenhe, 2022-04-29 14:08)

_*{color:green}childDlg*_ 
 设置子对话框(二级对话框) 

 标签:命令定义|<childDlg 标签:命令定义|dlg_childDlg 

 *格式* 
 |命令名    |参数1         |参数2         |参数3           |参数4         |参数5         |参数6         |参数7         | 
 |childDlg|子对话框内容|子对话框名称|背景图资源名称|显示位置      |x偏移         |y偏移         |关闭跳转标签| 


 *说明* 
 * 参数1:子对话框内容 
 ** 包含在\"()\"内 
 ** 以<itemSize:>定义开头 
 &nbsp; _举例 
 mov s$子对话框 (<itemSize:400:520> 
 inc s$子对话框 <text:子对话框1{scolor=150}:100:40> 
 inc s$子对话框 ) 
 _ 

 * 参数2:子对话框名称 

 * 参数3:背景图资源名称,参见[[资源编辑器]] 

 * 参数4:子对话框在主对话框中的位置 
 ** 0 左上 
 ** 1 右上 
 ** 2 左下 
 ** 3 右下 
 ** 4 居中 

 * 参数5:相对于参数4的x偏移 

 * 参数6:相对于参数4的偏移 

 * 参数7:关闭子对话框后的跳转标签 
 点击子对话框外部任意处, 
 可关闭子对话框 
 跳转至参数7标记的标签 


 - 
 - 

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

 bq. [<notextile>@</notextile>main] 
 #act 
 [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 
 #say 
 <[[dlg_panelSize_|panelSize]]:1000:800>\\ 
 <[[dlg_text_|text]]:主对话框:50:50> 
 <text:打开子对话框1:50:150/<notextile>@</notextile>childDlg1> 
 <text:打开子对话框2:50:200/<notextile>@</notextile>childDlg2> 
 &nbsp; 
 #if 
 [[equal]] s$子界面 1 
 #say 
 <notextile><</notextile>*{color:green}childDlg*:<$str(s$myContainer)>:子对话框1名子:ok_di:4:0:0/<notextile>@</notextile>close> 
 &nbsp; 
 #if 
 equal s$子界面 2 
 #say 
 <childDlg:<$str(s$myContainer1)>:子对话框2名子:ok_di:4:0:0/<notextile>@</notextile>close> 
 &nbsp; 
 [<notextile>@</notextile>iniChildDlg] 
 #act 
 [[mov]] s$myContainer (<itemSize:400:520> 
 [[inc]] s$myContainer <text:子对话框1{scolor=150}:100:40> 
 inc s$myContainer ) 
 &nbsp; 
 #act 
 mov s$myContainer1 (<itemSize:600:600> 
 inc s$myContainer1 <text:子对话框2{scolor=150}:100:40>) 
 &nbsp; 
 [<notextile>@</notextile>childDlg1] 
 #act 
 mov s$子界面 1 
 goto <notextile>@</notextile>iniChildDlg 
 goto <notextile>@</notextile>main 
 &nbsp; 
 [<notextile>@</notextile>childDlg2] 
 #act 
 mov s$子界面 2 
 goto <notextile>@</notextile>iniChildDlg 
 goto <notextile>@</notextile>main 
 &nbsp; 
 [<notextile>@</notextile>close] 
 #act 
 mov s$子界面 0 
 goto <notextile>@</notextile>main