项目

一般

简介

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

yangdefeng, 2022-06-10 10:31

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