Dlg circleList » 历史记录 » 版本 1
yangdefeng, 2022-05-25 18:24
| 1 | 1 | yangdefeng | _*%{color:green}<circleList:%*_ |
|---|---|---|---|
| 2 | 设置对话框中循环列表样式。 |
||
| 3 | 可适用对话框中100行以上的列表显示 |
||
| 4 | |||
| 5 | *{color:red}客户端版本需求: 2.2.2* |
||
| 6 | |||
| 7 | 标签:命令定义|dlg_circleList |
||
| 8 | |||
| 9 | *格式* |
||
| 10 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 | |
||
| 11 | |circleList|循环列表内容|循环列表名称,预留参数写1,预留参数写1,预留参数写1|X坐标,Y坐标|滑动方向,行列数,总高(宽)度,是否可滑动|单元间隔| |
||
| 12 | |||
| 13 | *说明* |
||
| 14 | * 参数1: 循环列表内容,是由 循环列表模板 + 循环列表内容 构成的字符串。 |
||
| 15 | ** [[dlg_itemModel_|循环列表模板]] |
||
| 16 | ** 循环列表单元 |
||
| 17 | 每个单元包含在“()”当中 |
||
| 18 | 每个单元均以 [[dlg_itemIndex_|<itemIndex:]] 开始 |
||
| 19 | 每个单元包含一组对话框命令,命令顺序与[[dlg_itemModel_|循环列表模板]]中设定一致 |
||
| 20 | |||
| 21 | * 参数2: 循环列表名称,预留参数写1,预留参数写1,预留参数写1 |
||
| 22 | ** 循环列表名称 |
||
| 23 | 区别对话框中存在的多个同类列表 |
||
| 24 | *** 脚本方式给循环列表赋值 |
||
| 25 | 循环列表名称无特殊要求 |
||
| 26 | *** 读表方式给循环列表赋值 |
||
| 27 | 循环列表名称需要与赋值表同名 |
||
| 28 | ** 预留参数写1 |
||
| 29 | ** 预留参数写1 |
||
| 30 | ** 预留参数写1 |
||
| 31 | |||
| 32 | * 参数3: 循环列表在对话框中的X坐标,Y坐标 |
||
| 33 | |||
| 34 | * 参数4: 滑动方向,行列数,总高(宽)度,是否可滑动 |
||
| 35 | ** 滑动方向 (1 纵向滑动,0 横向滑动) |
||
| 36 | ** 行列数 (纵向滑动时为列数,横向滑动时为行数) |
||
| 37 | ** 总高(宽)度 (纵向滑动时为总高度,横向滑动时为总宽度) |
||
| 38 | ** 是否可滑动 (1 可滑动,0 不可滑动) |
||
| 39 | |||
| 40 | * 参数5: 单元间隔 |
||
| 41 | |||
| 42 | |||
| 43 | - |
||
| 44 | - |
||
| 45 | |||
| 46 | h4. %{color:deepskyblue}特戒引擎脚本示例:% |
||
| 47 | |||
| 48 | *使用前提1* |
||
| 49 | 请开启配置开关"isUseCustomOKPanel" |
||
| 50 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
| 51 | |配置节点|[[tjconfig|[tjconfig]]] | |
||
| 52 | |配置项 |isUseCustomOkPanel=1 | |
||
| 53 | |||
| 54 | - |
||
| 55 | - |
||
| 56 | |||
| 57 | h4. %{color:fireBrick}原型示例1% |
||
| 58 | |||
| 59 | bq. [<notextile>@</notextile>ini] |
||
| 60 | #act |
||
| 61 | mov s$modelList (<[[dlg_itemModel_|itemModel]]:3,7,1,7,1,1:-1,-1:450,250>) |
||
| 62 | |
||
| 63 | inc s$modelList (<[[dlg_itemIndex_|itemIndex]]:1> |
||
| 64 | inc s$modelList <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250> |
||
| 65 | inc s$modelList <[[dlg_itemShow_|itemShow]]:11:7:320:12:1:0> |
||
| 66 | inc s$modelList <[[dlg_text_|text]]:诛魔星光剑1{scolor=150}:120:20> |
||
| 67 | inc s$modelList <itemShow:12:0:12:12:1:0> |
||
| 68 | inc s$modelList <text:1:0:0> |
||
| 69 | inc s$modelList <text:尚未获得:150:70>) |
||
| 70 | |
||
| 71 | inc s$modelList (<itemIndex:2> |
||
| 72 | inc s$modelList <img:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250> |
||
| 73 | inc s$modelList <itemShow:11:7:320:12:1:0> |
||
| 74 | inc s$modelList <text:诛魔星光剑2{scolor=150}:120:20> |
||
| 75 | inc s$modelList <itemShow:12:0:12:12:1:0> |
||
| 76 | inc s$modelList <text:2:0:0> |
||
| 77 | inc s$modelList <text:尚未获得:150:70>) |
||
| 78 | |
||
| 79 | [<notextile>@</notextile>main] |
||
| 80 | #act |
||
| 81 | goto <notextile>@</notextile>ini |
||
| 82 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
| 83 | #say |
||
| 84 | <[[dlg_panelSize_|panelSize]]:1200:600>\ |
||
| 85 | %{color:lightGrey};--circlelist |
||
| 86 | ; :列表内容 |
||
| 87 | ; :列表名称,预留参数写1,预留参数写1,预留参数写1 |
||
| 88 | ; :X坐标,Y坐标 |
||
| 89 | ; :滑动方向,行列数,总高(宽)度,是否可滑动 |
||
| 90 | ; :单元间隔% |
||
| 91 | <notextile><</notextile>*{color:green}circleList*:<$str(s$modelList)>:循环列表,1,1,1:25,25:1,2,540,1:0>\ |
||
| 92 | |||
| 93 | - |
||
| 94 | - |
||
| 95 | |||
| 96 | h4. %{color:fireBrick}原型示例2% |
||
| 97 | |||
| 98 | bq. [<notextile>@</notextile>ini] |
||
| 99 | #act |
||
| 100 | [[mov]] s$modelList (<[[dlg_itemModel_|itemModel]]:3,1|3,7,1,7,1,3|1:-1,-1:450,250>) |
||
| 101 | |
||
| 102 | inc s$modelList (<[[dlg_itemIndex_|itemIndex]]:1,3,1> |
||
| 103 | inc s$modelList <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250> |
||
| 104 | inc s$modelList <img:lc_yiwancheng:20:140:1:1> |
||
| 105 | inc s$modelList <[[dlg_itemShow_|itemShow]]:11:7:320:12:1:0> |
||
| 106 | inc s$modelList <[[dlg_text_|text]]:诛魔星光剑1{scolor=150}:120:20> |
||
| 107 | inc s$modelList <itemShow:12:0:12:12:1:0> |
||
| 108 | inc s$modelList <text:1:0:0> |
||
| 109 | inc s$modelList <text:尚未获得:150:75> |
||
| 110 | inc s$modelList ) |
||
| 111 | |
||
| 112 | inc s$modelList (<itemIndex:2,1,3> |
||
| 113 | inc s$modelList <img:denglu_liebiao_weixuanzhong:0:0:1:2.5:450:250> |
||
| 114 | inc s$modelList <text:尚未完成:20:150> |
||
| 115 | inc s$modelList <itemShow:11:7:320:12:1:0> |
||
| 116 | inc s$modelList <text:诛魔星光剑2{scolor=150}:120:20> |
||
| 117 | inc s$modelList <itemShow:12:0:12:12:1:0> |
||
| 118 | inc s$modelList <text:2:0:0> |
||
| 119 | inc s$modelList <img:lc_yilingqu:150:55:1:1> |
||
| 120 | inc s$modelList ) |
||
| 121 | |
||
| 122 | [<notextile>@</notextile>main] |
||
| 123 | #act |
||
| 124 | goto <notextile>@</notextile>ini |
||
| 125 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
| 126 | #say |
||
| 127 | <[[dlg_panelSize_|panelSize]]:1200:600>\ |
||
| 128 | %{color:lightGrey};--circlelist |
||
| 129 | ; :列表内容 |
||
| 130 | ; :列表名称,当前选中序号,是否可不选,可不选时是否亮 |
||
| 131 | ; :X坐标,Y坐标 |
||
| 132 | ; :滑动方向,行列数,总高(宽)度,是否可滑动 |
||
| 133 | ; :单元间隔% |
||
| 134 | <notextile><</notextile>*{color:green}circleList*:<$str(s$modelList)>:循环列表,1,1,1:25,25:1,2,540,1:10>\ |
||
| 135 | |||
| 136 | - |
||
| 137 | - |
||
| 138 | |||
| 139 | h4. %{color:fireBrick}原型示例读表模式% |
||
| 140 | |||
| 141 | *使用前提* |
||
| 142 | 将附件中的配置文件放入以下目录 |
||
| 143 | ..\Mir200\Envir\QuestDiary\数据文件\ |
||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | bq. [<notextile>@</notextile>ini] |
||
| 148 | #act |
||
| 149 | %{color:lightGrey};--itemModel |
||
| 150 | ; :组件类型,组件类型|组件类型|组件类型,组件类型 |
||
| 151 | ; :选中图片,未选中图片 |
||
| 152 | ; :单条宽度,单条高度% |
||
| 153 | [[mov]] s$item0 (<[[dlg_itemModel_|itemModel]]:3,7,1,7,1,1:-1,-1:450,250>) |
||
| 154 | mov s$modelList <$str(s$item0)> |
||
| 155 | |
||
| 156 | [[tbl_load]] g循环列表 \数据文件\循环列表.csv |
||
| 157 | [[tbl_create_player]] 循环列表 key col1 |
||
| 158 | [[tbl_copy]] g循环列表 循环列表 |
||
| 159 | |
||
| 160 | [<notextile>@</notextile>main] |
||
| 161 | #act |
||
| 162 | goto <notextile>@</notextile>ini |
||
| 163 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
| 164 | #say |
||
| 165 | <[[dlg_panelSize_|panelSize]]:1400:700>\ |
||
| 166 | %{color:lightGrey};--circlelist |
||
| 167 | ; :列表内容 |
||
| 168 | ; :列表名称,当前选中序号,是否可不选,可不选时是否亮 |
||
| 169 | ; :X坐标,Y坐标 |
||
| 170 | ; :滑动方向,行列数,总高(宽)度,是否可滑动 |
||
| 171 | ; :单元间隔% |
||
| 172 | <notextile><</notextile>*{color:green}circleList*:<$str(s$modelList)>:循环列表,1,1,1:25,25:1,3,650,1:0>\ |