项目

一般

简介

Dlg childDlg » 历史记录 » 版本 5

tejie, 2025-09-23 17:54

1 5 tejie
h4. _*{color:green}<childDlg:*_
2 4 tejie
3 1 machenhe
设置子对话框(二级对话框)
4
5 5 tejie
不推荐使用的旧有命令,
6
推荐使用 [[addUiDlg]] 参数2=12 实现
7
8
标签:命令定义^<childDlg:
9 1 machenhe
10
*格式*
11
|命令名  |参数1       |参数2       |参数3         |参数4       |参数5       |参数6       |参数7       |
12
|childDlg|子对话框内容|子对话框名称|背景图资源名称|显示位置    |x偏移       |y偏移       |关闭跳转标签|
13
14
15
*说明*
16
* 参数1:子对话框内容
17 3 yangdefeng
** 包含在"()"内
18 1 machenhe
** 以<itemSize:>定义开头
19
&nbsp; _举例
20
mov s$子对话框 (<itemSize:400:520>
21
inc s$子对话框 <text:子对话框1{scolor=150}:100:40>
22
inc s$子对话框 )
23
_
24
25
* 参数2:子对话框名称
26
27
* 参数3:背景图资源名称,参见[[资源编辑器]]
28
29
* 参数4:子对话框在主对话框中的位置
30
** 0 左上
31
** 1 右上
32
** 2 左下
33
** 3 右下
34
** 4 居中
35
36
* 参数5:相对于参数4的x偏移
37
38
* 参数6:相对于参数4的偏移
39
40
* 参数7:关闭子对话框后的跳转标签
41
点击子对话框外部任意处,
42
可关闭子对话框
43
跳转至参数7标记的标签
44
45
46
-
47
-
48
49 4 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
50 1 machenhe
51
bq. [<notextile>@</notextile>main]
52
#act
53
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
54
#say
55 4 tejie
<[[dlg_panelSize_|panelSize2]]:1000:800>\\
56 1 machenhe
<[[dlg_text_|text]]:主对话框:50:50>
57
<text:打开子对话框1:50:150/<notextile>@</notextile>childDlg1>
58
<text:打开子对话框2:50:200/<notextile>@</notextile>childDlg2>
59
&nbsp;
60
#if
61
[[equal]] s$子界面 1
62
#say
63
<notextile><</notextile>*{color:green}childDlg*:<$str(s$myContainer)>:子对话框1名子:ok_di:4:0:0/<notextile>@</notextile>close>
64
&nbsp;
65
#if
66
equal s$子界面 2
67
#say
68
<childDlg:<$str(s$myContainer1)>:子对话框2名子:ok_di:4:0:0/<notextile>@</notextile>close>
69
&nbsp;
70
[<notextile>@</notextile>iniChildDlg]
71
#act
72
[[mov]] s$myContainer (<itemSize:400:520>
73
[[inc]] s$myContainer <text:子对话框1{scolor=150}:100:40>
74
inc s$myContainer )
75
&nbsp;
76
#act
77
mov s$myContainer1 (<itemSize:600:600>
78
inc s$myContainer1 <text:子对话框2{scolor=150}:100:40>)
79
&nbsp;
80
[<notextile>@</notextile>childDlg1]
81
#act
82
mov s$子界面 1
83
goto <notextile>@</notextile>iniChildDlg
84
goto <notextile>@</notextile>main
85
&nbsp;
86
[<notextile>@</notextile>childDlg2]
87
#act
88
mov s$子界面 2
89
goto <notextile>@</notextile>iniChildDlg
90
goto <notextile>@</notextile>main
91
&nbsp;
92
[<notextile>@</notextile>close]
93
#act
94
mov s$子界面 0
95
goto <notextile>@</notextile>main