项目

一般

简介

Dlg childDlg » 历史记录 » 版本 2

machenhe, 2022-04-29 14:08

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