项目

一般

简介

Dlg istcList » 历史记录 » 版本 5

tejie, 2024-12-12 14:25

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
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
75
76
bq. [@示例]
77
#if
78
#act
79
[[goto]] <notextile>@道具多选列表</notextile>
80
<notextile></notextile>
81
<notextile>[@道具多选列表]</notextile>
82
#if
83
#act
84
[[clsMainUi]]
85
#say
86
<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>
87
<notextile><text:随机属性:0:0/@随机文本></notextile>
88
<notextile></notextile>
89
<notextile>[@随机文本]</notextile>
90
[[mov]] s$文本内容 +
91
[[movr]] n$文本内容 1 100
92
[[inc]] s$文本内容 n$文本内容
93
*{color:green}addIstcListTxt* 多选列表1 s1 s$文本内容
94
<notextile></notextile>
95
<notextile>[@打印装备内容]</notextile>
96
#act
97
[[print]] 列表id:<$str(s0)>
98
[[print]] 列表格子id:<$str(s1)>
99
[[print]] 道具实例id:<$str(s2)>
100
[[print]] 道具stdMode:<$str(s3)>
101
[[print]] 选中状态:<$str(s4)>
102
[[print]] 选中格子数:<$str(s5)>
103
<notextile></notextile>
104
#if
105
#act
106
[[equal]] <$str(s4)> 1
107
#act
108
[[itemInBox]] <$str(s2)>