Dlg itemGrid » 历史记录 » 版本 2
yangdefeng, 2022-05-12 11:48
| 1 | 1 | yangdefeng | _*{color:green}itemGrid*_ |
|---|---|---|---|
| 2 | 设置多排图标单元组列表 |
||
| 3 | |||
| 4 | 支持单元点击与选中,参见 [[dlg_itemToggle_|itemToggle]] |
||
| 5 | 支持不配置itemToggle |
||
| 6 | |||
| 7 | %{color:deepPink}每个单元中的组件坐标位置,基于本单元 |
||
| 8 | 可以单独制作相应对话框,记录坐标信息后放入列表组单元% |
||
| 9 | |||
| 10 | 标签:命令定义|dlg_itemGrid |
||
| 11 | |||
| 12 | *格式* |
||
| 13 | |_.命令名 |_.参数1 |_.参数2 |_.参数3|_.参数4|_.参数5 |_.参数6 |_.参数7 | |
||
| 14 | |itemGrid |列表内容|列表名称,当前选中序号,是否可不选,可不选时是否亮|X坐标 |Y坐标 |单元宽,单元高|滑动方向,行列数,总高(宽)度,是否可滑动|单元间隔| |
||
| 15 | |||
| 16 | - |
||
| 17 | - |
||
| 18 | |||
| 19 | *说明* |
||
| 20 | * 参数1: 列表内容,每个列表由多个单元构成,每个单元包含在“()”当中。 |
||
| 21 | 必包含以下两个组件 |
||
| 22 | ** [[dlg_itemIndex_|itemIndex]] |
||
| 23 | ** [[dlg_itemToggle_|itemToggle]] |
||
| 24 | |||
| 25 | * 参数2: 列表名称,当前选中序号,是否可不选,都不选时是否亮 |
||
| 26 | ** 列表名称 区别对话框中存在的多个同类列表 |
||
| 27 | ** 当前选中序号 打开对话框时选中的是哪个单元 |
||
| 28 | ** 是否可不选 (0 必须选1个,1 可都不选) |
||
| 29 | ** 都不选时是否亮 (0 都不选时当前选中序号不亮,1 都不选时当前选中序号亮) |
||
| 30 | |||
| 31 | * 参数3: 列表在自定义对话框中的X坐标 |
||
| 32 | |||
| 33 | * 参数4: 列表在自定义对话框中的Y坐标 |
||
| 34 | |||
| 35 | * 参数5: 每个单元的宽高 |
||
| 36 | |||
| 37 | * 参数6: 滑动方向,行列数,总高(宽)度,是否可滑动 |
||
| 38 | ** 滑动方向 (1 纵向滑动,0 横向滑动) |
||
| 39 | ** 行列数 (纵向滑动时为列数,横向滑动时为行数) |
||
| 40 | ** 总高(宽)度 (纵向滑动时为总高度,横向滑动时为总宽度) |
||
| 41 | ** 是否可滑动 (1 可滑动,0 不可滑动) |
||
| 42 | |||
| 43 | 2 | yangdefeng | * *{color:deepPink}#say命令中出现 <itemGrid: 命令时,#say中<>模块必须以“\”结尾 |
| 44 | 1 | yangdefeng | 参见以下脚本示例* |
| 45 | |||
| 46 | |||
| 47 | - |
||
| 48 | - |
||
| 49 | |||
| 50 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 51 | |||
| 52 | *使用前提1* |
||
| 53 | 请开启配置开关\"isUseCustomOKPanel\" |
||
| 54 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
| 55 | |配置节点|[tjconfig] | |
||
| 56 | |配置项 |isUseCustomOkPanel=1 | |
||
| 57 | |||
| 58 | |||
| 59 | *使用前提2* |
||
| 60 | 请配置补丁资源\"lc\",即找到以下配置项,加入 %{color:deeppink}lc% |
||
| 61 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
| 62 | |配置节点|[tjconfig] | |
||
| 63 | |配置项 |patch=aa,bb,lc | |
||
| 64 | |||
| 65 | - |
||
| 66 | - |
||
| 67 | |||
| 68 | bq. [<notextile>@</notextile>item初始化] |
||
| 69 | #act |
||
| 70 | mov s$item |
||
| 71 | inc s$item (<[[dlg_itemIndex_|itemIndex]]:1> |
||
| 72 | inc s$item <[[dlg_itemToggle_|itemToggle]]:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>item跳转(参数1)> |
||
| 73 | inc s$item <[[dlg_img_|img]]:zd_7_5:0:0:1:2.5> |
||
| 74 | inc s$item <[[dlg_itemShow_|itemShow]]:4:0:350:80:1:0> |
||
| 75 | inc s$item <[[dlg_text_|text]]:特戒天魔降临{scolor=150}:30:40> |
||
| 76 | inc s$item <text:奖励预览:340:40> |
||
| 77 | inc s$item <text:开启时间:30:100> |
||
| 78 | inc s$item <text:10~~~:~~~00-11~~~:~~~00:160:100> |
||
| 79 | inc s$item <text:开启条件:30:160> |
||
| 80 | inc s$item <text:60级:160:160> |
||
| 81 | inc s$item <text:击杀天外魔君,想要奖励就来找我{scolor=248}:30:240> |
||
| 82 | inc s$item <[[dlg_playModelEx_|playModelEx]]:20028:0:-100:4:0.5:0:0:0:20025:0>) |
||
| 83 | |
||
| 84 | inc s$item (<itemindex:2> |
||
| 85 | inc s$item <itemtoggle:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>item跳转(参数2)> |
||
| 86 | inc s$item <img:zd_7_5:0:0:1:2.5> |
||
| 87 | inc s$item <itemShow:4:0:350:80:1:0> |
||
| 88 | inc s$item <text:特戒双倍押标{scolor=150}:30:40> |
||
| 89 | inc s$item <text:奖励预览:340:40> |
||
| 90 | inc s$item <text:开启时间:30:100> |
||
| 91 | inc s$item <text:11~~~:~~~00-12~~~:~~~00:160:100> |
||
| 92 | inc s$item <text:开启条件:30:160> |
||
| 93 | inc s$item <text:好几转:160:160> |
||
| 94 | inc s$item <playModelEx:20028:0:-100:4:0.5:0:0:0:20039:0> |
||
| 95 | inc s$item <text:圣域双倍押镖,风险与利益共存{scolor=248}:30:240>) |
||
| 96 | |
||
| 97 | inc s$item (<itemindex:3> |
||
| 98 | inc s$item <itemtoggle:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>item跳转(参数3)> |
||
| 99 | inc s$item <img:zd_7_5:0:0:1:2.5> |
||
| 100 | inc s$item <itemShow:4:0:350:80:1:0> |
||
| 101 | inc s$item <text:特戒双倍押标{scolor=150}:30:40> |
||
| 102 | inc s$item <text:奖励预览:340:40> |
||
| 103 | inc s$item <text:开启时间:30:100> |
||
| 104 | inc s$item <text:11~~~:~~~00-12~~~:~~~00:160:100> |
||
| 105 | inc s$item <text:开启条件:30:160> |
||
| 106 | inc s$item <text:好几转:160:160> |
||
| 107 | inc s$item <playModelEx:20028:0:-100:4:0.5:0:0:0:20044:0> |
||
| 108 | inc s$item <text:圣域双倍押镖,风险与利益共存{scolor=248}:30:240>) |
||
| 109 | |
||
| 110 | inc s$item (<itemindex:4> |
||
| 111 | inc s$item <itemtoggle:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>item跳转(参数4)> |
||
| 112 | inc s$item <img:zd_7_5:0:0:1:2.5> |
||
| 113 | inc s$item <itemShow:4:0:350:80:1:0> |
||
| 114 | inc s$item <text:特戒双倍押标{scolor=150}:30:40> |
||
| 115 | inc s$item <text:奖励预览:340:40> |
||
| 116 | inc s$item <text:开启时间:30:100> |
||
| 117 | inc s$item <text:11~~~:~~~00-12~~~:~~~00:160:100> |
||
| 118 | inc s$item <text:开启条件:30:160> |
||
| 119 | inc s$item <text:好几转:160:160> |
||
| 120 | inc s$item <okPanelPlayEffect:title_261:-1:0:0:2> |
||
| 121 | inc s$item <text:圣域双倍押镖,风险与利益共存{scolor=248}:30:240>) |
||
| 122 | |
||
| 123 | [<notextile>@</notextile>main] |
||
| 124 | #act |
||
| 125 | goto <notextile>@</notextile>item初始化 |
||
| 126 | [[openMerchantBigDlg]] ok_di 0 0 0 1 0 0 |
||
| 127 | #say |
||
| 128 | <[[dlg_panelSize_|panelSize]]:1500:700>*{color:deepPink}\* |
||
| 129 | <notextile><</notextile>*{color:green}itemGrid*:<$str(s$item)>:多排单元组列表名称,1,0,1:0:0:500,325:1,2,650,1:0>*{color:deepPink}\* |
||
| 130 | |
||
| 131 | [<notextile>@</notextile>item跳转] |
||
| 132 | #act |
||
| 133 | [[messageBox]] 点击格子<$str(s0)>\格子状态<$str(s1)>\收到传递参数-->[[checkScriptParam|<$scriptParam1>]] |