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