读表实现对话框列表 » 历史记录 » 版本 1
yangdefeng, 2022-06-12 17:31
| 1 | 1 | yangdefeng | h4. %{color:firebrick}读表实现对话框列表% |
|---|---|---|---|
| 2 | |||
| 3 | *模块说明* |
||
| 4 | 通过读表方式,在对话框创建列表类组件。 |
||
| 5 | |||
| 6 | - |
||
| 7 | - |
||
| 8 | |||
| 9 | *使用前提* |
||
| 10 | 将附件中的配置文件放入以下目录 |
||
| 11 | ..\Mir200\Envir\QuestDiary\数据文件\ |
||
| 12 | |||
| 13 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 14 | |||
| 15 | - |
||
| 16 | - |
||
| 17 | |||
| 18 | bq. [<notextile>@</notextile>main] |
||
| 19 | #act |
||
| 20 | goto <notextile>@</notextile>读表 |
||
| 21 | goto <notextile>@</notextile>显示界面 |
||
| 22 | |
||
| 23 | [<notextile>@</notextile>显示界面] |
||
| 24 | #act |
||
| 25 | [[openMerchantBigDlg]] ok_di 0 0 0 1 0 0 |
||
| 26 | #say |
||
| 27 | <[[dlg_panelSize_|panelSize]]:1500:700>\ |
||
| 28 | <[[dlg_itemGrid_|itemGrid]]:<$str(s$item)>:多排单元组列表名称,1,0,1:0:0:500,160:1,1,650,1:0>\ \ \ \ \ \ \ |
||
| 29 | <[[dlg_text_|text]]:重置:500:50/<notextile>@</notextile>main> |
||
| 30 | <[[dlg_text_|text]]:刷新0:500:150/<notextile>@</notextile>刷新0> |
||
| 31 | <[[dlg_text_|text]]:刷新1:500:250/<notextile>@</notextile>刷新1> |
||
| 32 | |
||
| 33 | [<notextile>@</notextile>读表] |
||
| 34 | #act |
||
| 35 | [[tbl_load]] tb_itemGrid \数据文件\itemgrid.csv |
||
| 36 | [[mov]] s$item |
||
| 37 | |
||
| 38 | [[数据表模块#表遍历|#if tbl]] tb_itemGrid s$关键字 |
||
| 39 | #act |
||
| 40 | [[inc]] s$item <$tbl(tb_itemGrid,s$关键字,col)> |
||
| 41 | |
||
| 42 | [<notextile>@</notextile>刷新0] |
||
| 43 | #act |
||
| 44 | [[goto]] <notextile>@</notextile>item刷新0 |
||
| 45 | [[refreshItem]] 多排单元组列表名称 1 s$item 0 |
||
| 46 | |
||
| 47 | [<notextile>@</notextile>刷新1] |
||
| 48 | #act |
||
| 49 | goto <notextile>@</notextile>item刷新1 |
||
| 50 | [[refreshItem]] 多排单元组列表名称 1 s$item 0 |
||
| 51 | |
||
| 52 | [<notextile>@</notextile>item刷新0] |
||
| 53 | #act |
||
| 54 | [[mov]] s$item (<itemIndex:1><img:denglu_liebiao_weixuanzhong:25:25:1:2.5:450:150><itemshow:11:7:345:40:1:0><text:item刷新0{scolor=150}:145:45><itemshow:12:0:40:40:1:0><text:1:25:25><text:已经获得:175:95>) |
||
| 55 | |
||
| 56 | [<notextile>@</notextile>item刷新1] |
||
| 57 | #act |
||
| 58 | [[mov]] s$item |
||
| 59 | [[inc]] s$item (<[[dlg_itemIndex_|itemIndex]]:1> |
||
| 60 | [[inc]] s$item <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:25:25:1:2.5:450:150> |
||
| 61 | [[inc]] s$item <[[dlg_itemshow_|itemShow]]:11:7:345:40:1:0> |
||
| 62 | [[inc]] s$item <[[dlg_text_|text]]:item刷新1{scolor=150}:145:45> |
||
| 63 | [[inc]] s$item <[[dlg_itemshow_|itemShow]]:12:0:40:40:1:0> |
||
| 64 | [[inc]] s$item <[[dlg_text_|text]]:1:25:25> |
||
| 65 | [[inc]] s$item <[[dlg_text_|text]]:已经获得:175:95>) |