项目

一般

简介

Dlg circleList » 历史记录 » 版本 4

tejie, 2024-12-12 11:12

1 4 tejie
h4._*%{color:green}<circleList:%*_
2
3 1 yangdefeng
设置对话框中循环列表样式。
4
可适用对话框中100行以上的列表显示
5
6
*{color:red}客户端版本需求: 2.2.2*
7
8
标签:命令定义|dlg_circleList
9
10
*格式*
11 3 tejie
|命令名    |参数1       |参数2                                           |参数3      |参数4                                                  |参数5   |
12
|circleList|循环列表内容|循环列表名称,预留参数写1,预留参数写1,预留参数写1|X坐标,Y坐标|滑动方向,行列数,总高(宽)度,是否可滑动,屏幕锚点,滑块图片|单元间隔|
13 1 yangdefeng
14 3 tejie
-
15
-
16
17
h4. *说明*
18
19 1 yangdefeng
* 参数1: 循环列表内容,是由 循环列表模板 + 循环列表内容 构成的字符串。
20
** [[dlg_itemModel_|循环列表模板]]
21
** 循环列表单元
22
每个单元包含在“()”当中
23
每个单元均以 [[dlg_itemIndex_|<itemIndex:]] 开始
24
每个单元包含一组对话框命令,命令顺序与[[dlg_itemModel_|循环列表模板]]中设定一致
25
26
* 参数2: 循环列表名称,预留参数写1,预留参数写1,预留参数写1
27
** 循环列表名称
28
区别对话框中存在的多个同类列表
29
*** 脚本方式给循环列表赋值
30
循环列表名称无特殊要求
31
*** 读表方式给循环列表赋值
32
循环列表名称需要与赋值表同名
33
** 预留参数写1
34
** 预留参数写1
35
** 预留参数写1
36
37
* 参数3: 循环列表在对话框中的X坐标,Y坐标
38
39
* 参数4: 滑动方向,行列数,总高(宽)度,是否可滑动
40
** 滑动方向 &nbsp;&nbsp;&nbsp;&nbsp; (1 纵向滑动,0 横向滑动)
41
** 行列数 &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;(纵向滑动时为列数,横向滑动时为行数)
42
** 总高(宽)度 &nbsp; (纵向滑动时为总高度,横向滑动时为总宽度)
43
** 是否可滑动 &nbsp; (1 可滑动,0 不可滑动)
44
45
* 参数5: 单元间隔
46
47
48
-
49
-
50
51
h4. %{color:deepskyblue}特戒引擎脚本示例:%
52
53
*使用前提1*
54
请开启配置开关"isUseCustomOKPanel"
55
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
56
|配置节点|[[tjconfig|[tjconfig]]]			|
57
|配置项  |isUseCustomOkPanel=1				|
58
59
-
60
-
61
62
h4. %{color:fireBrick}原型示例1%
63
64
bq. [<notextile>@</notextile>ini]
65
#act
66
mov s$modelList (<[[dlg_itemModel_|itemModel]]:3,7,1,7,1,1:-1,-1:450,250>)
67
&nbsp;
68
inc s$modelList (<[[dlg_itemIndex_|itemIndex]]:1>
69
inc s$modelList <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250>
70
inc s$modelList <[[dlg_itemShow_|itemShow]]:11:7:320:12:1:0>
71
inc s$modelList <[[dlg_text_|text]]:诛魔星光剑1{scolor=150}:120:20>
72
inc s$modelList <itemShow:12:0:12:12:1:0>
73
inc s$modelList <text:1:0:0>
74
inc s$modelList <text:尚未获得:150:70>)
75
&nbsp;
76
inc s$modelList (<itemIndex:2>
77
inc s$modelList <img:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250>
78
inc s$modelList <itemShow:11:7:320:12:1:0>
79
inc s$modelList <text:诛魔星光剑2{scolor=150}:120:20>
80
inc s$modelList <itemShow:12:0:12:12:1:0>
81
inc s$modelList <text:2:0:0>
82
inc s$modelList <text:尚未获得:150:70>)
83
&nbsp;
84
[<notextile>@</notextile>main]
85
#act
86
goto <notextile>@</notextile>ini
87
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
88
#say
89 2 tejie
<[[dlg_panelSize_|panelSize2]]:1200:600>\
90 1 yangdefeng
%{color:lightGrey};--circlelist
91
;  :列表内容
92
;  :列表名称,预留参数写1,预留参数写1,预留参数写1
93
;  :X坐标,Y坐标
94
;  :滑动方向,行列数,总高(宽)度,是否可滑动
95
;  :单元间隔%
96
<notextile><</notextile>*{color:green}circleList*:<$str(s$modelList)>:循环列表,1,1,1:25,25:1,2,540,1:0>\
97
98
-
99
-
100
101
h4. %{color:fireBrick}原型示例2%
102
103
bq. [<notextile>@</notextile>ini]
104
#act
105
[[mov]] s$modelList (<[[dlg_itemModel_|itemModel]]:3,1|3,7,1,7,1,3|1:-1,-1:450,250>)
106
&nbsp;
107
inc s$modelList (<[[dlg_itemIndex_|itemIndex]]:1,3,1>
108
inc s$modelList <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250>
109
inc s$modelList <img:lc_yiwancheng:20:140:1:1>
110
inc s$modelList <[[dlg_itemShow_|itemShow]]:11:7:320:12:1:0>
111
inc s$modelList <[[dlg_text_|text]]:诛魔星光剑1{scolor=150}:120:20>
112
inc s$modelList <itemShow:12:0:12:12:1:0>
113
inc s$modelList <text:1:0:0>
114
inc s$modelList <text:尚未获得:150:75>
115
inc s$modelList )
116
&nbsp;
117
inc s$modelList (<itemIndex:2,1,3>
118
inc s$modelList <img:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250>
119
inc s$modelList <text:尚未完成:20:150>
120
inc s$modelList <itemShow:11:7:320:12:1:0>
121
inc s$modelList <text:诛魔星光剑2{scolor=150}:120:20>
122
inc s$modelList <itemShow:12:0:12:12:1:0>
123
inc s$modelList <text:2:0:0>
124
inc s$modelList <img:lc_yilingqu:150:55:1:1>
125
inc s$modelList )
126
&nbsp;
127
[<notextile>@</notextile>main]
128
#act
129
goto <notextile>@</notextile>ini
130
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
131
#say
132 2 tejie
<[[dlg_panelSize_|panelSize2]]:1200:600>\
133 1 yangdefeng
%{color:lightGrey};--circlelist
134
;  :列表内容
135
;  :列表名称,当前选中序号,是否可不选,可不选时是否亮
136
;  :X坐标,Y坐标
137
;  :滑动方向,行列数,总高(宽)度,是否可滑动
138
;  :单元间隔%
139
<notextile><</notextile>*{color:green}circleList*:<$str(s$modelList)>:循环列表,1,1,1:25,25:1,2,540,1:10>\
140
141
-
142
-
143
144
h4. %{color:fireBrick}原型示例读表模式%
145
146
*使用前提*
147
将附件中的配置文件放入以下目录
148
..\Mir200\Envir\QuestDiary\数据文件\
149
150
151
152
bq. [<notextile>@</notextile>ini]
153
#act
154
%{color:lightGrey};--itemModel
155
;  :组件类型,组件类型|组件类型|组件类型,组件类型
156
;  :选中图片,未选中图片
157
;  :单条宽度,单条高度%
158
[[mov]] s$item0 (<[[dlg_itemModel_|itemModel]]:3,7,1,7,1,1:-1,-1:450,250>)
159
mov s$modelList <$str(s$item0)>
160
&nbsp;
161
[[tbl_load]] g循环列表 \数据文件\循环列表.csv
162
[[tbl_create_player]] 循环列表 key col1
163
[[tbl_copy]] g循环列表 循环列表
164
&nbsp;
165
[<notextile>@</notextile>main]
166
#act
167
goto <notextile>@</notextile>ini
168
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
169
#say
170 2 tejie
<[[dlg_panelSize_|panelSize2]]:1400:700>\
171 1 yangdefeng
%{color:lightGrey};--circlelist
172
;  :列表内容
173
;  :列表名称,当前选中序号,是否可不选,可不选时是否亮
174
;  :X坐标,Y坐标
175
;  :滑动方向,行列数,总高(宽)度,是否可滑动
176
;  :单元间隔%
177
<notextile><</notextile>*{color:green}circleList*:<$str(s$modelList)>:循环列表,1,1,1:25,25:1,3,650,1:0>\