项目

一般

简介

Dlg istcList » 历史记录 » 版本 9

tejie, 2025-05-16 15:04

1 1 tejie
h4. _*%{color:green}<istcList:%*_
2
3 5 tejie
对话框道具多选列表。
4
支持两种模式
5
1 根据指定stdMode类型筛选
6
2 根据指定道具makeIndex数组筛选	
7 1 tejie
8
标签:命令定义|dlg_istcList>dlg_istcList
9
10
*格式*
11 3 tejie
|命令名  |参数1 |参数2   |参数3    |参数4|参数5|参数6                     |参数7  |参数8     |参数9       |参数10      |参数11     |参数12     |参数13|参数14|
12
|istcList|列表id|筛选条件|背包/身上|行数 |列数 |滑动方向,屏幕锚点,滑块图片|单/多选|单元格边长|单元格背景图|单元格选中图|单元格文本X|单元格文本Y|列表X |列表Y |
13
14
-
15
-
16
17
h4. *说明*
18 1 tejie
19 4 tejie
|参数1|列表id|
20 1 tejie
|/2^.参数2|模式1 显示指定stdMode类型,以“<notextile>|</notextile>”分隔
21
<notextile>举例:3|4|5|6|10|11</notextile>|
22 5 tejie
|模式2 显示指定道具makeIndex数组|
23 1 tejie
|^.参数3|获得哪里的道具
24
1 背包
25
2 身上|
26
|参数4|道具列表行数|
27
|参数5|道具列表列数|
28 4 tejie
|/4^.参数6|滑动方向,屏幕锚点,滑块图片	|
29
|列表滑动方向
30 1 tejie
0 横向
31
1 纵向|
32 4 tejie
|屏幕锚点 可缺省,缺省为当前对话框窗口左上。
33
锚点id 1-9(屏幕9个区域:左上,中上,右上,左中,正中,右中,左下,中下,右下) 
34
非缺省时,配合 [[openBigDialogBox]] 命令全屏窗口使用。 |
35
|滑块图片 可缺省,缺省显示
36
列表可滑动时显示的滑块图片,纵向滑动时位于列表右侧,横向滑动时位于列表下方。
37
纵向滑动时,图片宽度固定,纵向自动拉伸,可在打包工具中配置九宫信息。
38
横向滑动时,图片高度固定,横向自动拉伸,可在打包工具中配置九宫信息。|
39 1 tejie
|^.参数7|单选或多选
40
1 单选
41
2 多选|
42
|参数8|单元格边长|
43
|参数9|单元格背景|
44
|参数10|单元格选中图片|
45
|参数11|单元格自定义文本X坐标|
46
|参数12|单元格自定义文本Y坐标|
47
|参数13|列表X坐标|
48
|参数14|列表Y坐标|
49
50
返回变量
51
|s0|点击列表id|
52
|s1|点击列表格子id|
53
|s2|点击道具实例id|
54
|s3|选中道具stdMode|
55
|s4|选中状态|
56
|s5|选中数量|
57
58
-
59
-
60
61
h4. 相关命令
62
63
_*{color:green}addIstcListTxt*_
64
65
指定道具多选列表,指定格子上,添加文本内容。
66
67
*格式*
68
|命令名        |参数1 |参数2     |参数3   |
69
|addIstcListTxt|列表id|列表格子id|文本内容|
70
71
-
72
-
73
74 7 tejie
_*[[getEquipInst]]*_
75 6 tejie
76
-
77 1 tejie
-
78 7 tejie
79
_*{color:green}chkItems*_
80
81
指定<istcList:列表中的物品“选中”或“隐藏”
82
83
%{color:red}需要将 <istcList: 参数7 设定为多选模式%
84
85
86
*格式*
87
|命令名  |参数1     |参数2       |参数3      |参数4      |
88
|chkItems|list列表id|操作对象列表|是否选中   |背包或身上 |
89
90
*说明*
91
|^.参数1|list列表id
92
对话框中,<istcList:对象的id|
93
|^.参数2|操作对象列表
94
由makeIndex构成的列表
95
[makeIndex1,makeIndex2,makeIndex3,......]|
96
|^.参数3|是否选中
97
0 取消选中
98
1 选中|
99
|^.参数4|背包或身上
100
1 背包中的道具
101
1 身上穿戴的道具|
102 6 tejie
103 1 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
104
105
bq. [@示例]
106
#if
107
#act
108
[[goto]] <notextile>@道具多选列表</notextile>
109
<notextile></notextile>
110
<notextile>[@道具多选列表]</notextile>
111
#if
112
#act
113
[[clsMainUi]]
114
#say
115
<notextile><</notextile>*{color:green}istcList*:多选列表1:5|6|10|11:1:5:7:1:1:100:wupinkuang:frien_zhuangshikuang_select_img:0:0:200:100/<notextile>@打印点击信息></notextile>
116
<notextile><text:随机属性:0:0/@随机文本></notextile>
117
<notextile></notextile>
118
<notextile>[@随机文本]</notextile>
119
[[mov]] s$文本内容 +
120
[[movr]] n$文本内容 1 100
121
[[inc]] s$文本内容 n$文本内容
122
*{color:green}addIstcListTxt* 多选列表1 s1 s$文本内容
123
<notextile></notextile>
124
<notextile>[@打印装备内容]</notextile>
125
#act
126
[[print]] 列表id:<$str(s0)>
127
[[print]] 列表格子id:<$str(s1)>
128
[[print]] 道具实例id:<$str(s2)>
129
[[print]] 道具stdMode:<$str(s3)>
130
[[print]] 选中状态:<$str(s4)>
131
[[print]] 选中格子数:<$str(s5)>
132
<notextile></notextile>
133
#if
134
#act
135
[[equal]] <$str(s4)> 1
136
#act
137
[[itemInBox]] <$str(s2)>
138 8 tejie
139
-
140
-
141
142
bq. <notextile>[@示例2]</notextile>
143
#if
144
#act
145
[[clsMainUi]]
146
[[getBagInfo]] ItemMakeIndex L$物品实例
147
[[mov]] s$道具列表 <$str(L$物品实例)>
148
<notextile></notextile>
149
#say
150 9 tejie
<notextile><</notextile>*{color:green}istcList*:多选列表1:<$str(s$道具列表)>:1:5:7:1:<notextile></notextile>*{color:red}2*<notextile></notextile>:100:wupinkuang:frien_zhuangshikuang_select_img:0:0:200:100/<notextile>@打印点击信息></notextile>
151 8 tejie
<notextile><text:脚本勾选:50:50/@脚本勾选></notextile>
152
<notextile></notextile>
153
[@脚本勾选]
154
#act
155
*{color:green}chkItems* 多选列表1 <$str(L$物品实例)> 1 1