项目

一般

简介

装备列表 » 历史记录 » 版本 1

yangdefeng, 2022-05-07 17:39

1 1 yangdefeng
2
标签:模块示例|装备列表
3
4
*模块说明*
5
根据条件,筛选出装备列表
6
自定义对话框指定位置,生成上述装备列表
7
8
*相关命令*
9
|设置装备列表模板			|[[setModule]]			|
10
|根据筛选条件,取出装备列表		|[[getEquipList]]		|
11
|取出装备列表中第1件装备的实例化id	|[[getEquipListFirst]]		|
12
|\2.							|
13
|装备列表模板定义项			|[[dlg_itemInsId_|<itemInsId:]]	|
14
|装备列表模板定义项			|[[dlg_itemBoxEx_|<itemBoxEx:]]	|
15
|自定义对话框中显示装备列表的属性配置	|[[dlg_equipList_|<equipList:]]	|
16
17
*注意事项*
18
#say命令中出现以下命令时,
19
<temList:
20
<itemGrid:
21
<equipList:
22
%{color:deepPink}#say中<>模块必须以“\”结尾%
23
参见以下脚本示例
24
25
-
26
-
27
28
*%{color:deepskyblue}特戒引擎脚本示例:%*
29
30
-
31
-
32
33
*使用前提1*
34
请开启配置开关\"isUseCustomOKPanel\"
35
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
36
|配置节点|[[tjconfig|[tjconfig]]]			|
37
|配置项  |isUseCustomOkPanel=1				|
38
39
*使用前提2*
40
配置装备类型名称与显示序号
41
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
42
|配置节点|[[upGradeItem|[upGradeItem]]]			|
43
44
配置举例
45
[upGradeItem]
46
5 1 武器
47
10 2 衣服[男]
48
11 3 衣服[女]
49
15 4 头盔
50
19 5 项链
51
26 6 手镯
52
22 7 戒指
53
64 8 腰带
54
62 9 鞋子
55
56
57
-
58
-
59
60
bq. [<notextile>@</notextile>main]
61
#act
62
%{color:lightGrey};--设置装备列表模板--
63
[[mov]] s$module (<[[dlg_itemSize_|itemSize]]:400:150:index>
64
[[inc]] s$module <[[dlg_itemToggle_|itemToggle]]:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>装备列表点击> %{color:lightGrey}--;定义装备列表单元选中与未选中图片--%
65
inc s$module <[[dlg_itemInsId_|itemInsId]]:instanceId> %{color:lightGrey};--道具实例id:程序项,无须定义--%
66
inc s$module <[[dlg_itemBoxEx_|itemBoxEx]]:itemId:instanceId:sourceType:equipplace:20:20:wupinkuang:looks:effectname:animation> %{color:lightGrey};--定义道具图标在装备列表单元中的坐标--%
67
inc s$module <[[dlg_text_|text]]:itemName{scolor=168}:140:30> %{color:lightGrey};--定义道具名称在装备列表单元中的文本属性--%
68
inc s$module <text:itemType{scolor=25}:160:90>) %{color:lightGrey};--定义道具部位名称在装备列表单元中的文本属性--%
69
[[setModule]] s$module
70
&nbsp;
71
%{color:lightGrey};--设定\"身上\"与\"背包\"切换按钮%
72
mov s$切换按钮 (
73
inc s$切换按钮 <itemIndex:1>
74
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/<notextile>@</notextile>切换(1)>
75
inc s$切换按钮 <text:身上装备{scolor=150}:75:50>
76
inc s$切换按钮 )
77
&nbsp;
78
inc s$切换按钮 (
79
inc s$切换按钮 <itemIndex:2>
80
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/<notextile>@</notextile>切换(2)>
81
inc s$切换按钮 <text:背包装备{scolor=150}:75:50>
82
inc s$切换按钮 )
83
&nbsp;
84
mov s$激活列表 1
85
goto <notextile>@</notextile>获取装备列表
86
&nbsp;
87
[<notextile>@</notextile>获取装备列表]
88
#act
89
[[getEquipList]] 1 <$str(s$激活列表)> s$装备列表
90
[[getEquipListFirst]] s$装备列表
91
goto <notextile>@</notextile>显示界面
92
goto <notextile>@</notextile>装备列表点击
93
&nbsp;
94
[<notextile>@</notextile>显示界面]
95
#act
96
getEquipList 1 <$str(s$激活列表)> s$装备列表
97
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
98
#say
99
<[[dlg_panelSize_|panelSize]]:1500:900>*{color:deepPink}\*
100
<[[dlg_itemGrid_|itemGrid]]:<$str(s$切换按钮)>:切换按钮,<$str(s$激活列表)>,0,1:10:10:220,85:1,2,90,0:1>*{color:deepPink}\*
101
<[[dlg_equipList_|equipList]]:<$str(s$装备列表)>:装备强星,1:20:100:1,715,1:0>*{color:deepPink}\*
102
&nbsp;
103
[<notextile>@</notextile>切换]
104
#if
105
not equal s$激活列表 [[checkScriptParam|<$scriptParam1>]]
106
#act
107
mov s$激活列表 <$scriptParam1>
108
goto <notextile>@</notextile>获取装备列表
109
&nbsp;
110
[<notextile>@</notextile>装备列表点击]
111
#if
112
not [[equal]] <$str(s$装备列表)>
113
#act
114
[[sendTipsMsg]] 本次点击的装备,唯一id是<$str(s0)>/fcolor=150
115
#elseAct
116
sendTipsMsg 没有筛选出相应装备/fcolor=150