项目

一般

简介

Dlg istcList » 历史记录 » 版本 13

tejie, 2025-05-24 14:20

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 11 tejie
_*[[getBagInfo]]*_
73
74 6 tejie
_*[[getEquipInst]]*_
75 1 tejie
76 7 tejie
77
_*{color:green}chkItems*_
78 13 tejie
指定<istcList:列表中的一组物品“选中”或“取消选中”
79 7 tejie
%{color:red}需要将 <istcList: 参数7 设定为多选模式%
80
81
*格式*
82
|命令名  |参数1     |参数2       |参数3      |参数4      |
83
|chkItems|list列表id|操作对象列表|是否选中   |背包或身上 |
84
85
*说明*
86
|^.参数1|list列表id
87
对话框中,<istcList:对象的id|
88
|^.参数2|操作对象列表
89
由makeIndex构成的列表
90
[makeIndex1,makeIndex2,makeIndex3,......]|
91
|^.参数3|是否选中
92
0 取消选中
93
1 选中|
94
|^.参数4|背包或身上
95
1 背包中的道具
96
1 身上穿戴的道具|
97 6 tejie
98 10 tejie
-
99
-
100
101 1 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
102
103
bq. [@示例]
104
#if
105
#act
106
[[goto]] <notextile>@道具多选列表</notextile>
107
<notextile></notextile>
108
<notextile>[@道具多选列表]</notextile>
109
#if
110
#act
111
[[clsMainUi]]
112
#say
113
<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>
114
<notextile><text:随机属性:0:0/@随机文本></notextile>
115
<notextile></notextile>
116
<notextile>[@随机文本]</notextile>
117
[[mov]] s$文本内容 +
118
[[movr]] n$文本内容 1 100
119
[[inc]] s$文本内容 n$文本内容
120
*{color:green}addIstcListTxt* 多选列表1 s1 s$文本内容
121
<notextile></notextile>
122
<notextile>[@打印装备内容]</notextile>
123
#act
124
[[print]] 列表id:<$str(s0)>
125
[[print]] 列表格子id:<$str(s1)>
126
[[print]] 道具实例id:<$str(s2)>
127
[[print]] 道具stdMode:<$str(s3)>
128
[[print]] 选中状态:<$str(s4)>
129
[[print]] 选中格子数:<$str(s5)>
130
<notextile></notextile>
131
#if
132
#act
133
[[equal]] <$str(s4)> 1
134
#act
135
[[itemInBox]] <$str(s2)>
136 8 tejie
137
-
138
-
139
140
bq. <notextile>[@示例2]</notextile>
141
#if
142
#act
143
[[clsMainUi]]
144
[[getBagInfo]] ItemMakeIndex L$物品实例
145
[[mov]] s$道具列表 <$str(L$物品实例)>
146
<notextile></notextile>
147
#say
148 12 tejie
<notextile><</notextile>*{color:green}istcList*:多选列表1:<$str(s$道具列表)>:1:5:7:1:<notextile></notextile>*{color:red}2*<notextile></notextile>:100:wupinkuang:friend_zhuangshikuang_select_img:0:0:200:100/<notextile>@打印点击信息></notextile>
149 8 tejie
<notextile><text:脚本勾选:50:50/@脚本勾选></notextile>
150
<notextile></notextile>
151
[@脚本勾选]
152
#act
153
*{color:green}chkItems* 多选列表1 <$str(L$物品实例)> 1 1