项目

一般

简介

行为

装备列表 » 历史记录 » 修订 1

修订 1/4 | 下一页 »
yangdefeng, 2022-05-07 17:39


标签:模块示例|装备列表

模块说明
根据条件,筛选出装备列表
自定义对话框指定位置,生成上述装备列表

相关命令
设置装备列表模板 setModule
根据筛选条件,取出装备列表 getEquipList
取出装备列表中第1件装备的实例化id getEquipListFirst
装备列表模板定义项 <itemInsId:
装备列表模板定义项 <itemBoxEx:
自定义对话框中显示装备列表的属性配置 <equipList:

注意事项
#say命令中出现以下命令时,
<temList:
<itemGrid:
<equipList:
#say中<>模块必须以“\”结尾
参见以下脚本示例


特戒引擎脚本示例:


使用前提1
请开启配置开关\"isUseCustomOKPanel\"
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [tjconfig]
配置项 isUseCustomOkPanel=1
使用前提2
配置装备类型名称与显示序号
配置文件 ..\Mir200\Tejieconfig\Tejieconfig.txt
配置节点 [upGradeItem]

配置举例
[upGradeItem]
5 1 武器
10 2 衣服[男]
11 3 衣服[女]
15 4 头盔
19 5 项链
26 6 手镯
22 7 戒指
64 8 腰带
62 9 鞋子


[@main]
#act
;--设置装备列表模板--
mov s$module (<itemSize:400:150:index>
inc s$module <itemToggle:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/@装备列表点击> %{color:lightGrey}--;定义装备列表单元选中与未选中图片--

inc s$module <itemInsId:instanceId> ;--道具实例id:程序项,无须定义--
inc s$module <itemBoxEx:itemId:instanceId:sourceType:equipplace:20:20:wupinkuang:looks:effectname:animation> ;--定义道具图标在装备列表单元中的坐标--
inc s$module <text:itemName{scolor=168}:140:30> ;--定义道具名称在装备列表单元中的文本属性--
inc s$module <text:itemType{scolor=25}:160:90>) ;--定义道具部位名称在装备列表单元中的文本属性--
setModule s$module
 
;--设定\"身上\"与\"背包\"切换按钮
mov s$切换按钮 (
inc s$切换按钮 <itemIndex:1>
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/@切换(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/@切换(2)>
inc s$切换按钮 <text:背包装备{scolor=150}:75:50>
inc s$切换按钮 )
 
mov s$激活列表 1
goto @获取装备列表
 
[@获取装备列表]
#act
getEquipList 1 <$str(s$激活列表)> s$装备列表
getEquipListFirst s$装备列表
goto @显示界面
goto @装备列表点击
 
[@显示界面]
#act
getEquipList 1 <$str(s$激活列表)> s$装备列表
openMerchantBigDlg ok_di 4 0 0 1 0 0
#say
<panelSize:1500:900>\
<itemGrid:<$str(s$切换按钮)>:切换按钮,<$str(s$激活列表)>,0,1:10:10:220,85:1,2,90,0:1>\
<equipList:<$str(s$装备列表)>:装备强星,1:20:100:1,715,1:0>\
 
[@切换]
#if
not equal s$激活列表 <$scriptParam1>
#act
mov s$激活列表 <$scriptParam1>
goto @获取装备列表
 
[@装备列表点击]
#if
not equal <$str(s$装备列表)>
#act
sendTipsMsg 本次点击的装备,唯一id是<$str(s0)>/fcolor=150
#elseAct
sendTipsMsg 没有筛选出相应装备/fcolor=150

yangdefeng 更新于 超过 2 年 之前 · 1 修订