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