装备列表 » 历史记录 » 修订 2
修订 1 (yangdefeng, 2022-05-07 17:39) → 修订 2/4 (yangdefeng, 2022-05-07 17:40)
标签:模块示例|装备列表
*模块说明*
根据条件,筛选出装备列表
自定义对话框指定位置,生成上述装备列表
*相关命令*
|设置装备列表模板 |[[setModule]] |
|根据筛选条件,取出装备列表 |[[getEquipList]] |
|取出装备列表中第1件装备的实例化id |[[getEquipListFirst]] |
|\2. |
|装备列表模板定义项 |[[dlg_itemInsId_|<itemInsId:]] |
|装备列表模板定义项 |[[dlg_itemBoxEx_|<itemBoxEx:]] |
|自定义对话框中显示装备列表的属性配置 |[[dlg_equipList_|<equipList:]] |
*注意事项*
#say命令中出现以下命令时,
<temList:
<itemGrid:
<equipList:
%{color:deepPink}#say中<>模块必须以“\”结尾%
参见以下脚本示例
-
-
*%{color:deepskyblue}特戒引擎脚本示例:%*
-
-
*使用前提1*
请开启配置开关\"isUseCustomOKPanel\"
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |
|配置节点|[[tjconfig|[tjconfig]]] |
|配置项 |isUseCustomOkPanel=1 |
*使用前提2*
配置装备类型名称与显示序号
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt |
|配置节点|[[upGradeItem|[upGradeItem]]] |
配置举例
[upGradeItem]
5 1 武器
10 2 衣服[男]
11 3 衣服[女]
15 4 头盔
19 5 项链
26 6 手镯
22 7 戒指
64 8 腰带
62 9 鞋子
-
-
bq. [<notextile>@</notextile>main]
#act
%{color:lightGrey};--设置装备列表模板--% %{color:lightGrey};--设置装备列表模板--
[[mov]] s$module (<[[dlg_itemSize_|itemSize]]:400:150:index>
[[inc]] s$module <[[dlg_itemToggle_|itemToggle]]:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>装备列表点击> %{color:lightGrey}--;定义装备列表单元选中与未选中图片--%
inc s$module <[[dlg_itemInsId_|itemInsId]]:instanceId> %{color:lightGrey};--道具实例id:程序项,无须定义--%
inc s$module <[[dlg_itemBoxEx_|itemBoxEx]]:itemId:instanceId:sourceType:equipplace:20:20:wupinkuang:looks:effectname:animation> %{color:lightGrey};--定义道具图标在装备列表单元中的坐标--%
inc s$module <[[dlg_text_|text]]:itemName{scolor=168}:140:30> %{color:lightGrey};--定义道具名称在装备列表单元中的文本属性--%
inc s$module <text:itemType{scolor=25}:160:90>) %{color:lightGrey};--定义道具部位名称在装备列表单元中的文本属性--%
[[setModule]] s$module
%{color:lightGrey};--设定"身上"与"背包"切换按钮--% %{color:lightGrey};--设定\"身上\"与\"背包\"切换按钮%
mov s$切换按钮 (
inc s$切换按钮 <itemIndex:1>
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/<notextile>@</notextile>切换(1)>
inc s$切换按钮 <text:身上装备{scolor=150}:75:50>
inc s$切换按钮 )
inc s$切换按钮 (
inc s$切换按钮 <itemIndex:2>
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/<notextile>@</notextile>切换(2)>
inc s$切换按钮 <text:背包装备{scolor=150}:75:50>
inc s$切换按钮 )
mov s$激活列表 1
goto <notextile>@</notextile>获取装备列表
[<notextile>@</notextile>获取装备列表]
#act
[[getEquipList]] 1 <$str(s$激活列表)> s$装备列表
[[getEquipListFirst]] s$装备列表
goto <notextile>@</notextile>显示界面
goto <notextile>@</notextile>装备列表点击
[<notextile>@</notextile>显示界面]
#act
getEquipList 1 <$str(s$激活列表)> s$装备列表
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
#say
<[[dlg_panelSize_|panelSize]]:1500:900>*{color:deepPink}\*
<[[dlg_itemGrid_|itemGrid]]:<$str(s$切换按钮)>:切换按钮,<$str(s$激活列表)>,0,1:10:10:220,85:1,2,90,0:1>*{color:deepPink}\*
<[[dlg_equipList_|equipList]]:<$str(s$装备列表)>:装备强星,1:20:100:1,715,1:0>*{color:deepPink}\*
[<notextile>@</notextile>切换]
#if
not equal s$激活列表 [[checkScriptParam|<$scriptParam1>]]
#act
mov s$激活列表 <$scriptParam1>
goto <notextile>@</notextile>获取装备列表
[<notextile>@</notextile>装备列表点击]
#if
not [[equal]] <$str(s$装备列表)>
#act
[[sendTipsMsg]] 本次点击的装备,唯一id是<$str(s0)>/fcolor=150
#elseAct
sendTipsMsg 没有筛选出相应装备/fcolor=150