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